org.extendj.ast
node type SingleTypeImportDecl

General Info

Production
SingleTypeImportDecl : ImportDecl;
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.SingleTypeImportDecl
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Iterable<ASTNode>, org.jastadd.util.PrettyPrintable

Description

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

Member Filters

API level:

Aspect:

Constructors

public SingleTypeImportDecl()
 
Source
Declared in /home/jesper/git/extendj/ASTNode at line 1
public SingleTypeImportDecl(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)
Overrides:importedTypes in class ImportDecl
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.
Overrides:importedTypes in class ImportDecl
Returns:
TypeDecl of imported type wrapped in SimpleSet
Source
Declared in /home/jesper/git/extendj/java4/frontend/LookupType.jrag at line 437
Aspect
TypeScopePropagation

Methods

public void nameCheck()
Overrides:nameCheck in class ASTNode<ASTNode>
Source
Declared in /home/jesper/git/extendj/java4/frontend/NameCheck.jrag at line 43
Aspect
NameCheck
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/java4/frontend/PrettyPrint.jadd at line 255
Aspect
Java4PrettyPrint
public void init$Children()
Initializes the child array to the correct size. Initializes List and Opt nta children.
Overrides:init$Children in class ImportDecl
Source
Declared in /home/jesper/git/extendj/ASTNode at line 10
protected int numChildren()
Overrides:numChildren in class ImportDecl
Source
Declared in /home/jesper/git/extendj/ASTNode at line 19
public boolean mayHaveRewrite()
Overrides:mayHaveRewrite in class ImportDecl
Source
Declared in /home/jesper/git/extendj/ASTNode at line 25
public void flushAttrCache()
Overrides:flushAttrCache in class ImportDecl
Source
Declared in /home/jesper/git/extendj/ASTNode at line 31
public void flushCollectionCache()
Overrides:flushCollectionCache in class ImportDecl
Source
Declared in /home/jesper/git/extendj/ASTNode at line 39
public void flushRewriteCache()
Overrides:flushRewriteCache in class ImportDecl
Source
Declared in /home/jesper/git/extendj/ASTNode at line 45
public SingleTypeImportDecl clone()
                           throws java.lang.CloneNotSupportedException
Overrides:clone in class ImportDecl
Throws:
java.lang.CloneNotSupportedException
Source
Declared in /home/jesper/git/extendj/ASTNode at line 51
public SingleTypeImportDecl copy()
Overrides:copy in class ASTNode<ASTNode>
Source
Declared in /home/jesper/git/extendj/ASTNode at line 58
@Deprecated
public SingleTypeImportDecl 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 ImportDecl
Returns:
dangling copy of the subtree at this node
Source
Declared in /home/jesper/git/extendj/ASTNode at line 77
public SingleTypeImportDecl 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 ImportDecl
Returns:
dangling copy of the subtree at this node
Source
Declared in /home/jesper/git/extendj/ASTNode at line 87
public SingleTypeImportDecl 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 ImportDecl
Returns:
dangling copy of the subtree at this node
Source
Declared in /home/jesper/git/extendj/ASTNode at line 107
protected boolean is$Equal(ASTNode node)
Overrides:is$Equal in class ASTNode<ASTNode>
Source
Declared in /home/jesper/git/extendj/ASTNode at line 114
public void setAccess(Access node)
Replaces the Access child.
Overrides:setAccess in class ImportDecl
Parameters:
node - The new node to replace the Access child.
Retrieves the Access child.
Overrides:getAccess in class ImportDecl
Returns:
The current node used as the Access child.
Retrieves the Access child.

This method does not invoke AST transformations.

Overrides:getAccessNoTransform in class ImportDecl
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 ImportDecl

Fields

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

Inherited Members

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

Fields inherited from org.extendj.ast.ASTNode

Fields inherited from beaver.Symbol

end
id
start
value