AST
node type RelationalExpr

General Info

Production
RelationalExpr : Binary;
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.RelationalExpr
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Iterable<ASTNode>
Direct Known Subclasses:
EqualityExpr, GEExpr, GTExpr, LEExpr, LTExpr

Description

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

Member Filters

API level:

Aspect:

Constructors

 
public RelationalExpr(Expr p0,
                      Expr p1)
 

Attributes

syn TypeDecl type()
Specified by:type in class Expr
Source
Declared in Java1.4Frontend/TypeAnalysis.jrag at line 344
Aspect
TypeAnalysis
syn boolean definesLabel()
Overrides:definesLabel in class ASTNode<ASTNode>
Source
Declared in Java1.4Backend/CreateBCode.jrag at line 946
Aspect
CreateBCode

Methods

public void flushCache()
Overrides:flushCache in class Binary
public void flushCollectionCache()
Overrides:flushCollectionCache in class Binary
public RelationalExpr clone()
                     throws java.lang.CloneNotSupportedException
Overrides:clone in class Binary
Throws:
java.lang.CloneNotSupportedException
public void typeCheck()
Overrides:typeCheck in class ASTNode<ASTNode>
Source
Declared in Java1.4Frontend/TypeCheck.jrag at line 204
Aspect
TypeCheck
public void createBCode(CodeGeneration gen)
Overrides:createBCode in class Binary
Source
Declared in Java1.4Backend/CreateBCode.jrag at line 1027
Aspect
CreateBCode
public void emitEvalBranch(CodeGeneration gen)
Overrides:emitEvalBranch in class Expr
Source
Declared in Java1.4Backend/CreateBCode.jrag at line 1123
Aspect
CreateBCode
public void compareBranch(CodeGeneration gen,
                          int label,
                          TypeDecl typeDecl)
Source
Declared in Java1.4Backend/CreateBCode.jrag at line 1149
Aspect
CreateBCode
public void compareNotBranch(CodeGeneration gen,
                             int label,
                             TypeDecl typeDecl)
Source
Declared in Java1.4Backend/CreateBCode.jrag at line 1159
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 Binary
protected int numChildren()
Overrides:numChildren in class Binary
public boolean mayHaveRewrite()
Overrides:mayHaveRewrite in class Binary
public void setLeftOperand(Expr node)
Replaces the LeftOperand child.
Overrides:setLeftOperand in class Binary
Parameters:
node - The new node to replace the LeftOperand child.
Retrieves the LeftOperand child.
Overrides:getLeftOperand in class Binary
Returns:
The current node used as the LeftOperand child.
Retrieves the LeftOperand child.

This method does not invoke AST transformations.

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

This method does not invoke AST transformations.

Overrides:getRightOperandNoTransform in class Binary
Returns:
The current node used as the RightOperand child.
Overrides:Define_int_condition_false_label in class ASTNode<ASTNode>
Source
Declared in Java1.4Backend/CreateBCode.jrag at line 994
public int Define_int_condition_true_label(ASTNode caller,
                                           ASTNode child)
Overrides:Define_int_condition_true_label in class ASTNode<ASTNode>
Source
Declared in Java1.4Backend/CreateBCode.jrag at line 995
Overrides:rewriteTo in class Binary

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