RECODER 0.92

recoder.java.expression.operator
Class ComparativeOperator

java.lang.Object
  extended by recoder.java.JavaSourceElement
      extended by recoder.java.JavaProgramElement
          extended by recoder.java.JavaNonTerminalProgramElement
              extended by recoder.java.expression.Operator
                  extended by recoder.java.expression.operator.ComparativeOperator
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Expression, ExpressionContainer, NonTerminalProgramElement, ProgramElement, SourceElement, ModelElement
Direct Known Subclasses:
Equals, GreaterOrEquals, GreaterThan, LessOrEquals, LessThan, NotEquals

public abstract class ComparativeOperator
extends Operator

Comparative operator.

Author:
AutoDoc
See Also:
Serialized Form

Field Summary
 
Fields inherited from class recoder.java.expression.Operator
children, expressionParent, INFIX, POSTFIX, PREFIX
 
Fields inherited from class recoder.java.JavaSourceElement
factory
 
Constructor Summary
  ComparativeOperator()
          Comparative operator.
protected ComparativeOperator(ComparativeOperator proto)
          Comparative operator.
  ComparativeOperator(Expression lhs, Expression rhs)
          Comparative operator.
 
Method Summary
 int getArity()
          Get arity.
 int getNotation()
          Get notation.
 
Methods inherited from class recoder.java.expression.Operator
getArguments, getASTParent, getChildAt, getChildCount, getChildPositionCode, getExpressionAt, getExpressionContainer, getExpressionCount, getFirstElement, getLastElement, getPrecedence, isLeftAssociative, isToBeParenthesized, makeParentRoleValid, precedes, replaceChild, setArguments, setExpressionContainer
 
Methods inherited from class recoder.java.JavaNonTerminalProgramElement
getIndexOfChild, getRoleOfChild, makeAllParentRolesValid, validateAll
 
Methods inherited from class recoder.java.JavaProgramElement
getComments, getID, setComments, validate
 
Methods inherited from class recoder.java.JavaSourceElement
getEndPosition, getFactory, getRelativePosition, getStartPosition, setEndPosition, setRelativePosition, setStartPosition, toSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface recoder.java.Expression
deepClone
 
Methods inherited from interface recoder.java.NonTerminalProgramElement
getIndexOfChild, getRoleOfChild, makeAllParentRolesValid, validateAll
 

Constructor Detail

ComparativeOperator

public ComparativeOperator()
Comparative operator.


ComparativeOperator

public ComparativeOperator(Expression lhs,
                           Expression rhs)
Comparative operator.

Parameters:
lhs - an expression.
rhs - an expression.

ComparativeOperator

protected ComparativeOperator(ComparativeOperator proto)
Comparative operator.

Parameters:
proto - a comparative operator.
Method Detail

getArity

public int getArity()
Get arity.

Specified by:
getArity in class Operator
Returns:
the int value.

getNotation

public int getNotation()
Get notation.

Specified by:
getNotation in class Operator
Returns:
the int value.

RECODER 0.92