org.extendj.ast
node type ImportDecl

General Info

Production
ImportDecl : ASTNode ::= Access;
Type Hierarchy:
java.lang.Object
  extended by beaver.Symbol
      extended by org.extendj.ast.ASTNode<ASTNode>
          extended by org.extendj.ast.ImportDecl
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Iterable<ASTNode>, org.jastadd.util.PrettyPrintable
Direct Known Subclasses:
SingleTypeImportDecl, StaticImportDecl, TypeImportOnDemandDecl

Description

Source
Declared in /home/jesper/git/extendj/java4/grammar/Java.ast at line 9

Member Filters

API level:

Aspect:

Constructors

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

Attributes

@ASTNodeAnnotation.Attribute
syn org.extendj.ast.SimpleSet importedTypes(java.lang.String name)
Source
Declared in /home/jesper/git/extendj/java4/frontend/LookupType.jrag at line 420
Aspect
TypeScopePropagation
@ASTNodeAnnotation.Attribute
syn org.extendj.ast.SimpleSet importedTypes()
For a single-import declaration this will return a SimpleSet containing the TypeDecl for the imported type. For dynamic import declarations this returns the empty set.
Returns:
TypeDecl of imported type wrapped in SimpleSet
Source
Declared in /home/jesper/git/extendj/java4/frontend/LookupType.jrag at line 437
Aspect
TypeScopePropagation
Source
Declared in /home/jesper/git/extendj/java4/frontend/LookupType.jrag at line 466
Aspect
TypeScopePropagation
@ASTNodeAnnotation.Attribute
syn java.lang.String typeName()
Source
Declared in /home/jesper/git/extendj/java4/frontend/QualifiedNames.jrag at line 60
Aspect
Names
@ASTNodeAnnotation.Attribute
syn org.extendj.ast.SimpleSet importedFields(java.lang.String name)
Source
Declared in /home/jesper/git/extendj/java5/frontend/StaticImports.jrag at line 55
Aspect
StaticImports
@ASTNodeAnnotation.Attribute
syn java.util.Collection importedMethods(java.lang.String name)
Source
Declared in /home/jesper/git/extendj/java5/frontend/StaticImports.jrag at line 75
Aspect
StaticImports
Source
Declared in /home/jesper/git/extendj/java4/frontend/LookupType.jrag at line 464
Aspect
TypeScopePropagation
@ASTNodeAnnotation.Attribute
inh org.extendj.ast.SimpleSet allImportedTypes(java.lang.String name)
Source
Declared in /home/jesper/git/extendj/java4/frontend/NameCheck.jrag at line 52
Aspect
NameCheck

Methods

public void init$Children()
Initializes the child array to the correct size. Initializes List and Opt nta children.
Overrides:init$Children in class ASTNode<ASTNode>
Source
Declared in /home/jesper/git/extendj/ASTNode at line 10
protected int numChildren()
Overrides:numChildren in class ASTNode<ASTNode>
Source
Declared in /home/jesper/git/extendj/ASTNode at line 19
public boolean mayHaveRewrite()
Overrides:mayHaveRewrite in class ASTNode<ASTNode>
Source
Declared in /home/jesper/git/extendj/ASTNode at line 25
public void flushAttrCache()
Overrides:flushAttrCache in class ASTNode<ASTNode>
Source
Declared in /home/jesper/git/extendj/ASTNode at line 31
public void flushCollectionCache()
Overrides:flushCollectionCache in class ASTNode<ASTNode>
Source
Declared in /home/jesper/git/extendj/ASTNode at line 41
public void flushRewriteCache()
Overrides:flushRewriteCache in class ASTNode<ASTNode>
Source
Declared in /home/jesper/git/extendj/ASTNode at line 47
public ImportDecl clone()
                 throws java.lang.CloneNotSupportedException
Overrides:clone in class ASTNode<ASTNode>
Throws:
java.lang.CloneNotSupportedException
Source
Declared in /home/jesper/git/extendj/ASTNode at line 53
@Deprecated
public abstract ImportDecl 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.

Overrides:fullCopy in class ASTNode<ASTNode>
Returns:
dangling copy of the subtree at this node
Source
Declared in /home/jesper/git/extendj/ASTNode at line 64
public abstract ImportDecl treeCopyNoTransform()
Create a deep copy of the AST subtree at this node. The copy is dangling, i.e. has no parent.
Overrides:treeCopyNoTransform in class ASTNode<ASTNode>
Returns:
dangling copy of the subtree at this node
Source
Declared in /home/jesper/git/extendj/ASTNode at line 72
public abstract ImportDecl 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.
Overrides:treeCopy in class ASTNode<ASTNode>
Returns:
dangling copy of the subtree at this node
Source
Declared in /home/jesper/git/extendj/ASTNode at line 80
public void setAccess(Access node)
Replaces the Access child.
Parameters:
node - The new node to replace the Access child.
Retrieves the Access child.
Returns:
The current node used as the Access child.
Retrieves the Access child.

This method does not invoke AST transformations.

Returns:
The current node used as the Access child.
public boolean Define_isDest(ASTNode caller,
                             ASTNode child)
Overrides:Define_isDest in class ASTNode<ASTNode>
Source
Declared in /home/jesper/git/extendj/java4/frontend/DefiniteAssignment.jrag at line 37
protected boolean canDefine_isDest(ASTNode caller,
                                   ASTNode child)
public boolean Define_isSource(ASTNode caller,
                               ASTNode child)
Overrides:Define_isSource in class ASTNode<ASTNode>
Source
Declared in /home/jesper/git/extendj/java4/frontend/DefiniteAssignment.jrag at line 47
protected boolean canDefine_isSource(ASTNode caller,
                                     ASTNode child)
Overrides:rewriteTo in class ASTNode<ASTNode>

Fields

protected java.util.Map importedTypes_String_values
protected boolean importedTypes_computed
protected org.extendj.ast.SimpleSet importedTypes_value
protected java.util.Map importedFields_String_values
protected java.util.Map importedMethods_String_values

Inherited Members

Attributes inherited from org.extendj.ast.ASTNode

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

Fields inherited from beaver.Symbol

end
id
start
value