AST
node type RawMethodDecl

General Info

Production
RawMethodDecl : ParMethodDecl;
Type Hierarchy:
java.lang.Object
  extended by beaver.Symbol
      extended by AST.ASTNode<ASTNode>
          extended by AST.BodyDecl
              extended by AST.MemberDecl
                  extended by AST.MethodDecl
                      extended by AST.ParMethodDecl
                          extended by AST.RawMethodDecl
All Implemented Interfaces:
ExceptionHolder, Parameterization, SimpleSet, java.lang.Cloneable, java.lang.Iterable<ASTNode>, java.util.Iterator

Nested classes/interfaces inherited from interface AST.SimpleSet

Description

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

Member Filters

API level:

Aspect:

Constructors

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

Methods

public void flushCache()
Overrides:flushCache in class ParMethodDecl
public void flushCollectionCache()
Overrides:flushCollectionCache in class ParMethodDecl
public RawMethodDecl clone()
                    throws java.lang.CloneNotSupportedException
Overrides:clone in class ParMethodDecl
Throws:
java.lang.CloneNotSupportedException
Overrides:copy in class ParMethodDecl
Create a deep copy of the AST subtree at this node. The copy is dangling, i.e. has no parent.
Overrides:fullCopy in class ParMethodDecl
Returns:
dangling copy of the subtree at this node
public boolean isRawType()
Specified by:isRawType in interface ParameterizationOverrides:isRawType in class ParMethodDecl
Source
Declared in Java1.5Frontend/Generics.jrag at line 863
Aspect
LookupParTypeDecl
public void init$Children()
Initializes the child array to the correct size. Initializes List and Opt nta children.
Overrides:init$Children in class ParMethodDecl
protected int numChildren()
Overrides:numChildren in class ParMethodDecl
public boolean mayHaveRewrite()
Overrides:mayHaveRewrite in class ParMethodDecl
public void setModifiers(Modifiers node)
Replaces the Modifiers child.
Overrides:setModifiers in class ParMethodDecl
Parameters:
node - The new node to replace the Modifiers child.
Retrieves the Modifiers child.
Overrides:getModifiers in class ParMethodDecl
Returns:
The current node used as the Modifiers child.
Retrieves the Modifiers child.

This method does not invoke AST transformations.

Overrides:getModifiersNoTransform in class ParMethodDecl
Returns:
The current node used as the Modifiers child.
public void setTypeAccess(Access node)
Replaces the TypeAccess child.
Overrides:setTypeAccess in class ParMethodDecl
Parameters:
node - The new node to replace the TypeAccess child.
Retrieves the TypeAccess child.
Overrides:getTypeAccess in class ParMethodDecl
Returns:
The current node used as the TypeAccess child.
Retrieves the TypeAccess child.

This method does not invoke AST transformations.

Overrides:getTypeAccessNoTransform in class ParMethodDecl
Returns:
The current node used as the TypeAccess child.
public void setID(java.lang.String value)
Replaces the lexeme ID.
Overrides:setID in class ParMethodDecl
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 ParMethodDecl
public java.lang.String getID()
Retrieves the value for the lexeme ID.
Overrides:getID in class ParMethodDecl
Returns:
The value for the lexeme ID.
Replaces the Parameter list.
Overrides:setParameterList in class ParMethodDecl
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 ParMethodDecl
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 ParMethodDecl
Returns:
Number of children in the Parameter list.
Retrieves the element at index i in the Parameter list..
Overrides:getParameter in class ParMethodDecl
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 ParMethodDecl
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 ParMethodDecl
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 ParMethodDecl
Returns:
The node representing the Parameter list.
Retrieves the Parameter list.

This method does not invoke AST transformations.

Overrides:getParametersNoTransform in class ParMethodDecl
Returns:
The node representing the Parameter list.
Retrieves the Parameter list.
Overrides:getParameterList in class ParMethodDecl
Returns:
The node representing the Parameter list.
Retrieves the Parameter list.

This method does not invoke AST transformations.

Overrides:getParameterListNoTransform in class ParMethodDecl
Returns:
The node representing the Parameter list.
public void setExceptionList(List<Access> list)
Replaces the Exception list.
Overrides:setExceptionList in class ParMethodDecl
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 ParMethodDecl
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 ParMethodDecl
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 ParMethodDecl
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 ParMethodDecl
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 ParMethodDecl
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 ParMethodDecl
Returns:
The node representing the Exception list.
Retrieves the Exception list.

This method does not invoke AST transformations.

Overrides:getExceptionsNoTransform in class ParMethodDecl
Returns:
The node representing the Exception list.
Retrieves the Exception list.
Overrides:getExceptionList in class ParMethodDecl
Returns:
The node representing the Exception list.
Retrieves the Exception list.

This method does not invoke AST transformations.

Overrides:getExceptionListNoTransform in class ParMethodDecl
Returns:
The node representing the Exception list.
public void setBlockOpt(Opt<Block> opt)
Replaces the optional node for the Block child. This is the Opt node containing the child Block, not the actual child!
Overrides:setBlockOpt in class ParMethodDecl
Parameters:
opt - The new node to be used as the optional node for the Block child.
public boolean hasBlock()
Check whether the optional Block child exists.
Overrides:hasBlock in class ParMethodDecl
Returns:
true if the optional Block child exists, false if it does not.
public Block getBlock()
Retrieves the (optional) Block child.
Overrides:getBlock in class ParMethodDecl
Returns:
The Block child, if it exists. Returns null otherwise.
public void setBlock(Block node)
Replaces the (optional) Block child.
Overrides:setBlock in class ParMethodDecl
Parameters:
node - The new node to be used as the Block child.
Overrides:getBlockOpt in class ParMethodDecl
Retrieves the optional node for child Block. This is the Opt node containing the child Block, not the actual child!

This method does not invoke AST transformations.

Overrides:getBlockOptNoTransform in class ParMethodDecl
Returns:
The optional node for child Block.
public void setTypeArgumentList(List<Access> list)
Replaces the TypeArgument list.
Overrides:setTypeArgumentList in class ParMethodDecl
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 ParMethodDecl
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 ParMethodDecl
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 ParMethodDecl
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 ParMethodDecl
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 ParMethodDecl
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 ParMethodDecl
Returns:
The node representing the TypeArgument list.
Retrieves the TypeArgument list.

This method does not invoke AST transformations.

Overrides:getTypeArgumentsNoTransform in class ParMethodDecl
Returns:
The node representing the TypeArgument list.
Retrieves the TypeArgument list.
Overrides:getTypeArgumentList in class ParMethodDecl
Returns:
The node representing the TypeArgument list.
Retrieves the TypeArgument list.

This method does not invoke AST transformations.

Overrides:getTypeArgumentListNoTransform in class ParMethodDecl
Returns:
The node representing the TypeArgument list.
Replaces the lexeme GenericMethodDecl.
Overrides:setGenericMethodDecl in class ParMethodDecl
Parameters:
value - The new value for the lexeme GenericMethodDecl.
Retrieves the value for the lexeme GenericMethodDecl.
Overrides:getGenericMethodDecl in class ParMethodDecl
Returns:
The value for the lexeme GenericMethodDecl.
Overrides:rewriteTo in class ParMethodDecl

Inherited Members

Attributes inherited from AST.ParMethodDecl

Attributes inherited from AST.MethodDecl

Attributes inherited from AST.MemberDecl

Attributes inherited from AST.BodyDecl

Attributes inherited from AST.ASTNode

Methods inherited from class AST.ParMethodDecl

Methods inherited from class AST.MethodDecl

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

Methods inherited from interface AST.SimpleSet

Fields inherited from AST.ParMethodDecl

Fields inherited from AST.MethodDecl

Fields inherited from AST.BodyDecl

Fields inherited from AST.ASTNode

Fields inherited from beaver.Symbol

end
id
start
value

Fields inherited from interface AST.SimpleSet