AST
node type ArrayDecl

General Info

Production
ArrayDecl : ClassDecl;
Type Hierarchy:
java.lang.Object
  extended by beaver.Symbol
      extended by AST.ASTNode<ASTNode>
          extended by AST.TypeDecl
              extended by AST.ReferenceType
                  extended by AST.ClassDecl
                      extended by AST.ArrayDecl
All Implemented Interfaces:
SimpleSet, VariableScope, java.lang.Cloneable, java.lang.Iterable<ASTNode>, java.util.Iterator

Nested classes/interfaces inherited from interface AST.SimpleSet

Description

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

Member Filters

API level:

Aspect:

Constructors

public ArrayDecl()
 
public ArrayDecl(Modifiers p0,
                 java.lang.String p1,
                 Opt<Access> p2,
                 List<Access> p3,
                 List<BodyDecl> p4)
 
public ArrayDecl(Modifiers p0,
                 beaver.Symbol p1,
                 Opt<Access> p2,
                 List<Access> p3,
                 List<BodyDecl> p4)
 

Attributes

syn boolean accessibleFrom(TypeDecl type)
Overrides:accessibleFrom in class TypeDecl
Source
Declared in Java1.4Frontend/AccessControl.jrag at line 13
Aspect
AccessControl
syn int dimension()
Overrides:dimension in class TypeDecl
Source
Declared in Java1.4Frontend/Arrays.jrag at line 12
Aspect
Arrays
Overrides:elementType in class TypeDecl
Source
Declared in Java1.4Frontend/Arrays.jrag at line 16
Aspect
Arrays
syn java.lang.String name()
Overrides:name in class TypeDecl
Source
Declared in Java1.4Frontend/QualifiedNames.jrag at line 68
Aspect
TypeName
syn java.lang.String fullName()
Overrides:fullName in class TypeDecl
Source
Declared in Java1.4Frontend/Arrays.jrag at line 54
Aspect
Arrays
syn java.lang.String typeName()
Overrides:typeName in class TypeDecl
Source
Declared in Java1.4Frontend/QualifiedNames.jrag at line 87
Aspect
TypeName
syn boolean castingConversionTo(TypeDecl type)
Overrides:castingConversionTo in class ClassDecl
Source
Declared in Java1.5Frontend/Generics.jrag at line 96
Aspect
Generics
syn boolean isArrayDecl()
Overrides:isArrayDecl in class TypeDecl
Source
Declared in Java1.4Frontend/TypeAnalysis.jrag at line 213
Aspect
TypeAnalysis
syn boolean instanceOf(TypeDecl type)
Overrides:instanceOf in class ClassDecl
Source
Declared in Java1.5Frontend/GenericsSubtype.jrag at line 389
Aspect
GenericsSubtype
syn boolean isSupertypeOfArrayDecl(ArrayDecl type)
Overrides:isSupertypeOfArrayDecl in class ClassDecl
Source
Declared in Java1.4Frontend/TypeAnalysis.jrag at line 453
Aspect
TypeWideningAndIdentity
syn java.lang.String constantPoolName()
Overrides:constantPoolName in class TypeDecl
Source
Declared in Java1.4Backend/ConstantPool.jrag at line 36
Aspect
ConstantPool
syn java.lang.String typeDescriptor()
Overrides:typeDescriptor in class ClassDecl
Source
Declared in Java1.4Backend/ConstantPoolNames.jrag at line 26
Aspect
ConstantPoolNames
syn java.lang.String arrayTypeDescriptor()
Overrides:arrayTypeDescriptor in class ClassDecl
Source
Declared in Java1.4Backend/CreateBCode.jrag at line 820
Aspect
CreateBCode
syn java.lang.String jvmName()
Overrides:jvmName in class ReferenceType
Source
Declared in Java1.4Backend/Java2Rewrites.jrag at line 26
Aspect
Java2Rewrites
syn java.lang.String referenceClassFieldName()
Overrides:referenceClassFieldName in class ReferenceType
Source
Declared in Java1.4Backend/Java2Rewrites.jrag at line 57
Aspect
Java2Rewrites
syn boolean involvesTypeParameters()
Overrides:involvesTypeParameters in class TypeDecl
Source
Declared in Java1.5Frontend/GenericMethodsInference.jrag at line 17
Aspect
GenericMethodsInference
Overrides:erasure in class TypeDecl
Source
Declared in Java1.5Frontend/Generics.jrag at line 353
Aspect
GenericsErasure
syn boolean usesTypeVariable()
Overrides:usesTypeVariable in class TypeDecl
Source
Declared in Java1.5Frontend/Generics.jrag at line 1082
Aspect
LookupParTypeDecl
syn boolean subtype(TypeDecl type)
Overrides:subtype in class ClassDecl
Source
Declared in Java1.5Frontend/GenericsSubtype.jrag at line 409
Aspect
GenericsSubtype
syn boolean supertypeArrayDecl(ArrayDecl type)
Overrides:supertypeArrayDecl in class ClassDecl
Source
Declared in Java1.5Frontend/GenericsSubtype.jrag at line 450
Aspect
GenericsSubtype
Overrides:needsSignatureAttribute in class ClassDecl
Source
Declared in Java1.5Backend/GenericsCodegen.jrag at line 346
Aspect
GenericsCodegen
syn java.lang.String fieldTypeSignature()
Overrides:fieldTypeSignature in class TypeDecl
Source
Declared in Java1.5Backend/GenericsCodegen.jrag at line 444
Aspect
GenericsCodegen
syn java.lang.String classTypeSignature()
Overrides:classTypeSignature in class TypeDecl
Source
Declared in Java1.5Backend/GenericsCodegen.jrag at line 453
Aspect
GenericsCodegen
syn boolean isReifiable()
A type is reifiable if it either refers to a non-parameterized type, is a raw type, is a parameterized type with only unbound wildcard parameters or is an array type with a reifiable type parameter.
Overrides:isReifiable in class TypeDecl
See Also:
"JLSv3 §4.7"
Source
Declared in Java7Frontend/SafeVarargs.jrag at line 106
Aspect
SafeVarargs
Overrides:typeSerializable in class TypeDecl
Source
Declared in Java1.4Frontend/TypeAnalysis.jrag at line 140
Aspect
TypeConversion
Overrides:typeCloneable in class TypeDecl
Source
Declared in Java1.4Frontend/TypeAnalysis.jrag at line 141
Aspect
TypeConversion

Methods

public void flushCache()
Overrides:flushCache in class ClassDecl
public void flushCollectionCache()
Overrides:flushCollectionCache in class ClassDecl
public ArrayDecl clone()
                throws java.lang.CloneNotSupportedException
Overrides:clone in class ClassDecl
Throws:
java.lang.CloneNotSupportedException
public ArrayDecl copy()
Overrides:copy in class ClassDecl
Create a deep copy of the AST subtree at this node. The copy is dangling, i.e. has no parent.
Overrides:fullCopy in class ClassDecl
Returns:
dangling copy of the subtree at this node
Overrides:createQualifiedAccess in class TypeDecl
Source
Declared in Java1.4Frontend/Arrays.jrag at line 59
Aspect
Arrays
public Access substitute(Parameterization parTypeDecl)
Overrides:substitute in class TypeDecl
Source
Declared in Java1.5Frontend/Generics.jrag at line 880
Aspect
LookupParTypeDecl
Overrides:substituteReturnType in class TypeDecl
Source
Declared in Java1.5Frontend/Generics.jrag at line 916
Aspect
LookupParTypeDecl
public void init$Children()
Initializes the child array to the correct size. Initializes List and Opt nta children.
Overrides:init$Children in class ClassDecl
protected int numChildren()
Overrides:numChildren in class ClassDecl
public boolean mayHaveRewrite()
Overrides:mayHaveRewrite in class ClassDecl
public void setModifiers(Modifiers node)
Replaces the Modifiers child.
Overrides:setModifiers in class ClassDecl
Parameters:
node - The new node to replace the Modifiers child.
Retrieves the Modifiers child.
Overrides:getModifiers in class ClassDecl
Returns:
The current node used as the Modifiers child.
Retrieves the Modifiers child.

This method does not invoke AST transformations.

Overrides:getModifiersNoTransform in class ClassDecl
Returns:
The current node used as the Modifiers child.
public void setID(java.lang.String value)
Replaces the lexeme ID.
Overrides:setID in class ClassDecl
Parameters:
value - The new value for the lexeme ID.
public void setID(beaver.Symbol symbol)
JastAdd-internal setter for lexeme ID using the Beaver parser.
Overrides:setID in class ClassDecl
public java.lang.String getID()
Retrieves the value for the lexeme ID.
Overrides:getID in class ClassDecl
Returns:
The value for the lexeme ID.
public void setSuperClassAccessOpt(Opt<Access> opt)
Replaces the optional node for the SuperClassAccess child. This is the Opt node containing the child SuperClassAccess, not the actual child!
Overrides:setSuperClassAccessOpt in class ClassDecl
Parameters:
opt - The new node to be used as the optional node for the SuperClassAccess child.
public boolean hasSuperClassAccess()
Check whether the optional SuperClassAccess child exists.
Overrides:hasSuperClassAccess in class ClassDecl
Returns:
true if the optional SuperClassAccess child exists, false if it does not.
Retrieves the (optional) SuperClassAccess child.
Overrides:getSuperClassAccess in class ClassDecl
Returns:
The SuperClassAccess child, if it exists. Returns null otherwise.
public void setSuperClassAccess(Access node)
Replaces the (optional) SuperClassAccess child.
Overrides:setSuperClassAccess in class ClassDecl
Parameters:
node - The new node to be used as the SuperClassAccess child.
Retrieves the optional node for child SuperClassAccess. This is the Opt node containing the child SuperClassAccess, not the actual child!

This method does not invoke AST transformations.

Overrides:getSuperClassAccessOptNoTransform in class ClassDecl
Returns:
The optional node for child SuperClassAccess.
public void setImplementsList(List<Access> list)
Replaces the Implements list.
Overrides:setImplementsList in class ClassDecl
Parameters:
list - The new list node to be used as the Implements list.
public int getNumImplements()
Retrieves the number of children in the Implements list.
Overrides:getNumImplements in class ClassDecl
Returns:
Number of children in the Implements list.
Retrieves the number of children in the Implements list. Calling this method will not trigger rewrites..
Overrides:getNumImplementsNoTransform in class ClassDecl
Returns:
Number of children in the Implements list.
public Access getImplements(int i)
Retrieves the element at index i in the Implements list..
Overrides:getImplements in class ClassDecl
Parameters:
i - Index of the element to return.
Returns:
The element at position i in the Implements list.
public void addImplements(Access node)
Append an element to the Implements list.
Overrides:addImplements in class ClassDecl
Parameters:
node - The element to append to the Implements list.
public void addImplementsNoTransform(Access node)
Overrides:addImplementsNoTransform in class ClassDecl
public void setImplements(Access node,
                          int i)
Replaces the Implements list element at index i with the new node node.
Overrides:setImplements in class ClassDecl
Parameters:
node - The new node to replace the old list element.
i - The list index of the node to be replaced.
Retrieves the Implements list.
Overrides:getImplementss in class ClassDecl
Returns:
The node representing the Implements list.
Retrieves the Implements list.

This method does not invoke AST transformations.

Overrides:getImplementssNoTransform in class ClassDecl
Returns:
The node representing the Implements list.
Retrieves the Implements list.
Overrides:getImplementsList in class ClassDecl
Returns:
The node representing the Implements list.
Retrieves the Implements list.

This method does not invoke AST transformations.

Overrides:getImplementsListNoTransform in class ClassDecl
Returns:
The node representing the Implements list.
public void setBodyDeclList(List<BodyDecl> list)
Replaces the BodyDecl list.
Overrides:setBodyDeclList in class ClassDecl
Parameters:
list - The new list node to be used as the BodyDecl list.
public int getNumBodyDecl()
Retrieves the number of children in the BodyDecl list.
Overrides:getNumBodyDecl in class ClassDecl
Returns:
Number of children in the BodyDecl list.
Retrieves the number of children in the BodyDecl list. Calling this method will not trigger rewrites..
Overrides:getNumBodyDeclNoTransform in class ClassDecl
Returns:
Number of children in the BodyDecl list.
public BodyDecl getBodyDecl(int i)
Retrieves the element at index i in the BodyDecl list..
Overrides:getBodyDecl in class ClassDecl
Parameters:
i - Index of the element to return.
Returns:
The element at position i in the BodyDecl list.
public void addBodyDecl(BodyDecl node)
Append an element to the BodyDecl list.
Overrides:addBodyDecl in class ClassDecl
Parameters:
node - The element to append to the BodyDecl list.
public void addBodyDeclNoTransform(BodyDecl node)
Overrides:addBodyDeclNoTransform in class ClassDecl
public void setBodyDecl(BodyDecl node,
                        int i)
Replaces the BodyDecl list element at index i with the new node node.
Overrides:setBodyDecl in class ClassDecl
Parameters:
node - The new node to replace the old list element.
i - The list index of the node to be replaced.
Retrieves the BodyDecl list.
Overrides:getBodyDecls in class ClassDecl
Returns:
The node representing the BodyDecl list.
Retrieves the BodyDecl list.

This method does not invoke AST transformations.

Overrides:getBodyDeclsNoTransform in class ClassDecl
Returns:
The node representing the BodyDecl list.
Retrieves the BodyDecl list.
Overrides:getBodyDeclList in class ClassDecl
Returns:
The node representing the BodyDecl list.
Retrieves the BodyDecl list.

This method does not invoke AST transformations.

Overrides:getBodyDeclListNoTransform in class ClassDecl
Returns:
The node representing the BodyDecl list.
public boolean commensurateWith(ElementValue value)
Overrides:rewriteTo in class ClassDecl

Fields

protected java.util.Map accessibleFrom_TypeDecl_values
protected boolean dimension_computed
protected int dimension_value
protected boolean elementType_computed
protected boolean fullName_computed
protected java.lang.String fullName_value
protected boolean typeName_computed
protected java.lang.String typeName_value
protected java.util.Map castingConversionTo_TypeDecl_values
protected java.util.Map instanceOf_TypeDecl_values
protected boolean constantPoolName_computed
protected java.lang.String constantPoolName_value
protected boolean typeDescriptor_computed
protected java.lang.String typeDescriptor_value
protected boolean jvmName_computed
protected java.lang.String jvmName_value
protected boolean erasure_computed
protected boolean usesTypeVariable_computed
protected boolean usesTypeVariable_value
protected java.util.Map subtype_TypeDecl_values
protected boolean fieldTypeSignature_computed
protected java.lang.String fieldTypeSignature_value
protected boolean classTypeSignature_computed
protected java.lang.String classTypeSignature_value

Inherited Members

Attributes inherited from AST.ClassDecl

Attributes inherited from AST.ReferenceType

Attributes inherited from AST.TypeDecl

Attributes inherited from AST.ASTNode

Methods inherited from class AST.ClassDecl

Methods inherited from class AST.ReferenceType

Methods inherited from class AST.TypeDecl

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

Methods inherited from interface AST.SimpleSet

Methods inherited from interface AST.VariableScope

Fields inherited from AST.ClassDecl

Fields inherited from AST.ReferenceType

Fields inherited from AST.TypeDecl

Fields inherited from AST.ASTNode

Fields inherited from beaver.Symbol

end
id
start
value

Fields inherited from interface AST.SimpleSet