RECODER 0.92

recoder.java.expression.operator
Class BinaryXOrAssignment

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.Assignment
                      extended by recoder.java.expression.operator.BinaryXOrAssignment
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Expression, ExpressionStatement, ExpressionContainer, LoopInitializer, NonTerminalProgramElement, ProgramElement, SourceElement, Statement, ModelElement

public class BinaryXOrAssignment
extends Assignment

Binary X or assignment.

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
  BinaryXOrAssignment()
          Binary X or assignment.
protected BinaryXOrAssignment(BinaryXOrAssignment proto)
          Binary X or assignment.
  BinaryXOrAssignment(Expression lhs, Expression rhs)
          Binary X or assignment.
 
Method Summary
 void accept(SourceVisitor v)
          Receive a visitor, for instance a pretty printer.
 BinaryXOrAssignment deepClone()
          Deep clone.
 int getArity()
          Get arity.
 int getNotation()
          Get notation.
 int getPrecedence()
          Get precedence.
 
Methods inherited from class recoder.java.expression.Assignment
getASTParent, getStatementContainer, isLeftAssociative, setStatementContainer
 
Methods inherited from class recoder.java.expression.Operator
getArguments, getChildAt, getChildCount, getChildPositionCode, getExpressionAt, getExpressionContainer, getExpressionCount, getFirstElement, getLastElement, 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
getExpressionContainer, setExpressionContainer
 
Methods inherited from interface recoder.java.NonTerminalProgramElement
getIndexOfChild, getRoleOfChild, makeAllParentRolesValid, validateAll
 

Constructor Detail

BinaryXOrAssignment

public BinaryXOrAssignment()
Binary X or assignment.


BinaryXOrAssignment

public BinaryXOrAssignment(Expression lhs,
                           Expression rhs)
Binary X or assignment.

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

BinaryXOrAssignment

protected BinaryXOrAssignment(BinaryXOrAssignment proto)
Binary X or assignment.

Parameters:
proto - a binary X or assignment.
Method Detail

deepClone

public BinaryXOrAssignment deepClone()
Deep clone.

Specified by:
deepClone in interface Expression
Specified by:
deepClone in interface ExpressionStatement
Specified by:
deepClone in interface SourceElement
Specified by:
deepClone in interface Statement
Specified by:
deepClone in class Assignment
Returns:
the object.

getArity

public int getArity()
Get arity.

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

getPrecedence

public int getPrecedence()
Get precedence.

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

getNotation

public int getNotation()
Get notation.

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

accept

public void accept(SourceVisitor v)
Description copied from interface: SourceElement
Receive a visitor, for instance a pretty printer.

Parameters:
v - a source visitor.

RECODER 0.92