AST
node type SingleStaticImportDecl

General Info

Production
SingleStaticImportDecl : StaticImportDecl ::= <ID:String>;
Type Hierarchy:
java.lang.Object
  extended by beaver.Symbol
      extended by AST.ASTNode<ASTNode>
          extended by AST.ImportDecl
              extended by AST.StaticImportDecl
                  extended by AST.SingleStaticImportDecl
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Iterable<ASTNode>

Description

7.5.3 A single-static-import declaration imports all accessible (ยง6.6) static members with a given simple name from a type. This makes these static members available under their simple name in the class and interface declarations of the compilation unit in which the single-static import declaration appears.
Source
Declared in Java1.5Frontend/StaticImports.ast at line 12

Member Filters

API level:

Aspect:

Constructors

public SingleStaticImportDecl(Access p0,
                              java.lang.String p1)
 
public SingleStaticImportDecl(Access p0,
                              beaver.Symbol p1)
 

Attributes

syn TypeDecl type()
Specified by:type in class StaticImportDecl
Source
Declared in Java1.5Frontend/StaticImports.jrag at line 53
Aspect
StaticImports
syn java.lang.String name()
Source
Declared in Java1.5Frontend/StaticImports.jrag at line 99
Aspect
StaticImports

Methods

public void flushCache()
Overrides:flushCache in class StaticImportDecl
public SingleStaticImportDecl clone()
                             throws java.lang.CloneNotSupportedException
Overrides:clone in class StaticImportDecl
Throws:
java.lang.CloneNotSupportedException
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 typeCheck()
Overrides:typeCheck in class ASTNode<ASTNode>
Source
Declared in Java1.5Frontend/StaticImports.jrag at line 61
Aspect
StaticImports
public void nameCheck()
Overrides:nameCheck in class ASTNode<ASTNode>
Source
Declared in Java1.5Frontend/StaticImports.jrag at line 93
Aspect
StaticImports
public void toString(java.lang.StringBuffer s)
Overrides:toString in class ASTNode<ASTNode>
Source
Declared in Java1.5Frontend/StaticImports.jrag at line 207
Aspect
StaticImports
public void init$Children()
Initializes the child array to the correct size. Initializes List and Opt nta children.
Overrides:init$Children in class StaticImportDecl
protected int numChildren()
Overrides:numChildren in class StaticImportDecl
public boolean mayHaveRewrite()
Overrides:mayHaveRewrite in class StaticImportDecl
public void setAccess(Access node)
Replaces the Access child.
Overrides:setAccess in class StaticImportDecl
Parameters:
node - The new node to replace the Access child.
public Access getAccess()
Retrieves the Access child.
Overrides:getAccess in class StaticImportDecl
Returns:
The current node used as the Access child.
Retrieves the Access child.

This method does not invoke AST transformations.

Overrides:getAccessNoTransform in class StaticImportDecl
Returns:
The current node used as the Access child.
public void setID(java.lang.String value)
Replaces the lexeme ID.
Parameters:
value - The new value for the lexeme ID.
public void setID(beaver.Symbol symbol)
JastAdd-internal setter for lexeme ID using the Beaver parser.
public java.lang.String getID()
Retrieves the value for the lexeme ID.
Returns:
The value for the lexeme ID.
Overrides:Define_NameType_nameType in class ASTNode<ASTNode>
Source
Declared in Java1.5Frontend/StaticImports.jrag at line 203
Overrides:rewriteTo in class StaticImportDecl

Fields

protected java.lang.String tokenString_ID
public int IDstart
public int IDend

Inherited Members

Attributes inherited from AST.StaticImportDecl

Attributes inherited from AST.ImportDecl

Attributes inherited from AST.ASTNode

Methods inherited from class AST.StaticImportDecl

Methods inherited from class AST.ImportDecl

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

Fields inherited from AST.ASTNode

Fields inherited from beaver.Symbol

end
id
start
value