org.extendj.ast
node type RelationalExpr

General Info

Production
RelationalExpr : Binary;
Type Hierarchy:
java.lang.Object
  extended by beaver.Symbol
      extended by org.extendj.ast.ASTNode<ASTNode>
          extended by org.extendj.ast.Expr
              extended by org.extendj.ast.Binary
                  extended by org.extendj.ast.RelationalExpr
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Iterable<ASTNode>, org.jastadd.util.PrettyPrintable
Direct Known Subclasses:
EqualityExpr, GEExpr, GTExpr, LEExpr, LTExpr

Description

Source
Declared in /home/jesper/git/extendj/java4/grammar/Java.ast at line 172

Member Filters

API level:

Aspect:

Constructors

public RelationalExpr()
 
Source
Declared in /home/jesper/git/extendj/ASTNode at line 1
public RelationalExpr(Expr p0,
                      Expr p1)
 
Source
Declared in /home/jesper/git/extendj/ASTNode at line 13

Attributes

Specified by:type in class Expr
Source
Declared in /home/jesper/git/extendj/java4/frontend/TypeAnalysis.jrag at line 302
Aspect
TypeAnalysis

Methods

public void typeCheck()
Overrides:typeCheck in class ASTNode<ASTNode>
Source
Declared in /home/jesper/git/extendj/java4/frontend/TypeCheck.jrag at line 240
Aspect
TypeCheck
public void createBCode(org.extendj.ast.CodeGeneration gen)
Overrides:createBCode in class Binary
Source
Declared in /home/jesper/git/extendj/java4/backend/CreateBCode.jrag at line 1046
Aspect
CreateBCode
public void branchTrue(org.extendj.ast.CodeGeneration gen,
                       int target)
Description copied from class: ExprGenerate unboxing code for conditions 14.9 If, 14.12 While, 14.13 Do, 14.14 For branchTrue is used to emit the condition from these constructs refine behavior to include unboxing of the value when needed
Overrides:branchTrue in class Expr
Source
Declared in /home/jesper/git/extendj/java4/backend/CreateBCode.jrag at line 1196
Aspect
CreateBCode
public void branchFalse(org.extendj.ast.CodeGeneration gen,
                        int target)
Overrides:branchFalse in class Expr
Source
Declared in /home/jesper/git/extendj/java4/backend/CreateBCode.jrag at line 1311
Aspect
CreateBCode
public void compareBranch(org.extendj.ast.CodeGeneration gen,
                          int label,
                          TypeDecl typeDecl)
Source
Declared in /home/jesper/git/extendj/java4/backend/CreateBCode.jrag at line 1334
Aspect
CreateBCode
public void compareNotBranch(org.extendj.ast.CodeGeneration gen,
                             int label,
                             TypeDecl typeDecl)
Source
Declared in /home/jesper/git/extendj/java4/backend/CreateBCode.jrag at line 1344
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
Source
Declared in /home/jesper/git/extendj/ASTNode at line 10
protected int numChildren()
Overrides:numChildren in class Binary
Source
Declared in /home/jesper/git/extendj/ASTNode at line 20
public boolean mayHaveRewrite()
Overrides:mayHaveRewrite in class Binary
Source
Declared in /home/jesper/git/extendj/ASTNode at line 26
public void flushAttrCache()
Overrides:flushAttrCache in class Binary
Source
Declared in /home/jesper/git/extendj/ASTNode at line 32
public void flushCollectionCache()
Overrides:flushCollectionCache in class Binary
Source
Declared in /home/jesper/git/extendj/ASTNode at line 39
public void flushRewriteCache()
Overrides:flushRewriteCache in class Binary
Source
Declared in /home/jesper/git/extendj/ASTNode at line 45
public RelationalExpr clone()
                     throws java.lang.CloneNotSupportedException
Overrides:clone in class Binary
Throws:
java.lang.CloneNotSupportedException
Source
Declared in /home/jesper/git/extendj/ASTNode at line 51
@Deprecated
public abstract RelationalExpr fullCopy()
Deprecated. Please use treeCopy or treeCopyNoTransform instead

Create a deep copy of the AST subtree at this node. The copy is dangling, i.e. has no parent.

Specified by:fullCopy in class Binary
Returns:
dangling copy of the subtree at this node
Source
Declared in /home/jesper/git/extendj/ASTNode at line 62
public abstract RelationalExpr treeCopyNoTransform()
Create a deep copy of the AST subtree at this node. The copy is dangling, i.e. has no parent.
Specified by:treeCopyNoTransform in class Binary
Returns:
dangling copy of the subtree at this node
Source
Declared in /home/jesper/git/extendj/ASTNode at line 70
public abstract RelationalExpr treeCopy()
Create a deep copy of the AST subtree at this node. The subtree of this node is traversed to trigger rewrites before copy. The copy is dangling, i.e. has no parent.
Specified by:treeCopy in class Binary
Returns:
dangling copy of the subtree at this node
Source
Declared in /home/jesper/git/extendj/ASTNode at line 78
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:rewriteTo in class Binary

Fields

protected boolean type_computed

Inherited Members

Attributes inherited from org.extendj.ast.Binary

Attributes inherited from org.extendj.ast.Expr

Attributes inherited from org.extendj.ast.ASTNode

Methods inherited from class org.extendj.ast.Binary

Methods inherited from class org.extendj.ast.Expr

Methods inherited from class org.extendj.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 org.extendj.ast.Binary

Fields inherited from org.extendj.ast.Expr

Fields inherited from org.extendj.ast.ASTNode

Fields inherited from beaver.Symbol

end
id
start
value