AST
node type Unary

General Info

Production
Unary : Expr ::= Operand:Expr;
Type Hierarchy:
java.lang.Object
  extended by beaver.Symbol
      extended by AST.ASTNode<ASTNode>
          extended by AST.Expr
              extended by AST.Unary
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Iterable<ASTNode>
Direct Known Subclasses:
BitNotExpr, LogNotExpr, MinusExpr, PlusExpr, PostfixExpr, PreDecExpr, PreIncExpr

Description

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

Member Filters

API level:

Aspect:

Constructors

public Unary()
 
public Unary(Expr p0)
 

Attributes

syn boolean isDAafter(Variable v)
Overrides:isDAafter in class Expr
Source
Declared in Java1.4Frontend/DefiniteAssignment.jrag at line 235
Aspect
DA
syn boolean isDUafter(Variable v)
Overrides:isDUafter in class Expr
Source
Declared in Java1.4Frontend/DefiniteAssignment.jrag at line 694
Aspect
DU
syn java.lang.String printPostOp()
Source
Declared in Java1.4Frontend/PrettyPrint.jadd at line 372
Aspect
PrettyPrint
syn java.lang.String printPreOp()
Source
Declared in Java1.4Frontend/PrettyPrint.jadd at line 376
Aspect
PrettyPrint
syn TypeDecl type()
Specified by:type in class Expr
Source
Declared in Java1.4Frontend/TypeAnalysis.jrag at line 314
Aspect
TypeAnalysis

Methods

public void flushCache()
Overrides:flushCache in class Expr
public void flushCollectionCache()
Overrides:flushCollectionCache in class Expr
public Unary clone()
            throws java.lang.CloneNotSupportedException
Overrides:clone in class Expr
Throws:
java.lang.CloneNotSupportedException
public void toString(java.lang.StringBuffer s)
Overrides:toString in class ASTNode<ASTNode>
Source
Declared in Java1.4Frontend/PrettyPrint.jadd at line 366
Aspect
PrettyPrint
public void createBCode(CodeGeneration gen)
Overrides:createBCode in class ASTNode<ASTNode>
Source
Declared in Java1.4Backend/CreateBCode.jrag at line 835
Aspect
CreateBCode
protected void boxingGen(CodeGeneration gen)
Source
Declared in Java1.5Backend/AutoBoxingCodegen.jrag at line 295
Aspect
AutoBoxingCodegen
public void init$Children()
Initializes the child array to the correct size. Initializes List and Opt nta children.
Overrides:init$Children in class Expr
protected int numChildren()
Overrides:numChildren in class Expr
public boolean mayHaveRewrite()
Overrides:mayHaveRewrite in class Expr
public void setOperand(Expr node)
Replaces the Operand child.
Parameters:
node - The new node to replace the Operand child.
public Expr getOperand()
Retrieves the Operand child.
Returns:
The current node used as the Operand child.
Retrieves the Operand child.

This method does not invoke AST transformations.

Returns:
The current node used as the Operand child.
public void emitPostfix(CodeGeneration gen,
                        int constant)
Source
Declared in Java1.5Backend/AutoBoxingCodegen.jrag at line 201
Aspect
AutoBoxingCodegen
public void emitPrefix(CodeGeneration gen,
                       int constant)
Source
Declared in Java1.5Backend/AutoBoxingCodegen.jrag at line 219
Aspect
AutoBoxingCodegen
public boolean Define_boolean_isSource(ASTNode caller,
                                       ASTNode child)
Overrides:Define_boolean_isSource in class ASTNode<ASTNode>
Source
Declared in Java1.4Frontend/DefiniteAssignment.jrag at line 44
Overrides:rewriteTo in class Expr

Fields

protected boolean type_computed

Inherited Members

Attributes inherited from AST.Expr

Attributes inherited from AST.ASTNode

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.Expr

Fields inherited from AST.ASTNode

Fields inherited from beaver.Symbol

end
id
start
value