public class OwExprFunctionSymbol extends OwExprSymbol
Function symbols represent symbol table recordings of function pointing symbols in the
expressions.
fun(1,2,3) |
Creates function symbol for the fun identifier |
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_parent| Constructor and Description |
|---|
OwExprFunctionSymbol(OwExprSymbol parent_p,
String name_p,
OwExprType[] types_p) |
| Modifier and Type | Method and Description |
|---|---|
OwExprValue |
getValue(OwExprScope scope_p,
OwExprValue[] arguments_p)
Returns a value produced by the invocation of the function represented by this symbol.
|
boolean |
matches(OwExprScope scope_p)
A match method used to check the validity of symbols for certain scopes.
Can be used to discover symbol and related expressions validity before evaluation. |
void |
setArgumentTypes(OwExprExpressionType[] argumentTypes_p) |
void |
setSymbolScope(OwExprSymbolScope symbolScope_p) |
protected void |
toPrettyPrintString(StringBuffer sb_p,
StringBuffer tabs_p)
Pretty-print utility
|
addAnonymousSymbol, addFunctionSymbol, addPropertySymbol, getName, getSymbol, getSymbolFQN, getSymbolTable, getType, issueRuntimeSymbolName, toStringpublic OwExprFunctionSymbol(OwExprSymbol parent_p, String name_p, OwExprType[] types_p)
public final void setArgumentTypes(OwExprExpressionType[] argumentTypes_p)
argumentTypes_p - the argument expressions types that this function should use
to discover the function binding in the scope at evaluation timepublic final OwExprValue getValue(OwExprScope scope_p, OwExprValue[] arguments_p) throws OwExprEvaluationException
scope_p - the top level scope on which this function is evaluated.arguments_p - the value of the arguments used to invoke the functionOwExprEvaluationExceptionprotected void toPrettyPrintString(StringBuffer sb_p, StringBuffer tabs_p)
toPrettyPrintString in class OwExprSymbolsb_p - tabs_p - public final void setSymbolScope(OwExprSymbolScope symbolScope_p)
symbolScope_p - the functions parent scope setterpublic boolean matches(OwExprScope scope_p)
OwExprSymbolmatches in class OwExprSymbolscope_p - a scope to search the symbol ontrue if this symbol is valid for the given scopeCopyright © 2014 Alfresco Business Solutions. All Rights Reserved.