|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.wewebu.expression.language.OwExprExpression
com.wewebu.expression.language.OwExprLiteral
public abstract class OwExprLiteral
An expression representing a fixed value (egg. strings , numeric values so.)
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
OwExprParser,
OwExprValue| Field Summary | |
|---|---|
protected OwExprConstantSymbol |
m_symbol
|
| Fields inherited from class com.wewebu.expression.language.OwExprExpression |
|---|
m_errorTable, m_symbolTable, m_typeError |
| Constructor Summary | |
|---|---|
OwExprLiteral(String symbolName_p,
OwExprValue value_p,
OwExprType symbolType_p,
OwExprSymbolTable symbolTable_p,
OwExprErrorTable errorTable_p)
Constructor |
|
| Method Summary | |
|---|---|
OwExprValue |
evaluate(OwExprScope scope_p)
Evaluates this expression on the OwExprScope (scope) provided as argument. |
OwExprExpression |
expression()
|
OwExprValue |
getValue()
|
OwExprFunctionSymbol |
regressToFunction()
Forces this primary prefix symbol to a function. |
OwExprPropertySymbol |
regressToPorperty()
Forces this primary prefix symbol to a property. |
OwExprSymbolScope |
regressToScope()
Forces this primary prefix to a scope symbol. |
protected static OwExprConstantSymbol |
symbolInstance(String image_p,
OwExprSymbolTable symbolTable_p,
OwExprErrorTable errorTable_p)
Constant symbol single flyweight instance accessor. |
String |
toString()
|
OwExprExpressionType |
type()
Type check method. |
| Methods inherited from class com.wewebu.expression.language.OwExprExpression |
|---|
errCount, evaluate, evaluate, getErrorTable, getSymbol, getSymbolTable, hasErrors, initType, symbolsVisibleInScopes |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected OwExprConstantSymbol m_symbol
| Constructor Detail |
|---|
public OwExprLiteral(String symbolName_p,
OwExprValue value_p,
OwExprType symbolType_p,
OwExprSymbolTable symbolTable_p,
OwExprErrorTable errorTable_p)
symbolName_p - the name of the symbol this literal relays onvalue_p - the value of this literalsymbolType_p - the type of the symbolsymbolTable_p - the global symbol tableerrorTable_p - the global error table| Method Detail |
|---|
protected static final OwExprConstantSymbol symbolInstance(String image_p,
OwExprSymbolTable symbolTable_p,
OwExprErrorTable errorTable_p)
image_p - the constant symbol imagesymbolTable_p - the global symbol tableerrorTable_p - the global error table
null if no such instance exists
public final OwExprExpressionType type()
throws OwExprTypeMissmatchException
OwExprExpressionOwExprExpression.m_typeError should
be set to true
type in class OwExprExpressionOwExprTypeMissmatchExceptionpublic final OwExprValue getValue()
public final OwExprValue evaluate(OwExprScope scope_p)
throws OwExprEvaluationException
OwExprExpressionOwExprScope (scope) provided as argument.
evaluate in class OwExprExpressionscope_p -
OwExprEvaluationException
public final OwExprPropertySymbol regressToPorperty()
throws OwExprTypeMissmatchException
OwExprPrimaryPrefix
regressToPorperty in interface OwExprPrimaryPrefixOwExprTypeMissmatchException - always
public final OwExprFunctionSymbol regressToFunction()
throws OwExprTypeMissmatchException
OwExprPrimaryPrefix
regressToFunction in interface OwExprPrimaryPrefixOwExprTypeMissmatchException - always
public OwExprSymbolScope regressToScope()
throws OwExprTypeMissmatchException
OwExprPrimaryPrefix
regressToScope in interface OwExprPrimaryPrefixOwExprSymbolScope based on this literals symbol
OwExprTypeMissmatchException - if a type mismatch is detected during scope symbol creationpublic final OwExprExpression expression()
expression in interface OwExprPrimaryPrefixpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||