public class BinaryOperation extends BooleanNode
left, right
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 |
---|
BinaryOperation(int operation) |
BinaryOperation(int operation,
ASTNode left,
ASTNode right) |
BinaryOperation(int operation,
ASTNode left,
ASTNode right,
ParserContext ctx) |
Modifier and Type | Method and Description |
---|---|
int |
getOperation() |
int |
getPrecedence() |
Object |
getReducedValue(Object ctx,
Object thisValue,
VariableResolverFactory factory) |
Object |
getReducedValueAccelerated(Object ctx,
Object thisValue,
VariableResolverFactory factory) |
BinaryOperation |
getRightBinary() |
ASTNode |
getRightMost() |
boolean |
isGreaterPrecedence(BinaryOperation o) |
boolean |
isLiteral() |
void |
setRightMost(ASTNode right) |
String |
toString() |
getLeft, getRight, setLeft, setRight
canSerializeAccessor, discard, getAbsoluteName, getAbsoluteRemainder, getAbsoluteRootElement, getAccessor, getCursorPosition, getEgressType, getFields, getLiteralValue, getName, getNameAsArray, getOperator, isAssignment, isCollection, isDebuggingSymbol, isDeepProperty, isDiscard, isIdentifier, isOperator, isOperator, isThisVal, setAccessor, setAsLiteral, setCursorPosition, setEgressType, setLiteralValue, setName, storeInLiteralRegister, storePctx, strongTyping, tryStaticAccess
public BinaryOperation(int operation)
public BinaryOperation(int operation, ASTNode left, ASTNode right, ParserContext ctx)
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 int getOperation()
public BinaryOperation getRightBinary()
public void setRightMost(ASTNode right)
setRightMost
in class BooleanNode
public ASTNode getRightMost()
getRightMost
in class BooleanNode
public int getPrecedence()
public boolean isGreaterPrecedence(BinaryOperation o)
Copyright © 2012. All Rights Reserved.