AST
node type Annotation

General Info

Production
Annotation : Modifier ::= <ID:String> Access ElementValuePair*;
Type Hierarchy:
java.lang.Object
  extended by beaver.Symbol
      extended by AST.ASTNode<ASTNode>
          extended by AST.Modifier
              extended by AST.Annotation
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Iterable<ASTNode>

Description

Source
Declared in Java1.5Frontend/Annotations.ast at line 6

Member Filters

API level:

Aspect:

Constructors

public Annotation()
 
public Annotation(java.lang.String p0,
                  Access p1,
                  List<ElementValuePair> p2)
 
public Annotation(beaver.Symbol p0,
                  Access p1,
                  List<ElementValuePair> p2)
 

Attributes

syn TypeDecl decl()
Source
Declared in Java1.5Frontend/Annotations.jrag at line 420
Aspect
Annotations
syn ElementValue elementValueFor(java.lang.String name)
Source
Declared in Java1.5Frontend/Annotations.jrag at line 432
Aspect
Annotations
syn TypeDecl type()
Source
Declared in Java1.5Frontend/Annotations.jrag at line 514
Aspect
Annotations
syn boolean isRuntimeVisible()
Overrides:isRuntimeVisible in class Modifier
Source
Declared in Java1.5Backend/AnnotationsCodegen.jrag at line 64
Aspect
AnnotationsCodegen
syn boolean isRuntimeInvisible()
Overrides:isRuntimeInvisible in class Modifier
Source
Declared in Java1.5Backend/AnnotationsCodegen.jrag at line 74
Aspect
AnnotationsCodegen
inh TypeDecl lookupType(java.lang.String packageName,
                    java.lang.String typeName)
Source
Declared in Java1.5Frontend/Annotations.jrag at line 55
Aspect
Annotations
inh boolean mayUseAnnotationTarget(java.lang.String name)
Source
Declared in Java1.5Frontend/Annotations.jrag at line 69
Aspect
Annotations
Source
Declared in Java1.5Frontend/Annotations.jrag at line 258
Aspect
Annotations
Source
Declared in Java1.5Frontend/Annotations.jrag at line 422
Aspect
Annotations
Source
Declared in Java1.5Frontend/Annotations.jrag at line 544
Aspect
Annotations

Methods

public void flushCache()
Overrides:flushCache in class Modifier
public void flushCollectionCache()
Overrides:flushCollectionCache in class Modifier
public Annotation clone()
                 throws java.lang.CloneNotSupportedException
Overrides:clone in class Modifier
Throws:
java.lang.CloneNotSupportedException
public Annotation copy()
Overrides:copy in class Modifier
Create a deep copy of the AST subtree at this node. The copy is dangling, i.e. has no parent.
Overrides:fullCopy in class Modifier
Returns:
dangling copy of the subtree at this node
public void checkModifiers()
Source
Declared in Java1.5Frontend/Annotations.jrag at line 41
Aspect
Annotations
public void typeCheck()
Overrides:typeCheck in class ASTNode<ASTNode>
Source
Declared in Java1.5Frontend/Annotations.jrag at line 383
Aspect
Annotations
public void toString(java.lang.StringBuffer s)
Overrides:toString in class Modifier
Source
Declared in Java1.5Frontend/Annotations.jrag at line 582
Aspect
Annotations
public void appendAsAttributeTo(Attribute buf)
Source
Declared in Java1.5Backend/AnnotationsCodegen.jrag at line 155
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 Modifier
protected int numChildren()
Overrides:numChildren in class Modifier
public boolean mayHaveRewrite()
Overrides:mayHaveRewrite in class Modifier
public void setID(java.lang.String value)
Replaces the lexeme ID.
Overrides:setID in class Modifier
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 Modifier
public java.lang.String getID()
Retrieves the value for the lexeme ID.
Overrides:getID in class Modifier
Returns:
The value for the lexeme ID.
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.
Replaces the ElementValuePair list.
Parameters:
list - The new list node to be used as the ElementValuePair list.
Retrieves the number of children in the ElementValuePair list.
Returns:
Number of children in the ElementValuePair list.
Retrieves the number of children in the ElementValuePair list. Calling this method will not trigger rewrites..
Returns:
Number of children in the ElementValuePair list.
Retrieves the element at index i in the ElementValuePair list..
Parameters:
i - Index of the element to return.
Returns:
The element at position i in the ElementValuePair list.
Append an element to the ElementValuePair list.
Parameters:
node - The element to append to the ElementValuePair list.
public void setElementValuePair(ElementValuePair node,
                                int i)
Replaces the ElementValuePair 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 ElementValuePair list.
Returns:
The node representing the ElementValuePair list.
Retrieves the ElementValuePair list.

This method does not invoke AST transformations.

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

This method does not invoke AST transformations.

Returns:
The node representing the ElementValuePair list.
public void checkOverride()
Source
Declared in Java7Frontend/Override.jrag at line 20
Aspect
Annotations
public boolean isMetaAnnotation()
Overrides:Define_TypeDecl_enclosingAnnotationDecl in class ASTNode<ASTNode>
Source
Declared in Java1.5Frontend/Annotations.jrag at line 462
Overrides:Define_NameType_nameType in class ASTNode<ASTNode>
Source
Declared in Java1.5Frontend/Annotations.jrag at line 549
Overrides:rewriteTo in class Modifier

Fields

protected boolean decl_computed

Inherited Members

Attributes inherited from AST.Modifier

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

Fields inherited from AST.ASTNode

Fields inherited from beaver.Symbol

end
id
start
value