org.extendj.ast
node type ElementArrayValue

General Info

Production
ElementArrayValue : ElementValue ::= ElementValue*;
Type Hierarchy:
java.lang.Object
  extended by beaver.Symbol
      extended by org.extendj.ast.ASTNode<ASTNode>
          extended by org.extendj.ast.ElementValue
              extended by org.extendj.ast.ElementArrayValue
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Iterable<ASTNode>, org.jastadd.util.PrettyPrintable

Description

Source
Declared in /home/jesper/git/extendj/java5/grammar/Annotations.ast at line 13

Member Filters

API level:

Aspect:

Constructors

public ElementArrayValue()
 
Source
Declared in /home/jesper/git/extendj/ASTNode at line 1
public ElementArrayValue(List<ElementValue> p0)
 
Source
Declared in /home/jesper/git/extendj/ASTNode at line 14

Attributes

Overrides:validTarget in class ElementValue
Source
Declared in /home/jesper/git/extendj/java5/frontend/Annotations.jrag at line 80
Aspect
Annotations
Overrides:definesElementTypeValue in class ElementValue
Source
Declared in /home/jesper/git/extendj/java5/frontend/Annotations.jrag at line 228
Aspect
Annotations
@ASTNodeAnnotation.Attribute
syn boolean hasValue(java.lang.String annot)
Overrides:hasValue in class ElementValue
Source
Declared in /home/jesper/git/extendj/java5/frontend/Annotations.jrag at line 370
Aspect
Annotations
Overrides:commensurateWithArrayDecl in class ElementValue
Source
Declared in /home/jesper/git/extendj/java5/frontend/Annotations.jrag at line 583
Aspect
Annotations

Methods

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/java5/frontend/PrettyPrint.jadd at line 155
Aspect
Java5PrettyPrint
public void appendAsAttributeTo(org.extendj.ast.Attribute buf)
Overrides:appendAsAttributeTo in class ElementValue
Source
Declared in /home/jesper/git/extendj/java5/backend/AnnotationsCodegen.jrag at line 284
Aspect
AnnotationsCodegen
public void init$Children()
Initializes the child array to the correct size. Initializes List and Opt nta children.
Overrides:init$Children in class ElementValue
Source
Declared in /home/jesper/git/extendj/ASTNode at line 10
protected int numChildren()
Overrides:numChildren in class ElementValue
Source
Declared in /home/jesper/git/extendj/ASTNode at line 20
public boolean mayHaveRewrite()
Overrides:mayHaveRewrite in class ElementValue
Source
Declared in /home/jesper/git/extendj/ASTNode at line 26
public void flushAttrCache()
Overrides:flushAttrCache in class ElementValue
Source
Declared in /home/jesper/git/extendj/ASTNode at line 32
public void flushCollectionCache()
Overrides:flushCollectionCache in class ElementValue
Source
Declared in /home/jesper/git/extendj/ASTNode at line 38
public void flushRewriteCache()
Overrides:flushRewriteCache in class ElementValue
Source
Declared in /home/jesper/git/extendj/ASTNode at line 44
public ElementArrayValue clone()
                        throws java.lang.CloneNotSupportedException
Overrides:clone in class ElementValue
Throws:
java.lang.CloneNotSupportedException
Source
Declared in /home/jesper/git/extendj/ASTNode at line 50
public ElementArrayValue copy()
Overrides:copy in class ASTNode<ASTNode>
Source
Declared in /home/jesper/git/extendj/ASTNode at line 57
@Deprecated
public ElementArrayValue 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 ElementValue
Returns:
dangling copy of the subtree at this node
Source
Declared in /home/jesper/git/extendj/ASTNode at line 76
public ElementArrayValue 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 ElementValue
Returns:
dangling copy of the subtree at this node
Source
Declared in /home/jesper/git/extendj/ASTNode at line 86
public ElementArrayValue 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 ElementValue
Returns:
dangling copy of the subtree at this node
Source
Declared in /home/jesper/git/extendj/ASTNode at line 106
protected boolean is$Equal(ASTNode node)
Overrides:is$Equal in class ASTNode<ASTNode>
Source
Declared in /home/jesper/git/extendj/ASTNode at line 113
Replaces the ElementValue list.
Parameters:
list - The new list node to be used as the ElementValue list.
public int getNumElementValue()
Retrieves the number of children in the ElementValue list.
Returns:
Number of children in the ElementValue list.
Retrieves the number of children in the ElementValue list. Calling this method will not trigger rewrites.
Returns:
Number of children in the ElementValue list.
Retrieves the element at index i in the ElementValue list.
Parameters:
i - Index of the element to return.
Returns:
The element at position i in the ElementValue list.
public boolean hasElementValue()
Check whether the ElementValue list has any children.
Returns:
true if it has at least one child, false otherwise.
public void addElementValue(ElementValue node)
Append an element to the ElementValue list.
Parameters:
node - The element to append to the ElementValue list.
public void setElementValue(ElementValue node,
                            int i)
Replaces the ElementValue list element at index i with the new node node.
Parameters:
node - The new node to replace the old list element.
i - The list index of the node to be replaced.
Retrieves the ElementValue list.
Returns:
The node representing the ElementValue list.
Retrieves the ElementValue list.

This method does not invoke AST transformations.

Returns:
The node representing the ElementValue list.
Retrieves the ElementValue list.
Returns:
The node representing the ElementValue list.
Retrieves the ElementValue list.

This method does not invoke AST transformations.

Returns:
The node representing the ElementValue list.
public ElementValue Define_lookupElementTypeValue(ASTNode caller,
                                                  ASTNode child,
                                                  java.lang.String name)
Overrides:Define_lookupElementTypeValue in class ASTNode<ASTNode>
Source
Declared in /home/jesper/git/extendj/java5/frontend/Annotations.jrag at line 224
protected boolean canDefine_lookupElementTypeValue(ASTNode caller,
                                                   ASTNode child,
                                                   java.lang.String name)
public TypeDecl Define_declType(ASTNode caller,
                                ASTNode child)
Overrides:Define_declType in class ASTNode<ASTNode>
Source
Declared in /home/jesper/git/extendj/java5/frontend/Annotations.jrag at line 601
protected boolean canDefine_declType(ASTNode caller,
                                     ASTNode child)
Overrides:rewriteTo in class ElementValue

Inherited Members

Attributes inherited from org.extendj.ast.ElementValue

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