public class Function extends ASTNode implements Safe
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
cMode |
protected ExecutableStatement |
compiledBlock |
protected String |
name |
protected String[] |
parameters |
protected int |
parmNum |
accessor, ARRAY_TYPE_LITERAL, ASSIGN, BLOCK_DO, BLOCK_DO_UNTIL, BLOCK_FOR, BLOCK_FOREACH, BLOCK_IF, BLOCK_UNTIL, BLOCK_WHILE, BLOCK_WITH, COLLECTION, COMPILE_IMMEDIATE, cursorPosition, DEEP_PROPERTY, DEFERRED_TYPE_RES, DEOP, DISCARD, egressType, endOfName, fields, firstUnion, IDENTIFIER, INLINE_COLLECTION, INVERT, literal, LITERAL, nameCache, nextASTNode, NOJIT, NUMERIC, OPERATOR, OPT_SUBTR, PCTX_STORED, safeAccessor, STRONG_TYPING, THISREF| Constructor and Description |
|---|
Function(String name,
char[] parameters,
char[] block,
int fields,
ParserContext pCtx) |
| Modifier and Type | Method and Description |
|---|---|
Object |
call(Object ctx,
Object thisValue,
VariableResolverFactory factory,
Object[] parms) |
void |
checkArgumentCount(int passing) |
ExecutableStatement |
getCompiledBlock() |
String |
getName() |
String[] |
getParameters() |
Object |
getReducedValue(Object ctx,
Object thisValue,
VariableResolverFactory factory) |
Object |
getReducedValueAccelerated(Object ctx,
Object thisValue,
VariableResolverFactory factory) |
boolean |
hasParameters() |
void |
setName(String name) |
void |
setParameters(String[] parameters) |
String |
toString() |
canSerializeAccessor, discard, getAbsoluteName, getAbsoluteRemainder, getAbsoluteRootElement, getAccessor, getCursorPosition, getEgressType, getFields, getLiteralValue, getNameAsArray, getOperator, isAssignment, isCollection, isDebuggingSymbol, isDeepProperty, isDiscard, isIdentifier, isLiteral, isOperator, isOperator, isThisVal, setAccessor, setAsLiteral, setCursorPosition, setEgressType, setLiteralValue, setName, storeInLiteralRegister, storePctx, strongTyping, tryStaticAccessprotected String name
protected ExecutableStatement compiledBlock
protected String[] parameters
protected int parmNum
protected boolean cMode
public Function(String name, char[] parameters, char[] block, int fields, ParserContext pCtx)
public Object getReducedValueAccelerated(Object ctx, Object thisValue, VariableResolverFactory factory)
getReducedValueAccelerated in class ASTNodepublic Object getReducedValue(Object ctx, Object thisValue, VariableResolverFactory factory)
getReducedValue in class ASTNodepublic Object call(Object ctx, Object thisValue, VariableResolverFactory factory, Object[] parms)
public void setName(String name)
public String[] getParameters()
public void setParameters(String[] parameters)
public boolean hasParameters()
public void checkArgumentCount(int passing)
public ExecutableStatement getCompiledBlock()
Copyright © 2012. All Rights Reserved.