org.mvel2.ast
Class BinaryOperation
java.lang.Object
org.mvel2.ast.ASTNode
org.mvel2.ast.BinaryOperation
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable
public class BinaryOperation
- extends ASTNode
- See Also:
- Serialized Form
| Fields inherited from class org.mvel2.ast.ASTNode |
accessor, ASSIGN, BLOCK_DO, BLOCK_DO_UNTIL, BLOCK_FOR, BLOCK_FOREACH, BLOCK_IF, BLOCK_UNTIL, BLOCK_WHILE, BLOCK_WITH, COLLECTION, COMPILE_IMMEDIATE, cursorPosition, DEEP_PROPERTY, DEOP, discard, egressType, endOfName, fields, firstUnion, FOLD, IDENTIFIER, INLINE_COLLECTION, INVERT, literal, LITERAL, LOOKAHEAD, METHOD, name, nameCache, NEGATION, nextASTNode, NOJIT, NUMERIC, OPERATOR, safeAccessor, STR_LITERAL, 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, isLiteral, isOperator, isOperator, isThisVal, setAccessor, setAsLiteral, setCursorPosition, setDiscard, setEgressType, setLiteralValue, setName, tryStaticAccess |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
BinaryOperation
public BinaryOperation(int operation,
ASTNode left,
ASTNode right)
BinaryOperation
public BinaryOperation(int operation,
ASTNode left,
ASTNode right,
ParserContext ctx)
getReducedValueAccelerated
public java.lang.Object getReducedValueAccelerated(java.lang.Object ctx,
java.lang.Object thisValue,
VariableResolverFactory factory)
- Overrides:
getReducedValueAccelerated in class ASTNode
getReducedValue
public java.lang.Object getReducedValue(java.lang.Object ctx,
java.lang.Object thisValue,
VariableResolverFactory factory)
- Overrides:
getReducedValue in class ASTNode
getOperation
public int getOperation()
getLeft
public ASTNode getLeft()
setLeft
public void setLeft(ASTNode left)
getRight
public ASTNode getRight()
getRightMost
public ASTNode getRightMost()
getRightBinary
public BinaryOperation getRightBinary()
setRight
public void setRight(ASTNode right)
setRightMost
public void setRightMost(ASTNode right)
getPrecedence
public int getPrecedence()
isGreaterPrecedence
public boolean isGreaterPrecedence(BinaryOperation o)
toString
public java.lang.String toString()
- Overrides:
toString in class ASTNode
Copyright © 2008. All Rights Reserved.