public class OwExprArraySelectorSuffix extends OwExprExpression implements OwExprPrimaryPrefix
An array selector suffix of a primary expression.
In the expression
property[2]
the [2] arguments will be parsed into an OwExprArraySelectorSuffix.
At evaluation time the property property symbol will be used to perform an indexed
property evaluation with the designated index.
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
m_errorTable, m_symbolTable, m_typeError| Constructor and Description |
|---|
OwExprArraySelectorSuffix(OwExprSymbolTable symbolTable_p,
OwExprErrorTable errorTable_p,
OwExprPrimaryPrefix prefix_p,
OwExprExpression arraySelector_p)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
OwExprValue |
evaluate(OwExprScope scope_p)
Evaluates this expression on the
OwExprScope (scope) provided as argument. |
OwExprExpression |
expression() |
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.
|
String |
toString() |
OwExprExpressionType |
type()
Type check method.
|
errCount, evaluate, evaluate, getErrorTable, getSymbol, getSymbolTable, hasErrors, initType, symbolsVisibleInScopespublic OwExprArraySelectorSuffix(OwExprSymbolTable symbolTable_p, OwExprErrorTable errorTable_p, OwExprPrimaryPrefix prefix_p, OwExprExpression arraySelector_p)
symbolTable_p - global symbol tableerrorTable_p - global error tableprefix_p - the primary prefixarraySelector_p - array selector expressionpublic final OwExprValue evaluate(OwExprScope scope_p) throws OwExprEvaluationException
OwExprScope (scope) provided as argument.
OwExprScope.at(int) indexed access method.evaluate in class OwExprExpressionscope_p - scope to be used during evaluationOwExprEvaluationExceptionpublic OwExprExpressionType type() throws OwExprTypeMissmatchException
OwExprExpressionOwExprExpression.m_typeError should
be set to truetype in class OwExprExpressionOwExprTypeMissmatchException - if type errors are encountered during type computationpublic OwExprExpression expression()
expression in interface OwExprPrimaryPrefixpublic OwExprFunctionSymbol regressToFunction() throws OwExprTypeMissmatchException
OwExprPrimaryPrefixregressToFunction in interface OwExprPrimaryPrefixOwExprTypeMissmatchException - if a type mismatch is detected during function symbol creationpublic OwExprPropertySymbol regressToPorperty() throws OwExprTypeMissmatchException
OwExprPrimaryPrefixregressToPorperty in interface OwExprPrimaryPrefixOwExprTypeMissmatchException - if a type mismatch is detected during property symbol creationpublic OwExprSymbolScope regressToScope() throws OwExprTypeMissmatchException
OwExprPrimaryPrefixregressToScope in interface OwExprPrimaryPrefixOwExprTypeMissmatchException - if a type mismatch is detected during scope symbol creationCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.