AST
node type ImportDecl

General Info

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

Description

Source
Declared in Java1.4Frontend/java.ast at line 10

Member Filters

API level:

Aspect:

Constructors

public ImportDecl()
 
public ImportDecl(Access p0)
 

Attributes

syn SimpleSet importedTypes(java.lang.String name)
Source
Declared in Java1.4Frontend/LookupType.jrag at line 322
Aspect
TypeScopePropagation
syn boolean isOnDemand()
Source
Declared in Java1.4Frontend/LookupType.jrag at line 351
Aspect
TypeScopePropagation
syn java.lang.String typeName()
Source
Declared in Java1.4Frontend/QualifiedNames.jrag at line 51
Aspect
Names
syn SimpleSet importedFields(java.lang.String name)
Source
Declared in Java1.5Frontend/StaticImports.jrag at line 30
Aspect
StaticImports
syn java.util.Collection importedMethods(java.lang.String name)
Source
Declared in Java1.5Frontend/StaticImports.jrag at line 41
Aspect
StaticImports
inh java.lang.String packageName()
Source
Declared in Java1.4Frontend/LookupType.jrag at line 349
Aspect
TypeScopePropagation

Methods

public void flushCache()
Overrides:flushCache in class ASTNode<ASTNode>
public void flushCollectionCache()
Overrides:flushCollectionCache in class ASTNode<ASTNode>
public ImportDecl clone()
                 throws java.lang.CloneNotSupportedException
Overrides:clone in class ASTNode<ASTNode>
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 ASTNode<ASTNode>
protected int numChildren()
Overrides:numChildren in class ASTNode<ASTNode>
public boolean mayHaveRewrite()
Overrides:mayHaveRewrite in class ASTNode<ASTNode>
public void setAccess(Access node)
Replaces the Access child.
Parameters:
node - The new node to replace the Access child.
public Access getAccess()
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_boolean_isDest(ASTNode caller,
                                     ASTNode child)
Overrides:Define_boolean_isDest in class ASTNode<ASTNode>
Source
Declared in Java1.4Frontend/DefiniteAssignment.jrag at line 23
public boolean Define_boolean_isSource(ASTNode caller,
                                       ASTNode child)
Overrides:Define_boolean_isSource in class ASTNode<ASTNode>
Source
Declared in Java1.4Frontend/DefiniteAssignment.jrag at line 32
Overrides:rewriteTo in class ASTNode<ASTNode>

Fields

protected java.util.Map importedTypes_String_values
protected java.util.Map importedFields_String_values
protected java.util.Map importedMethods_String_values

Inherited Members

Attributes inherited from AST.ASTNode

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

Fields inherited from beaver.Symbol

end
id
start
value