AST
node type RawConstructorDecl

General Info

Production
RawConstructorDecl : ParConstructorDecl;
Type Hierarchy:
java.lang.Object
  extended by beaver.Symbol
      extended by AST.ASTNode<ASTNode>
          extended by AST.BodyDecl
              extended by AST.ConstructorDecl
                  extended by AST.ParConstructorDecl
                      extended by AST.RawConstructorDecl
All Implemented Interfaces:
ExceptionHolder, java.lang.Cloneable, java.lang.Iterable<ASTNode>

Description

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

Member Filters

API level:

Aspect:

Constructors

public RawConstructorDecl(Modifiers p0,
                          java.lang.String p1,
                          List<ParameterDeclaration> p2,
                          List<Access> p3,
                          Opt<Stmt> p4,
                          Block p5,
                          List<Access> p6)
 
public RawConstructorDecl(Modifiers p0,
                          beaver.Symbol p1,
                          List<ParameterDeclaration> p2,
                          List<Access> p3,
                          Opt<Stmt> p4,
                          Block p5,
                          List<Access> p6)
 

Methods

public void flushCache()
Overrides:flushCache in class ParConstructorDecl
public RawConstructorDecl clone()
                         throws java.lang.CloneNotSupportedException
Overrides:clone in class ParConstructorDecl
Throws:
java.lang.CloneNotSupportedException
Overrides:copy in class ParConstructorDecl
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
public void init$Children()
Initializes the child array to the correct size. Initializes List and Opt nta children.
Overrides:init$Children in class ParConstructorDecl
protected int numChildren()
Overrides:numChildren in class ParConstructorDecl
public boolean mayHaveRewrite()
Overrides:mayHaveRewrite in class ParConstructorDecl
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
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.
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: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.
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.
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.
Specified by:getNumException in interface ExceptionHolderOverrides: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..
Specified by:getException in interface ExceptionHolderOverrides:getException in class ParConstructorDecl
Parameters:
i - Index of the element to return.
Returns:
The element at position i in the Exception list.
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: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.
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.
Replaces the optional node for the ConstructorInvocation child. This is the Opt node containing the child ConstructorInvocation, not the actual child!
Overrides:setConstructorInvocationOpt in class ParConstructorDecl
Parameters:
opt - The new node to be used as the optional node for the ConstructorInvocation child.
public boolean hasConstructorInvocation()
Check whether the optional ConstructorInvocation child exists.
Overrides:hasConstructorInvocation in class ParConstructorDecl
Returns:
true if the optional ConstructorInvocation child exists, false if it does not.
Retrieves the (optional) ConstructorInvocation child.
Overrides:getConstructorInvocation in class ParConstructorDecl
Returns:
The ConstructorInvocation child, if it exists. Returns null otherwise.
public void setConstructorInvocation(Stmt node)
Replaces the (optional) ConstructorInvocation child.
Overrides:setConstructorInvocation in class ParConstructorDecl
Parameters:
node - The new node to be used as the ConstructorInvocation child.
Retrieves the optional node for child ConstructorInvocation. This is the Opt node containing the child ConstructorInvocation, not the actual child!

This method does not invoke AST transformations.

Overrides:getConstructorInvocationOptNoTransform in class ParConstructorDecl
Returns:
The optional node for child ConstructorInvocation.
public void setBlock(Block node)
Replaces the Block child.
Overrides:setBlock in class ParConstructorDecl
Parameters:
node - The new node to replace the Block child.
public Block getBlock()
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 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: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.
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.
Overrides:rewriteTo in class ParConstructorDecl

Inherited Members

Attributes inherited from AST.ParConstructorDecl

Attributes inherited from AST.ConstructorDecl

Attributes inherited from AST.BodyDecl

Attributes inherited from AST.ASTNode

Methods inherited from class AST.ConstructorDecl

Methods inherited from class AST.BodyDecl

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

Fields inherited from AST.ConstructorDecl

Fields inherited from AST.BodyDecl

Fields inherited from AST.ASTNode

Fields inherited from beaver.Symbol

end
id
start
value