AST
node type ElementValuePair

General Info

Production
ElementValuePair : ASTNode ::= <Name:String> ElementValue;
Type Hierarchy:
java.lang.Object
  extended by beaver.Symbol
      extended by AST.ASTNode<ASTNode>
          extended by AST.ElementValuePair
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Iterable<ASTNode>

Description

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

Member Filters

API level:

Aspect:

Constructors

 
public ElementValuePair(java.lang.String p0,
                        ElementValue p1)
 
public ElementValuePair(beaver.Symbol p0,
                        ElementValue p1)
 

Attributes

Source
Declared in Java1.5Frontend/Annotations.jrag at line 458
Aspect
Annotations
Source
Declared in Java1.5Frontend/Annotations.jrag at line 460
Aspect
Annotations

Methods

public void flushCache()
Overrides:flushCache in class ASTNode<ASTNode>
public void flushCollectionCache()
Overrides:flushCollectionCache in class ASTNode<ASTNode>
public ElementValuePair clone()
                       throws java.lang.CloneNotSupportedException
Overrides:clone in class ASTNode<ASTNode>
Throws:
java.lang.CloneNotSupportedException
Overrides:copy in class ASTNode<ASTNode>
Create a deep copy of the AST subtree at this node. The copy is dangling, i.e. has no parent.
Overrides:fullCopy in class ASTNode<ASTNode>
Returns:
dangling copy of the subtree at this node
public void typeCheck()
Overrides:typeCheck in class ASTNode<ASTNode>
Source
Declared in Java1.5Frontend/Annotations.jrag at line 504
Aspect
Annotations
public void toString(java.lang.StringBuffer s)
Overrides:toString in class ASTNode<ASTNode>
Source
Declared in Java1.5Frontend/Annotations.jrag at line 593
Aspect
Annotations
public void init$Children()
Initializes the child array to the correct size. Initializes List and Opt nta children.
Overrides:init$Children in class ASTNode<ASTNode>
protected int numChildren()
Overrides:numChildren in class ASTNode<ASTNode>
public boolean mayHaveRewrite()
Overrides:mayHaveRewrite in class ASTNode<ASTNode>
public void setName(java.lang.String value)
Replaces the lexeme Name.
Parameters:
value - The new value for the lexeme Name.
public void setName(beaver.Symbol symbol)
JastAdd-internal setter for lexeme Name using the Beaver parser.
public java.lang.String getName()
Retrieves the value for the lexeme Name.
Returns:
The value for the lexeme Name.
public void setElementValue(ElementValue node)
Replaces the ElementValue child.
Parameters:
node - The new node to replace the ElementValue child.
Retrieves the ElementValue child.
Returns:
The current node used as the ElementValue child.
Retrieves the ElementValue child.

This method does not invoke AST transformations.

Returns:
The current node used as the ElementValue child.
public TypeDecl type()
Overrides:rewriteTo in class ASTNode<ASTNode>

Fields

protected java.lang.String tokenString_Name
public int Namestart
public int Nameend
protected boolean type_computed

Inherited Members

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

Fields inherited from beaver.Symbol

end
id
start
value