org.extendj.ast
node type StaticImportOnDemandDecl

General Info

Production
StaticImportOnDemandDecl : StaticImportDecl;
Type Hierarchy:
java.lang.Object
  extended by beaver.Symbol
      extended by org.extendj.ast.ASTNode<ASTNode>
          extended by org.extendj.ast.ImportDecl
              extended by org.extendj.ast.StaticImportDecl
                  extended by org.extendj.ast.StaticImportOnDemandDecl
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Iterable<ASTNode>, org.jastadd.util.PrettyPrintable

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 /home/jesper/git/extendj/java5/grammar/StaticImports.ast at line 19

Member Filters

API level:

Aspect:

Constructors

public StaticImportOnDemandDecl()
 
Source
Declared in /home/jesper/git/extendj/ASTNode at line 1
public StaticImportOnDemandDecl(Access p0)
 
Source
Declared in /home/jesper/git/extendj/ASTNode at line 13

Attributes

Specified by:type in class StaticImportDecl
Source
Declared in /home/jesper/git/extendj/java5/frontend/StaticImports.jrag at line 95
Aspect
StaticImports
Overrides:isOnDemand in class ImportDecl
Source
Declared in /home/jesper/git/extendj/java4/frontend/LookupType.jrag at line 466
Aspect
TypeScopePropagation

Methods

public void prettyPrint(org.jastadd.util.PrettyPrinter out)
Specified by:prettyPrint in interface org.jastadd.util.PrettyPrintableOverrides:prettyPrint in class ASTNode<ASTNode>
Source
Declared in /home/jesper/git/extendj/java5/frontend/PrettyPrint.jadd at line 328
Aspect
Java5PrettyPrint
public void nameCheck()
The TypeName must be the canonical name of a class or interface type
Overrides:nameCheck in class ASTNode<ASTNode>
Source
Declared in /home/jesper/git/extendj/java5/frontend/StaticImports.jrag at line 118
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
Source
Declared in /home/jesper/git/extendj/ASTNode at line 10
protected int numChildren()
Overrides:numChildren in class StaticImportDecl
Source
Declared in /home/jesper/git/extendj/ASTNode at line 19
public boolean mayHaveRewrite()
Overrides:mayHaveRewrite in class StaticImportDecl
Source
Declared in /home/jesper/git/extendj/ASTNode at line 25
public void flushAttrCache()
Overrides:flushAttrCache in class StaticImportDecl
Source
Declared in /home/jesper/git/extendj/ASTNode at line 31
public void flushCollectionCache()
Overrides:flushCollectionCache in class StaticImportDecl
Source
Declared in /home/jesper/git/extendj/ASTNode at line 37
public void flushRewriteCache()
Overrides:flushRewriteCache in class StaticImportDecl
Source
Declared in /home/jesper/git/extendj/ASTNode at line 43
public StaticImportOnDemandDecl clone()
                               throws java.lang.CloneNotSupportedException
Overrides:clone in class StaticImportDecl
Throws:
java.lang.CloneNotSupportedException
Source
Declared in /home/jesper/git/extendj/ASTNode at line 49
Overrides:copy in class ASTNode<ASTNode>
Source
Declared in /home/jesper/git/extendj/ASTNode at line 56
@Deprecated
public StaticImportOnDemandDecl fullCopy()
Deprecated. Please use treeCopy or treeCopyNoTransform instead

Create a deep copy of the AST subtree at this node. The copy is dangling, i.e. has no parent.

Specified by:fullCopy in class StaticImportDecl
Returns:
dangling copy of the subtree at this node
Source
Declared in /home/jesper/git/extendj/ASTNode at line 75
public StaticImportOnDemandDecl treeCopyNoTransform()
Create a deep copy of the AST subtree at this node. The copy is dangling, i.e. has no parent.
Specified by:treeCopyNoTransform in class StaticImportDecl
Returns:
dangling copy of the subtree at this node
Source
Declared in /home/jesper/git/extendj/ASTNode at line 85
public StaticImportOnDemandDecl treeCopy()
Create a deep copy of the AST subtree at this node. The subtree of this node is traversed to trigger rewrites before copy. The copy is dangling, i.e. has no parent.
Specified by:treeCopy in class StaticImportDecl
Returns:
dangling copy of the subtree at this node
Source
Declared in /home/jesper/git/extendj/ASTNode at line 105
protected boolean is$Equal(ASTNode node)
Overrides:is$Equal in class ASTNode<ASTNode>
Source
Declared in /home/jesper/git/extendj/ASTNode at line 112
public void setAccess(Access node)
Replaces the Access child.
Overrides:setAccess in class StaticImportDecl
Parameters:
node - The new node to replace the Access child.
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 org.extendj.ast.NameType Define_nameType(ASTNode caller,
                                                ASTNode child)
Overrides:Define_nameType in class ASTNode<ASTNode>
Source
Declared in /home/jesper/git/extendj/java4/frontend/SyntacticClassification.jrag at line 36
protected boolean canDefine_nameType(ASTNode caller,
                                     ASTNode child)
Overrides:rewriteTo in class StaticImportDecl

Inherited Members

Attributes inherited from org.extendj.ast.StaticImportDecl

Attributes inherited from org.extendj.ast.ImportDecl

Attributes inherited from org.extendj.ast.ASTNode

Methods inherited from class org.extendj.ast.ImportDecl

Methods inherited from class org.extendj.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 org.extendj.ast.StaticImportDecl

Fields inherited from org.extendj.ast.ImportDecl

Fields inherited from org.extendj.ast.ASTNode

Fields inherited from beaver.Symbol

end
id
start
value