AST
node type ElementConstantValue

General Info

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

Description

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

Member Filters

API level:

Aspect:

Constructors

Attributes

syn boolean validTarget(Annotation a)
Overrides:validTarget in class ElementValue
Source
Declared in Java1.5Frontend/Annotations.jrag at line 57
Aspect
Annotations
syn ElementValue definesElementTypeValue(java.lang.String name)
Overrides:definesElementTypeValue in class ElementValue
Source
Declared in Java1.5Frontend/Annotations.jrag at line 181
Aspect
Annotations
syn boolean hasValue(java.lang.String s)
Overrides:hasValue in class ElementValue
Source
Declared in Java1.5Frontend/Annotations.jrag at line 295
Aspect
Annotations
Overrides:commensurateWithTypeDecl in class ElementValue
Source
Declared in Java1.5Frontend/Annotations.jrag at line 475
Aspect
Annotations
syn TypeDecl type()
Overrides:type in class ElementValue
Source
Declared in Java1.5Frontend/Annotations.jrag at line 510
Aspect
Annotations
inh ElementValue lookupElementTypeValue(java.lang.String name)
Source
Declared in Java1.5Frontend/Annotations.jrag at line 177
Aspect
Annotations

Methods

public void flushCache()
Overrides:flushCache in class ElementValue
public void flushCollectionCache()
Overrides:flushCollectionCache in class ElementValue
public ElementConstantValue clone()
                           throws java.lang.CloneNotSupportedException
Overrides:clone in class ElementValue
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 nameCheck()
Overrides:nameCheck in class ASTNode<ASTNode>
Source
Declared in Java1.5Frontend/Annotations.jrag at line 169
Aspect
Annotations
public void toString(java.lang.StringBuffer s)
Overrides:toString in class ASTNode<ASTNode>
Source
Declared in Java1.5Frontend/Annotations.jrag at line 597
Aspect
Annotations
public void appendAsAttributeTo(Attribute buf)
Overrides:appendAsAttributeTo in class ElementValue
Source
Declared in Java1.5Backend/AnnotationsCodegen.jrag at line 197
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
protected int numChildren()
Overrides:numChildren in class ElementValue
public boolean mayHaveRewrite()
Overrides:mayHaveRewrite in class ElementValue
public void setExpr(Expr node)
Replaces the Expr child.
Parameters:
node - The new node to replace the Expr child.
public Expr getExpr()
Retrieves the Expr child.
Returns:
The current node used as the Expr child.
Retrieves the Expr child.

This method does not invoke AST transformations.

Returns:
The current node used as the Expr child.
Overrides:Define_NameType_nameType in class ASTNode<ASTNode>
Source
Declared in Java1.5Frontend/Annotations.jrag at line 550
public java.lang.String Define_String_methodHost(ASTNode caller,
                                                 ASTNode child)
Overrides:Define_String_methodHost in class ASTNode<ASTNode>
Source
Declared in Java1.5Frontend/Annotations.jrag at line 555
Overrides:rewriteTo in class ElementValue

Inherited Members

Attributes inherited from AST.ElementValue

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