AST
node type Decl

General Info

Production
Decl : BlockStmt ::= <Name:String>;
Type Hierarchy:
java.lang.Object
  extended by AST.ASTNode<ASTNode>
      extended by AST.BlockStmt
          extended by AST.Decl
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Iterable<ASTNode>
Direct Known Subclasses:
MethodDecl, TypeDecl, VarDecl

Description

Source
Declared in ../spec/picojava.ast at line 6

Member Filters

API level:

Aspect:

Constructors

public Decl()
public Decl(java.lang.String p0)

Attributes

syn TypeDecl type()
Source
Declared in ../spec/TypeAnalysis.jrag at line 9
Aspect
TypeAnalysis
syn Decl declarationOf(java.lang.String name)
Overrides:declarationOf in class BlockStmt
Source
Declared in ../spec/NameResolution.jrag at line 100
Aspect
NameResolution
syn boolean isUnknown()
Source
Declared in ../spec/NullObjects.jrag at line 5
Aspect
NullObjects
Source
Declared in ../spec/PredefinedTypes.jrag at line 15
Aspect
PredefinedTypes

Methods

public Decl clone()
           throws java.lang.CloneNotSupportedException
Overrides:clone in class BlockStmt
Throws:
java.lang.CloneNotSupportedException
public void init$Children()
Initializes the child array to the correct size. Initializes List and Opt nta children.
Overrides:init$Children in class BlockStmt
protected int numChildren()
Overrides:numChildren in class BlockStmt
public boolean mayHaveRewrite()
Overrides:mayHaveRewrite in class BlockStmt
public void flushCache()
Overrides:flushCache in class BlockStmt
public void flushCollectionCache()
Overrides:flushCollectionCache in class BlockStmt
public void setName(java.lang.String value)
Replaces the lexeme Name.
Parameters:
value - The new value for the lexeme Name.
public java.lang.String getName()
Retrieves the value for the lexeme Name.
Returns:
The value for the lexeme Name.
Overrides:rewriteTo in class BlockStmt

Fields

protected java.lang.String tokenString_Name
protected java.util.Map declarationOf_String_visited
protected int isUnknown_visited
protected int booleanType_visited

Inherited Members