org.extendj.ast
node type ElementConstantValue

General Info

Production
ElementConstantValue : ElementValue ::= Expr;
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.ElementConstantValue
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 11

Member Filters

API level:

Aspect:

Constructors

public ElementConstantValue()
 
Source
Declared in /home/jesper/git/extendj/ASTNode at line 1
public ElementConstantValue(Expr p0)
 
Source
Declared in /home/jesper/git/extendj/ASTNode at line 13

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:commensurateWithTypeDecl in class ElementValue
Source
Declared in /home/jesper/git/extendj/java5/frontend/Annotations.jrag at line 558
Aspect
Annotations
Overrides:type in class ElementValue
Source
Declared in /home/jesper/git/extendj/java5/frontend/Annotations.jrag at line 607
Aspect
Annotations
Source
Declared in /home/jesper/git/extendj/java5/frontend/Annotations.jrag at line 224
Aspect
Annotations

Methods

public void nameCheck()
Overrides:nameCheck in class ASTNode<ASTNode>
Source
Declared in /home/jesper/git/extendj/java5/frontend/Annotations.jrag at line 214
Aspect
Annotations
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 325
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 256
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 19
public boolean mayHaveRewrite()
Overrides:mayHaveRewrite in class ElementValue
Source
Declared in /home/jesper/git/extendj/ASTNode at line 25
public void flushAttrCache()
Overrides:flushAttrCache in class ElementValue
Source
Declared in /home/jesper/git/extendj/ASTNode at line 31
public void flushCollectionCache()
Overrides:flushCollectionCache in class ElementValue
Source
Declared in /home/jesper/git/extendj/ASTNode at line 37
public void flushRewriteCache()
Overrides:flushRewriteCache in class ElementValue
Source
Declared in /home/jesper/git/extendj/ASTNode at line 43
public ElementConstantValue clone()
                           throws java.lang.CloneNotSupportedException
Overrides:clone in class ElementValue
Throws:
java.lang.CloneNotSupportedException
Source
Declared in /home/jesper/git/extendj/ASTNode at line 49
public ElementConstantValue copy()
Overrides:copy in class ASTNode<ASTNode>
Source
Declared in /home/jesper/git/extendj/ASTNode at line 56
@Deprecated
public ElementConstantValue 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 75
public ElementConstantValue 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 85
public ElementConstantValue 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 105
protected boolean is$Equal(ASTNode node)
Overrides:is$Equal in class ASTNode<ASTNode>
Source
Declared in /home/jesper/git/extendj/ASTNode at line 112
public void setExpr(Expr node)
Replaces the Expr child.
Parameters:
node - The new node to replace the Expr child.
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.
public org.extendj.ast.NameType Define_nameType(ASTNode caller,
                                                ASTNode child)
Overrides:Define_nameType in class ASTNode<ASTNode>
Source
Declared in /home/jesper/git/extendj/java4/frontend/SyntacticClassification.jrag at line 36
protected boolean canDefine_nameType(ASTNode caller,
                                     ASTNode child)
public java.lang.String Define_methodHost(ASTNode caller,
                                          ASTNode child)
Overrides:Define_methodHost in class ASTNode<ASTNode>
Source
Declared in /home/jesper/git/extendj/java4/frontend/TypeHierarchyCheck.jrag at line 32
protected boolean canDefine_methodHost(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