org.extendj.ast
node type PackageAccess

General Info

Production
PackageAccess : Access ::= <Package:String>;
Type Hierarchy:
java.lang.Object
  extended by beaver.Symbol
      extended by org.extendj.ast.ASTNode<ASTNode>
          extended by org.extendj.ast.Expr
              extended by org.extendj.ast.Access
                  extended by org.extendj.ast.PackageAccess
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 28

Member Filters

API level:

Aspect:

Constructors

public PackageAccess(java.lang.String name,
                     int start,
                     int end)
 
Source
Declared in /home/jesper/git/extendj/java4/frontend/NodeConstructors.jrag at line 39
Aspect
NodeConstructors
public PackageAccess()
 
Source
Declared in /home/jesper/git/extendj/ASTNode at line 1
public PackageAccess(java.lang.String p0)
 
Source
Declared in /home/jesper/git/extendj/ASTNode at line 12
public PackageAccess(beaver.Symbol p0)
 
Source
Declared in /home/jesper/git/extendj/ASTNode at line 15

Attributes

@ASTNodeAnnotation.Attribute
syn boolean hasQualifiedPackage(java.lang.String packageName)
Overrides:hasQualifiedPackage in class Expr
Source
Declared in /home/jesper/git/extendj/java4/frontend/LookupType.jrag at line 112
Aspect
LookupFullyQualifiedTypes
@ASTNodeAnnotation.Attribute
syn org.extendj.ast.SimpleSet qualifiedLookupType(java.lang.String name)
Overrides:qualifiedLookupType in class Expr
Source
Declared in /home/jesper/git/extendj/java4/frontend/LookupType.jrag at line 553
Aspect
TypeScopePropagation
@ASTNodeAnnotation.Attribute
syn org.extendj.ast.SimpleSet qualifiedLookupVariable(java.lang.String name)
Overrides:qualifiedLookupVariable in class Expr
Source
Declared in /home/jesper/git/extendj/java4/frontend/LookupVariable.jrag at line 237
Aspect
VariableScope
@ASTNodeAnnotation.Attribute
syn java.lang.String name()
Source
Declared in /home/jesper/git/extendj/java4/frontend/QualifiedNames.jrag at line 42
Aspect
Names
Overrides:packageName in class Expr
Source
Declared in /home/jesper/git/extendj/java4/frontend/QualifiedNames.jrag at line 44
Aspect
Names
Overrides:isPackageAccess in class Expr
Source
Declared in /home/jesper/git/extendj/java4/frontend/ResolveAmbiguousNames.jrag at line 59
Aspect
AccessTypes
@ASTNodeAnnotation.Attribute
syn org.extendj.ast.NameType predNameType()
Defines the expected kind of name for the left hand side in a qualified expression.
Overrides:predNameType in class Access
Source
Declared in /home/jesper/git/extendj/java4/frontend/SyntacticClassification.jrag at line 58
Aspect
SyntacticClassification
Overrides:isUnknown in class Expr
Source
Declared in /home/jesper/git/extendj/java4/frontend/TypeHierarchyCheck.jrag at line 41
Aspect
TypeHierarchyCheck
@ASTNodeAnnotation.Attribute
inh boolean hasPackage(java.lang.String packageName)
Overrides:hasPackage in class Expr
Source
Declared in /home/jesper/git/extendj/java4/frontend/NameCheck.jrag at line 308
Aspect
NameCheck

Methods

public void nameCheck()
Overrides:nameCheck in class ASTNode<ASTNode>
Source
Declared in /home/jesper/git/extendj/java4/frontend/NameCheck.jrag at line 82
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 139
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 Access
Source
Declared in /home/jesper/git/extendj/ASTNode at line 10
protected int numChildren()
Overrides:numChildren in class Access
Source
Declared in /home/jesper/git/extendj/ASTNode at line 21
public boolean mayHaveRewrite()
Overrides:mayHaveRewrite in class Access
Source
Declared in /home/jesper/git/extendj/ASTNode at line 27
public void flushAttrCache()
Overrides:flushAttrCache in class Access
Source
Declared in /home/jesper/git/extendj/ASTNode at line 33
public void flushCollectionCache()
Overrides:flushCollectionCache in class Access
Source
Declared in /home/jesper/git/extendj/ASTNode at line 39
public void flushRewriteCache()
Overrides:flushRewriteCache in class Access
Source
Declared in /home/jesper/git/extendj/ASTNode at line 45
public PackageAccess clone()
                    throws java.lang.CloneNotSupportedException
Overrides:clone in class Access
Throws:
java.lang.CloneNotSupportedException
Source
Declared in /home/jesper/git/extendj/ASTNode at line 51
public PackageAccess copy()
Overrides:copy in class ASTNode<ASTNode>
Source
Declared in /home/jesper/git/extendj/ASTNode at line 58
@Deprecated
public PackageAccess 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 Access
Returns:
dangling copy of the subtree at this node
Source
Declared in /home/jesper/git/extendj/ASTNode at line 77
public PackageAccess 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 Access
Returns:
dangling copy of the subtree at this node
Source
Declared in /home/jesper/git/extendj/ASTNode at line 87
public PackageAccess 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 Access
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 setPackage(java.lang.String value)
Replaces the lexeme Package.
Parameters:
value - The new value for the lexeme Package.
public void setPackage(beaver.Symbol symbol)
JastAdd-internal setter for lexeme Package using the Beaver parser.
Parameters:
symbol - Symbol containing the new value for the lexeme Package
@ASTNodeAnnotation.Token(name="Package")
public java.lang.String getPackage()
Retrieves the value for the lexeme Package.
Returns:
The value for the lexeme Package.
Overrides:rewriteTo in class Access

Fields

protected java.lang.String tokenString_Package
public int Packagestart
public int Packageend

Inherited Members

Attributes inherited from org.extendj.ast.Access

Attributes inherited from org.extendj.ast.Expr

Attributes inherited from org.extendj.ast.ASTNode

Methods inherited from class org.extendj.ast.Access

Methods inherited from class org.extendj.ast.Expr

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

Fields inherited from org.extendj.ast.Expr

Fields inherited from org.extendj.ast.ASTNode

Fields inherited from beaver.Symbol

end
id
start
value