public class IfNode extends ASTNode implements NestedStatement
isDeepProperty
Modifier and Type | Field and Description |
---|---|
protected char[] |
block |
protected ExecutableStatement |
condition |
protected ExecutableStatement |
elseBlock |
protected IfNode |
elseIf |
protected ExecutableStatement |
nestedStatement |
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, name, nameCache, nextASTNode, NOJIT, NUMERIC, OPERATOR, OPT_SUBTR, PCTX_STORED, safeAccessor, STRONG_TYPING, THISREF
Constructor and Description |
---|
IfNode(char[] condition,
char[] block,
int fields,
ParserContext pCtx) |
IfNode(ExecutableStatement condition,
ExecutableStatement nestedStatement,
ExecutableStatement elseBlock) |
Modifier and Type | Method and Description |
---|---|
ExecutableStatement |
getElseBlock() |
ExecutableStatement |
getNestedStatement() |
Object |
getReducedValue(Object ctx,
Object thisValue,
VariableResolverFactory factory) |
Object |
getReducedValueAccelerated(Object ctx,
Object thisValue,
VariableResolverFactory factory) |
IfNode |
setElseBlock(char[] block) |
IfNode |
setElseIf(IfNode elseIf) |
String |
toString() |
canSerializeAccessor, discard, getAbsoluteName, getAbsoluteRemainder, getAbsoluteRootElement, getAccessor, getCursorPosition, getEgressType, getFields, getLiteralValue, getName, getNameAsArray, getOperator, isAssignment, isCollection, isDebuggingSymbol, isDeepProperty, isDiscard, isIdentifier, isLiteral, isOperator, isOperator, isThisVal, setAccessor, setAsLiteral, setCursorPosition, setEgressType, setLiteralValue, setName, storeInLiteralRegister, storePctx, strongTyping, tryStaticAccess
protected char[] block
protected ExecutableStatement condition
protected ExecutableStatement nestedStatement
protected IfNode elseIf
protected ExecutableStatement elseBlock
public IfNode(char[] condition, char[] block, int fields, ParserContext pCtx)
public IfNode(ExecutableStatement condition, ExecutableStatement nestedStatement, ExecutableStatement elseBlock)
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 ExecutableStatement getNestedStatement()
getNestedStatement
in interface NestedStatement
public ExecutableStatement getElseBlock()
public IfNode setElseBlock(char[] block)
Copyright © 2014. All rights reserved.