AST
node type AddExpr

General Info

Production
AddExpr : AdditiveExpr;
Type Hierarchy:
java.lang.Object
  extended by beaver.Symbol
      extended by AST.ASTNode<ASTNode>
          extended by AST.Expr
              extended by AST.Binary
                  extended by AST.ArithmeticExpr
                      extended by AST.AdditiveExpr
                          extended by AST.AddExpr
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Iterable<ASTNode>

Description

Source
Declared in Java1.4Frontend/java.ast at line 158

Member Filters

API level:

Aspect:

Constructors

public AddExpr()
 
public AddExpr(Expr p0,
               Expr p1)
 

Attributes

Overrides:constant in class Expr
Source
Declared in Java7Frontend/ConstantExpression.jrag at line 91
Aspect
ConstantExpression
syn java.lang.String printOp()
Specified by:printOp in class Binary
Source
Declared in Java1.4Frontend/PrettyPrint.jadd at line 400
Aspect
PrettyPrint
syn TypeDecl type()
Overrides:type in class AdditiveExpr
Source
Declared in Java1.4Frontend/TypeAnalysis.jrag at line 327
Aspect
TypeAnalysis
syn boolean isStringAdd()
Overrides:isStringAdd in class ASTNode<ASTNode>
Source
Declared in Java1.4Backend/InnerClasses.jrag at line 88
Aspect
InnerClasses
syn boolean firstStringAddPart()
Source
Declared in Java1.4Backend/InnerClasses.jrag at line 91
Aspect
InnerClasses
syn boolean lastStringAddPart()
Source
Declared in Java1.4Backend/InnerClasses.jrag at line 92
Aspect
InnerClasses

Methods

public void flushCache()
Overrides:flushCache in class AdditiveExpr
public void flushCollectionCache()
Overrides:flushCollectionCache in class AdditiveExpr
public AddExpr clone()
              throws java.lang.CloneNotSupportedException
Overrides:clone in class AdditiveExpr
Throws:
java.lang.CloneNotSupportedException
public AddExpr copy()
Overrides:copy in class ASTNode<ASTNode>
public AddExpr fullCopy()
Create a deep copy of the AST subtree at this node. The copy is dangling, i.e. has no parent.
Overrides:fullCopy in class ASTNode<ASTNode>
Returns:
dangling copy of the subtree at this node
public void typeCheck()
Overrides:typeCheck in class AdditiveExpr
Source
Declared in Java1.4Frontend/TypeCheck.jrag at line 172
Aspect
TypeCheck
public void createBCode(CodeGeneration gen)
Overrides:createBCode in class Binary
Source
Declared in Java1.4Backend/CreateBCode.jrag at line 900
Aspect
CreateBCode
public void init$Children()
Initializes the child array to the correct size. Initializes List and Opt nta children.
Overrides:init$Children in class AdditiveExpr
protected int numChildren()
Overrides:numChildren in class AdditiveExpr
public boolean mayHaveRewrite()
Overrides:mayHaveRewrite in class AdditiveExpr
public void setLeftOperand(Expr node)
Replaces the LeftOperand child.
Overrides:setLeftOperand in class AdditiveExpr
Parameters:
node - The new node to replace the LeftOperand child.
Retrieves the LeftOperand child.
Overrides:getLeftOperand in class AdditiveExpr
Returns:
The current node used as the LeftOperand child.
Retrieves the LeftOperand child.

This method does not invoke AST transformations.

Overrides:getLeftOperandNoTransform in class AdditiveExpr
Returns:
The current node used as the LeftOperand child.
public void setRightOperand(Expr node)
Replaces the RightOperand child.
Overrides:setRightOperand in class AdditiveExpr
Parameters:
node - The new node to replace the RightOperand child.
Retrieves the RightOperand child.
Overrides:getRightOperand in class AdditiveExpr
Returns:
The current node used as the RightOperand child.
Retrieves the RightOperand child.

This method does not invoke AST transformations.

Overrides:getRightOperandNoTransform in class AdditiveExpr
Returns:
The current node used as the RightOperand child.
Overrides:rewriteTo in class AdditiveExpr

Fields

protected boolean type_computed

Inherited Members

Attributes inherited from AST.Binary

Attributes inherited from AST.Expr

Attributes inherited from AST.ASTNode

Methods inherited from class AST.Binary

Methods inherited from class AST.Expr

Methods inherited from class AST.ASTNode

Methods inherited from class beaver.Symbol

getColumn
getEnd
getId
getLine
getStart
makePosition

Methods inherited from class java.lang.Object

equals
finalize
getClass
hashCode
notify
notifyAll
wait
wait
wait

Fields inherited from AST.Binary

Fields inherited from AST.Expr

Fields inherited from AST.ASTNode

Fields inherited from beaver.Symbol

end
id
start
value