AST
node type StaticImportOnDemandDecl

General Info

Production
StaticImportOnDemandDecl : StaticImportDecl;
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.StaticImportOnDemandDecl
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Iterable<ASTNode>

Description

7.5.4 A static-import-on-demand declaration allows all accessible (ยง6.6) static members declared in the type named by a canonical name to be imported as needed.
Source
Declared in Java1.5Frontend/StaticImports.ast at line 19

Member Filters

API level:

Aspect:

Constructors

Attributes

syn TypeDecl type()
Specified by:type in class StaticImportDecl
Source
Declared in Java1.5Frontend/StaticImports.jrag at line 53
Aspect
StaticImports
syn boolean isOnDemand()
Overrides:isOnDemand in class ImportDecl
Source
Declared in Java1.4Frontend/LookupType.jrag at line 351
Aspect
TypeScopePropagation

Methods

public void flushCache()
Overrides:flushCache in class StaticImportDecl
public StaticImportOnDemandDecl 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 toString(java.lang.StringBuffer s)
Overrides:toString in class ASTNode<ASTNode>
Source
Declared in Java1.5Frontend/StaticImports.jrag at line 213
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.
Overrides:Define_NameType_nameType in class ASTNode<ASTNode>
Source
Declared in Java1.5Frontend/StaticImports.jrag at line 204
Overrides:rewriteTo in class StaticImportDecl

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