org.richfaces.cdk.templatecompiler.el.node
Class AbstractBinaryOperationTreeNode
java.lang.Object
org.richfaces.cdk.templatecompiler.el.node.AbstractTreeNode
org.richfaces.cdk.templatecompiler.el.node.AbstractBinaryOperationTreeNode
- All Implemented Interfaces:
- ITreeNode
- Direct Known Subclasses:
- BinaryArithmeticIntegerOperationTreeNode, BinaryArithmeticOperationTreeNode, BinaryBooleanOperationTreeNode, BinaryBooleanResultOperationTreeNode
public abstract class AbstractBinaryOperationTreeNode
- extends AbstractTreeNode
Abstract class for all binary (having two operands) operation expression nodes
For operands A and B and operator x output is (A x B)
- Author:
- Nick Belaevski
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractBinaryOperationTreeNode
public AbstractBinaryOperationTreeNode(org.jboss.el.parser.Node node,
String operatorString)
getOperationType
protected abstract ELType getOperationType(ELType firstArgumentType,
ELType secondArgumentType)
getCoercedChildOutput
protected abstract String getCoercedChildOutput(int childIndex,
ELVisitor visitor)
throws ParsingException
- Throws:
ParsingException
visit
public void visit(StringBuilder sb,
ELVisitor visitor)
throws ParsingException
- Description copied from class:
AbstractTreeNode
- Return child of wrapped node by specified index. Abstract operation to override in subclasses.
- Specified by:
visit in interface ITreeNode- Specified by:
visit in class AbstractTreeNode
visitor - - ELVisitor
- Throws:
ParsingException - - if error occurred(child not found).
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.