public class Function extends ASTNode implements Safe
Modifier and Type | Field and Description |
---|---|
protected ExecutableStatement |
compiledBlock |
protected boolean |
compiledMode |
protected String |
name |
protected String[] |
parameters |
protected int |
parmNum |
protected boolean |
singleton |
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, expr, fields, firstUnion, FQCN, IDENTIFIER, INLINE_COLLECTION, INVERT, literal, LITERAL, nameCache, nextASTNode, NOJIT, NUMERIC, offset, OPERATOR, OPT_SUBTR, pCtx, PCTX_STORED, safeAccessor, STACKLANG, start, STRONG_TYPING, THISREF
Constructor and Description |
---|
Function(String name,
char[] expr,
int start,
int offset,
int blockStart,
int blockOffset,
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) |
String |
toString() |
canSerializeAccessor, discard, getAbsoluteName, getAbsoluteRootElement, getAccessor, getClassLoader, getCursorPosition, getEgressType, getExpr, getFields, getLiteralValue, getNameAsArray, getOffset, getOperator, getStart, isAssignment, isCollection, isDebuggingSymbol, isDeepProperty, isDiscard, isFQCN, isIdentifier, isLiteral, isOperator, isOperator, isThisVal, setAccessor, setAsFQCNReference, setAsLiteral, setCursorPosition, setEgressType, setLiteralValue, setName, storeInLiteralRegister, storePctx, strongTyping
protected String name
protected ExecutableStatement compiledBlock
protected String[] parameters
protected int parmNum
protected boolean compiledMode
protected boolean singleton
public Function(String name, char[] expr, int start, int offset, int blockStart, int blockOffset, int fields, ParserContext pCtx)
public Object getReducedValueAccelerated(Object ctx, Object thisValue, VariableResolverFactory factory)
getReducedValueAccelerated
in class ASTNode
public Object getReducedValue(Object ctx, Object thisValue, VariableResolverFactory factory)
getReducedValue
in class ASTNode
public Object call(Object ctx, Object thisValue, VariableResolverFactory factory, Object[] parms)
public void setName(String name)
public String[] getParameters()
public boolean hasParameters()
public void checkArgumentCount(int passing)
public ExecutableStatement getCompiledBlock()
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.