org.extendj.ast
node type RawConstructorDecl

General Info

Production
RawConstructorDecl : ParConstructorDecl;
Type Hierarchy:
java.lang.Object
  extended by beaver.Symbol
      extended by org.extendj.ast.ASTNode<ASTNode>
          extended by org.extendj.ast.BodyDecl
              extended by org.extendj.ast.ConstructorDecl
                  extended by org.extendj.ast.ParConstructorDecl
                      extended by org.extendj.ast.RawConstructorDecl
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Iterable<ASTNode>, org.jastadd.util.PrettyPrintable

Description

Source
Declared in /home/jesper/git/extendj/java5/grammar/GenericMethods.ast at line 12

Member Filters

API level:

Aspect:

Constructors

public RawConstructorDecl()
 
Source
Declared in /home/jesper/git/extendj/ASTNode at line 1
public RawConstructorDecl(Modifiers p0,
                          java.lang.String p1,
                          List<ParameterDeclaration> p2,
                          List<Access> p3,
                          Opt<Stmt> p4,
                          Block p5,
                          List<Access> p6,
                          GenericConstructorDecl p7)
 
Source
Declared in /home/jesper/git/extendj/ASTNode at line 17
public RawConstructorDecl(Modifiers p0,
                          beaver.Symbol p1,
                          List<ParameterDeclaration> p2,
                          List<Access> p3,
                          Opt<Stmt> p4,
                          Block p5,
                          List<Access> p6,
                          GenericConstructorDecl p7)
 
Source
Declared in /home/jesper/git/extendj/ASTNode at line 27

Methods

public void init$Children()
Initializes the child array to the correct size. Initializes List and Opt nta children.
Overrides:init$Children in class ParConstructorDecl
Source
Declared in /home/jesper/git/extendj/ASTNode at line 10
protected int numChildren()
Overrides:numChildren in class ParConstructorDecl
Source
Declared in /home/jesper/git/extendj/ASTNode at line 40
public boolean mayHaveRewrite()
Overrides:mayHaveRewrite in class ParConstructorDecl
Source
Declared in /home/jesper/git/extendj/ASTNode at line 46
public void flushAttrCache()
Overrides:flushAttrCache in class ParConstructorDecl
Source
Declared in /home/jesper/git/extendj/ASTNode at line 52
public void flushCollectionCache()
Overrides:flushCollectionCache in class ParConstructorDecl
Source
Declared in /home/jesper/git/extendj/ASTNode at line 58
public void flushRewriteCache()
Overrides:flushRewriteCache in class ParConstructorDecl
Source
Declared in /home/jesper/git/extendj/ASTNode at line 64
public RawConstructorDecl clone()
                         throws java.lang.CloneNotSupportedException
Overrides:clone in class ParConstructorDecl
Throws:
java.lang.CloneNotSupportedException
Source
Declared in /home/jesper/git/extendj/ASTNode at line 70
public RawConstructorDecl copy()
Overrides:copy in class ParConstructorDecl
Source
Declared in /home/jesper/git/extendj/ASTNode at line 77
@Deprecated
public RawConstructorDecl 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.

Overrides:fullCopy in class ParConstructorDecl
Returns:
dangling copy of the subtree at this node
Source
Declared in /home/jesper/git/extendj/ASTNode at line 96
public RawConstructorDecl treeCopyNoTransform()
Create a deep copy of the AST subtree at this node. The copy is dangling, i.e. has no parent.
Overrides:treeCopyNoTransform in class ParConstructorDecl
Returns:
dangling copy of the subtree at this node
Source
Declared in /home/jesper/git/extendj/ASTNode at line 106
public RawConstructorDecl 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.
Overrides:treeCopy in class ParConstructorDecl
Returns:
dangling copy of the subtree at this node
Source
Declared in /home/jesper/git/extendj/ASTNode at line 131
protected boolean is$Equal(ASTNode node)
Overrides:is$Equal in class ParConstructorDecl
Source
Declared in /home/jesper/git/extendj/ASTNode at line 138
public void setModifiers(Modifiers node)
Replaces the Modifiers child.
Overrides:setModifiers in class ParConstructorDecl
Parameters:
node - The new node to replace the Modifiers child.
Retrieves the Modifiers child.
Overrides:getModifiers in class ParConstructorDecl
Returns:
The current node used as the Modifiers child.
Retrieves the Modifiers child.

This method does not invoke AST transformations.

Overrides:getModifiersNoTransform in class ParConstructorDecl
Returns:
The current node used as the Modifiers child.
public void setID(java.lang.String value)
Replaces the lexeme ID.
Overrides:setID in class ParConstructorDecl
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 ParConstructorDecl
Parameters:
symbol - Symbol containing the new value for the lexeme ID
@ASTNodeAnnotation.Token(name="ID")
public java.lang.String getID()
Retrieves the value for the lexeme ID.
Overrides:getID in class ParConstructorDecl
Returns:
The value for the lexeme ID.
Replaces the Parameter list.
Overrides:setParameterList in class ParConstructorDecl
Parameters:
list - The new list node to be used as the Parameter list.
public int getNumParameter()
Retrieves the number of children in the Parameter list.
Overrides:getNumParameter in class ParConstructorDecl
Returns:
Number of children in the Parameter list.
Retrieves the number of children in the Parameter list. Calling this method will not trigger rewrites.
Overrides:getNumParameterNoTransform in class ParConstructorDecl
Returns:
Number of children in the Parameter list.
Retrieves the element at index i in the Parameter list.
Overrides:getParameter in class ParConstructorDecl
Parameters:
i - Index of the element to return.
Returns:
The element at position i in the Parameter list.
public boolean hasParameter()
Check whether the Parameter list has any children.
Overrides:hasParameter in class ParConstructorDecl
Returns:
true if it has at least one child, false otherwise.
Append an element to the Parameter list.
Overrides:addParameter in class ParConstructorDecl
Parameters:
node - The element to append to the Parameter list.
public void setParameter(ParameterDeclaration node,
                         int i)
Replaces the Parameter list element at index i with the new node node.
Overrides:setParameter in class ParConstructorDecl
Parameters:
node - The new node to replace the old list element.
i - The list index of the node to be replaced.
Retrieves the Parameter list.
Overrides:getParameterList in class ParConstructorDecl
Returns:
The node representing the Parameter list.
Retrieves the Parameter list.

This method does not invoke AST transformations.

Overrides:getParameterListNoTransform in class ParConstructorDecl
Returns:
The node representing the Parameter list.
Retrieves the Parameter list.
Overrides:getParameters in class ParConstructorDecl
Returns:
The node representing the Parameter list.
Retrieves the Parameter list.

This method does not invoke AST transformations.

Overrides:getParametersNoTransform in class ParConstructorDecl
Returns:
The node representing the Parameter list.
public void setExceptionList(List<Access> list)
Replaces the Exception list.
Overrides:setExceptionList in class ParConstructorDecl
Parameters:
list - The new list node to be used as the Exception list.
public int getNumException()
Retrieves the number of children in the Exception list.
Overrides:getNumException in class ParConstructorDecl
Returns:
Number of children in the Exception list.
Retrieves the number of children in the Exception list. Calling this method will not trigger rewrites.
Overrides:getNumExceptionNoTransform in class ParConstructorDecl
Returns:
Number of children in the Exception list.
public Access getException(int i)
Retrieves the element at index i in the Exception list.
Overrides:getException in class ParConstructorDecl
Parameters:
i - Index of the element to return.
Returns:
The element at position i in the Exception list.
public boolean hasException()
Check whether the Exception list has any children.
Overrides:hasException in class ParConstructorDecl
Returns:
true if it has at least one child, false otherwise.
public void addException(Access node)
Append an element to the Exception list.
Overrides:addException in class ParConstructorDecl
Parameters:
node - The element to append to the Exception list.
public void setException(Access node,
                         int i)
Replaces the Exception list element at index i with the new node node.
Overrides:setException in class ParConstructorDecl
Parameters:
node - The new node to replace the old list element.
i - The list index of the node to be replaced.
Retrieves the Exception list.
Overrides:getExceptionList in class ParConstructorDecl
Returns:
The node representing the Exception list.
Retrieves the Exception list.

This method does not invoke AST transformations.

Overrides:getExceptionListNoTransform in class ParConstructorDecl
Returns:
The node representing the Exception list.
Retrieves the Exception list.
Overrides:getExceptions in class ParConstructorDecl
Returns:
The node representing the Exception list.
Retrieves the Exception list.

This method does not invoke AST transformations.

Overrides:getExceptionsNoTransform in class ParConstructorDecl
Returns:
The node representing the Exception list.
Replaces the optional node for the ParsedConstructorInvocation child. This is the Opt node containing the child ParsedConstructorInvocation, not the actual child!
Overrides:setParsedConstructorInvocationOpt in class ParConstructorDecl
Parameters:
opt - The new node to be used as the optional node for the ParsedConstructorInvocation child.
Replaces the (optional) ParsedConstructorInvocation child.
Overrides:setParsedConstructorInvocation in class ParConstructorDecl
Parameters:
node - The new node to be used as the ParsedConstructorInvocation child.
Check whether the optional ParsedConstructorInvocation child exists.
Overrides:hasParsedConstructorInvocation in class ParConstructorDecl
Returns:
true if the optional ParsedConstructorInvocation child exists, false if it does not.
Retrieves the (optional) ParsedConstructorInvocation child.
Overrides:getParsedConstructorInvocation in class ParConstructorDecl
Returns:
The ParsedConstructorInvocation child, if it exists. Returns null otherwise.
Retrieves the optional node for the ParsedConstructorInvocation child. This is the Opt node containing the child ParsedConstructorInvocation, not the actual child!
Overrides:getParsedConstructorInvocationOpt in class ParConstructorDecl
Returns:
The optional node for child the ParsedConstructorInvocation child.
Retrieves the optional node for child ParsedConstructorInvocation. This is the Opt node containing the child ParsedConstructorInvocation, not the actual child!

This method does not invoke AST transformations.

Overrides:getParsedConstructorInvocationOptNoTransform in class ParConstructorDecl
Returns:
The optional node for child ParsedConstructorInvocation.
public void setBlock(Block node)
Replaces the Block child.
Overrides:setBlock in class ParConstructorDecl
Parameters:
node - The new node to replace the Block child.
Retrieves the Block child.
Overrides:getBlock in class ParConstructorDecl
Returns:
The current node used as the Block child.
Retrieves the Block child.

This method does not invoke AST transformations.

Overrides:getBlockNoTransform in class ParConstructorDecl
Returns:
The current node used as the Block child.
public void setTypeArgumentList(List<Access> list)
Replaces the TypeArgument list.
Overrides:setTypeArgumentList in class ParConstructorDecl
Parameters:
list - The new list node to be used as the TypeArgument list.
public int getNumTypeArgument()
Retrieves the number of children in the TypeArgument list.
Overrides:getNumTypeArgument in class ParConstructorDecl
Returns:
Number of children in the TypeArgument list.
Retrieves the number of children in the TypeArgument list. Calling this method will not trigger rewrites.
Overrides:getNumTypeArgumentNoTransform in class ParConstructorDecl
Returns:
Number of children in the TypeArgument list.
public Access getTypeArgument(int i)
Retrieves the element at index i in the TypeArgument list.
Overrides:getTypeArgument in class ParConstructorDecl
Parameters:
i - Index of the element to return.
Returns:
The element at position i in the TypeArgument list.
public boolean hasTypeArgument()
Check whether the TypeArgument list has any children.
Overrides:hasTypeArgument in class ParConstructorDecl
Returns:
true if it has at least one child, false otherwise.
public void addTypeArgument(Access node)
Append an element to the TypeArgument list.
Overrides:addTypeArgument in class ParConstructorDecl
Parameters:
node - The element to append to the TypeArgument list.
public void setTypeArgument(Access node,
                            int i)
Replaces the TypeArgument list element at index i with the new node node.
Overrides:setTypeArgument in class ParConstructorDecl
Parameters:
node - The new node to replace the old list element.
i - The list index of the node to be replaced.
Retrieves the TypeArgument list.
Overrides:getTypeArgumentList in class ParConstructorDecl
Returns:
The node representing the TypeArgument list.
Retrieves the TypeArgument list.

This method does not invoke AST transformations.

Overrides:getTypeArgumentListNoTransform in class ParConstructorDecl
Returns:
The node representing the TypeArgument list.
Retrieves the TypeArgument list.
Overrides:getTypeArguments in class ParConstructorDecl
Returns:
The node representing the TypeArgument list.
Retrieves the TypeArgument list.

This method does not invoke AST transformations.

Overrides:getTypeArgumentsNoTransform in class ParConstructorDecl
Returns:
The node representing the TypeArgument list.
Replaces the lexeme GenericConstructorDecl.
Overrides:setGenericConstructorDecl in class ParConstructorDecl
Parameters:
value - The new value for the lexeme GenericConstructorDecl.
Retrieves the value for the lexeme GenericConstructorDecl.
Overrides:getGenericConstructorDecl in class ParConstructorDecl
Returns:
The value for the lexeme GenericConstructorDecl.
Retrieves the ImplicitConstructorInvocation child.

This method does not invoke AST transformations.

Overrides:getImplicitConstructorInvocationNoTransform in class ParConstructorDecl
Returns:
The current node used as the ImplicitConstructorInvocation child.
Retrieves the child position of the optional child ImplicitConstructorInvocation.
Overrides:getImplicitConstructorInvocationChildPosition in class ParConstructorDecl
Returns:
The the child position of the optional child ImplicitConstructorInvocation.
Overrides:rewriteTo in class ParConstructorDecl

Inherited Members

Attributes inherited from org.extendj.ast.ParConstructorDecl

Attributes inherited from org.extendj.ast.ConstructorDecl

Attributes inherited from org.extendj.ast.BodyDecl

Attributes inherited from org.extendj.ast.ASTNode

Methods inherited from class org.extendj.ast.ParConstructorDecl

Methods inherited from class org.extendj.ast.ConstructorDecl

Methods inherited from class org.extendj.ast.BodyDecl

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

Fields inherited from org.extendj.ast.ConstructorDecl

Fields inherited from org.extendj.ast.BodyDecl

Fields inherited from org.extendj.ast.ASTNode

Fields inherited from beaver.Symbol

end
id
start
value