AST
node type ConstCase

General Info

Production
ConstCase : Case ::= Value:Expr;
Type Hierarchy:
java.lang.Object
  extended by beaver.Symbol
      extended by AST.ASTNode<ASTNode>
          extended by AST.Stmt
              extended by AST.Case
                  extended by AST.ConstCase
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Iterable<ASTNode>

Description

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

Member Filters

API level:

Aspect:

Constructors

public ConstCase()
 
public ConstCase(Expr p0)
 

Attributes

syn boolean constValue(Case c)
Specified by:constValue in class Case
Source
Declared in Java1.4Frontend/NameCheck.jrag at line 431
Aspect
NameCheck

Methods

public void flushCache()
Overrides:flushCache in class Case
public void flushCollectionCache()
Overrides:flushCollectionCache in class Case
public ConstCase clone()
                throws java.lang.CloneNotSupportedException
Overrides:clone in class Case
Throws:
java.lang.CloneNotSupportedException
public ConstCase copy()
Overrides:copy in class ASTNode<ASTNode>
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 nameCheck()
Overrides:nameCheck in class ASTNode<ASTNode>
Source
Declared in Java1.4Frontend/NameCheck.jrag at line 406
Aspect
NameCheck
public void toString(java.lang.StringBuffer s)
Overrides:toString in class ASTNode<ASTNode>
Source
Declared in Java1.4Frontend/PrettyPrint.jadd at line 562
Aspect
PrettyPrint
public void transformation()
Overrides:transformation in class ASTNode<ASTNode>
Source
Declared in Java1.5Backend/EnumsCodegen.jrag at line 32
Aspect
EnumsCodegen
public void init$Children()
Initializes the child array to the correct size. Initializes List and Opt nta children.
Overrides:init$Children in class Case
protected int numChildren()
Overrides:numChildren in class Case
public boolean mayHaveRewrite()
Overrides:mayHaveRewrite in class Case
public void setValue(Expr node)
Replaces the Value child.
Parameters:
node - The new node to replace the Value child.
public Expr getValue()
Retrieves the Value child.
Returns:
The current node used as the Value child.
Retrieves the Value child.

This method does not invoke AST transformations.

Returns:
The current node used as the Value child.
Source
Declared in Java1.5Frontend/Enums.jrag at line 503
Aspect
Enums
public void typeCheck()

Improve the type checking error messages given for case labels.

Overrides:typeCheck in class ASTNode<ASTNode>
Source
Declared in Java7Frontend/StringsInSwitch.jrag at line 68
Aspect
StringsInSwitch
public SimpleSet Define_SimpleSet_lookupVariable(ASTNode caller,
                                                 ASTNode child,
                                                 java.lang.String name)
Overrides:Define_SimpleSet_lookupVariable in class ASTNode<ASTNode>
Source
Declared in Java1.5Frontend/Enums.jrag at line 497
Overrides:rewriteTo in class Case

Inherited Members

Attributes inherited from AST.Case

Attributes inherited from AST.Stmt

Attributes inherited from AST.ASTNode

Methods inherited from class AST.Case

Methods inherited from class AST.Stmt

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

Fields inherited from AST.Stmt

Fields inherited from AST.ASTNode

Fields inherited from beaver.Symbol

end
id
start
value