public class OwExprArgumentsSuffix extends OwExprExpression implements OwExprPrimaryPrefix
An function arguments suffix of a primary expression.
In the expression
function(2,3,'sss')
the (2,3,'sss') arguments will be parsed into an OwExprArgumentsSuffix.
At evaluation time the function function symbol will be used to perform a function
call with the designated arguments.
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 |
|---|
OwExprArgumentsSuffix(OwExprSymbolTable symbolTable_p,
OwExprErrorTable errorTable_p,
OwExprPrimaryPrefix prefix_p,
List argumentsExpressions_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()
The prefix of this expression is forced to function.
|
OwExprFunctionSymbol |
regressToFunction()
Function on function call is not allowed.
(egg. |
OwExprPropertySymbol |
regressToPorperty()
Function on property call is not allowed.
|
OwExprSymbolScope |
regressToScope()
Forces this primary prefix to a scope symbol.
It also forces the m_prefix primary prefix to a function call. |
String |
toString() |
OwExprExpressionType |
type()
Type check method.The type of the function symbol is considered -
m_functionSymbol. |
errCount, evaluate, evaluate, getErrorTable, getSymbol, getSymbolTable, hasErrors, initType, symbolsVisibleInScopespublic OwExprArgumentsSuffix(OwExprSymbolTable symbolTable_p, OwExprErrorTable errorTable_p, OwExprPrimaryPrefix prefix_p, List argumentsExpressions_p)
symbolTable_p - global symbol tableerrorTable_p - global error tableprefix_p - the primary prefixargumentsExpressions_p - list of arguments as OwExprExpressionspublic OwExprValue evaluate(OwExprScope scope_p) throws OwExprEvaluationException
OwExprScope (scope) provided as argument.
OwExprFunctionSymbol.getValue(OwExprScope, OwExprValue[])evaluate in class OwExprExpressionscope_p - scope to be used during evaluationOwExprEvaluationExceptionpublic OwExprExpressionType type() throws OwExprTypeMissmatchException
m_functionSymbol.
If type errors are encountered during type computation the OwExprExpression.m_typeError should
be set to truetype in class OwExprExpressionOwExprTypeMissmatchException - if type errors are ecountrede during type computationpublic OwExprExpression expression()
expression in interface OwExprPrimaryPrefixpublic OwExprFunctionSymbol regressToFunction() throws OwExprTypeMissmatchException
aFunction(1,2)(3,4)).regressToFunction in interface OwExprPrimaryPrefixOwExprTypeMissmatchException - alwayspublic OwExprPropertySymbol regressToPorperty() throws OwExprTypeMissmatchException
aFunction.(1,2)).regressToPorperty in interface OwExprPrimaryPrefixOwExprTypeMissmatchException - alwayspublic OwExprSymbolScope regressToScope() throws OwExprTypeMissmatchException
m_prefix primary prefix to a function call.
(egg. aFunction(1,2).aProperty)regressToScope in interface OwExprPrimaryPrefixOwExprTypeMissmatchExceptionCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.