org.mvel2.ast
Class BinaryOperation
java.lang.Object
org.mvel2.ast.ASTNode
org.mvel2.ast.BooleanNode
org.mvel2.ast.BinaryOperation
- All Implemented Interfaces:
- Serializable, Cloneable
- Direct Known Subclasses:
- IntAdd, IntDiv, IntMult, IntSub
public class BinaryOperation
- extends BooleanNode
- See Also:
- Serialized Form
Fields inherited from class org.mvel2.ast.ASTNode |
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 |
Methods inherited from class org.mvel2.ast.ASTNode |
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 |
BinaryOperation
public BinaryOperation(int operation)
BinaryOperation
public BinaryOperation(int operation,
ASTNode left,
ASTNode right)
BinaryOperation
public BinaryOperation(int operation,
ASTNode left,
ASTNode right,
ParserContext ctx)
getReducedValueAccelerated
public Object getReducedValueAccelerated(Object ctx,
Object thisValue,
VariableResolverFactory factory)
- Overrides:
getReducedValueAccelerated
in class ASTNode
getReducedValue
public Object getReducedValue(Object ctx,
Object thisValue,
VariableResolverFactory factory)
- Overrides:
getReducedValue
in class ASTNode
getOperation
public int getOperation()
getRightBinary
public BinaryOperation getRightBinary()
setRightMost
public void setRightMost(ASTNode right)
- Specified by:
setRightMost
in class BooleanNode
getRightMost
public ASTNode getRightMost()
- Specified by:
getRightMost
in class BooleanNode
getPrecedence
public int getPrecedence()
isGreaterPrecedence
public boolean isGreaterPrecedence(BinaryOperation o)
isLiteral
public boolean isLiteral()
- Overrides:
isLiteral
in class ASTNode
toString
public String toString()
- Overrides:
toString
in class ASTNode
Copyright © 2011. All Rights Reserved.