org.extendj.ast
node type StandInMethodDecl

General Info

Production
StandInMethodDecl : GenericMethodDecl;
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.MemberDecl
                  extended by org.extendj.ast.MethodDecl
                      extended by org.extendj.ast.GenericMethodDecl
                          extended by org.extendj.ast.StandInMethodDecl
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Iterable<ASTNode>, java.util.Iterator, org.jastadd.util.PrettyPrintable
static class SimpleSet.SimpleSetImpl
           

Description

Stand-in method for type inference on generic instance creation.
Source
Declared in /home/jesper/git/extendj/java7/grammar/Diamond.ast at line 9

Member Filters

API level:

Aspect:

Constructors

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

Methods

public void nameCheck()
Overrides:nameCheck in class MethodDecl
Source
Declared in /home/jesper/git/extendj/java7/frontend/Diamond.jrag at line 45
Aspect
Diamond
public void typeCheck()
Overrides:typeCheck in class MethodDecl
Source
Declared in /home/jesper/git/extendj/java7/frontend/Diamond.jrag at line 46
Aspect
Diamond
public void exceptionHandling()
Overrides:exceptionHandling in class ASTNode<ASTNode>
Source
Declared in /home/jesper/git/extendj/java7/frontend/Diamond.jrag at line 47
Aspect
Diamond
public void checkUnreachableStmt()
Source
Declared in /home/jesper/git/extendj/java7/frontend/Diamond.jrag at line 48
Aspect
Diamond
public void definiteAssignment()
Overrides:definiteAssignment in class ASTNode<ASTNode>
Source
Declared in /home/jesper/git/extendj/java7/frontend/Diamond.jrag at line 49
Aspect
Diamond
public void checkModifiers()
Overrides:checkModifiers in class MethodDecl
Source
Declared in /home/jesper/git/extendj/java7/frontend/Diamond.jrag at line 50
Aspect
Diamond
public void prettyPrint(org.jastadd.util.PrettyPrinter out)
Specified by:prettyPrint in interface org.jastadd.util.PrettyPrintableOverrides:prettyPrint in class GenericMethodDecl
Source
Declared in /home/jesper/git/extendj/java7/frontend/PrettyPrint.jadd at line 81
Aspect
Java7PrettyPrint
public void init$Children()
Initializes the child array to the correct size. Initializes List and Opt nta children.
Overrides:init$Children in class GenericMethodDecl
Source
Declared in /home/jesper/git/extendj/ASTNode at line 10
protected int numChildren()
Overrides:numChildren in class GenericMethodDecl
Source
Declared in /home/jesper/git/extendj/ASTNode at line 38
public boolean mayHaveRewrite()
Overrides:mayHaveRewrite in class GenericMethodDecl
Source
Declared in /home/jesper/git/extendj/ASTNode at line 44
public void flushAttrCache()
Overrides:flushAttrCache in class GenericMethodDecl
Source
Declared in /home/jesper/git/extendj/ASTNode at line 50
public void flushCollectionCache()
Overrides:flushCollectionCache in class GenericMethodDecl
Source
Declared in /home/jesper/git/extendj/ASTNode at line 56
public void flushRewriteCache()
Overrides:flushRewriteCache in class GenericMethodDecl
Source
Declared in /home/jesper/git/extendj/ASTNode at line 62
public StandInMethodDecl clone()
                        throws java.lang.CloneNotSupportedException
Overrides:clone in class GenericMethodDecl
Throws:
java.lang.CloneNotSupportedException
Source
Declared in /home/jesper/git/extendj/ASTNode at line 68
public StandInMethodDecl copy()
Overrides:copy in class GenericMethodDecl
Source
Declared in /home/jesper/git/extendj/ASTNode at line 75
@Deprecated
public StandInMethodDecl 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 GenericMethodDecl
Returns:
dangling copy of the subtree at this node
Source
Declared in /home/jesper/git/extendj/ASTNode at line 94
public StandInMethodDecl 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 GenericMethodDecl
Returns:
dangling copy of the subtree at this node
Source
Declared in /home/jesper/git/extendj/ASTNode at line 104
public StandInMethodDecl 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 GenericMethodDecl
Returns:
dangling copy of the subtree at this node
Source
Declared in /home/jesper/git/extendj/ASTNode at line 124
protected boolean is$Equal(ASTNode node)
Overrides:is$Equal in class GenericMethodDecl
Source
Declared in /home/jesper/git/extendj/ASTNode at line 131
public void setModifiers(Modifiers node)
Replaces the Modifiers child.
Overrides:setModifiers in class GenericMethodDecl
Parameters:
node - The new node to replace the Modifiers child.
Retrieves the Modifiers child.
Overrides:getModifiers in class GenericMethodDecl
Returns:
The current node used as the Modifiers child.
Retrieves the Modifiers child.

This method does not invoke AST transformations.

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

This method does not invoke AST transformations.

Overrides:getTypeAccessNoTransform in class GenericMethodDecl
Returns:
The current node used as the TypeAccess child.
public void setID(java.lang.String value)
Replaces the lexeme ID.
Overrides:setID in class GenericMethodDecl
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 GenericMethodDecl
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 GenericMethodDecl
Returns:
The value for the lexeme ID.
Replaces the Parameter list.
Overrides:setParameterList in class GenericMethodDecl
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 GenericMethodDecl
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 GenericMethodDecl
Returns:
Number of children in the Parameter list.
Retrieves the element at index i in the Parameter list.
Overrides:getParameter in class GenericMethodDecl
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 GenericMethodDecl
Returns:
true if it has at least one child, false otherwise.
Append an element to the Parameter list.
Overrides:addParameter in class GenericMethodDecl
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 GenericMethodDecl
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 GenericMethodDecl
Returns:
The node representing the Parameter list.
Retrieves the Parameter list.

This method does not invoke AST transformations.

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

This method does not invoke AST transformations.

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

This method does not invoke AST transformations.

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

This method does not invoke AST transformations.

Overrides:getExceptionsNoTransform in class GenericMethodDecl
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 GenericMethodDecl
Parameters:
opt - The new node to be used as the optional node for the Block child.
public void setBlock(Block node)
Replaces the (optional) Block child.
Overrides:setBlock in class GenericMethodDecl
Parameters:
node - The new node to be used as the Block child.
public boolean hasBlock()
Check whether the optional Block child exists.
Overrides:hasBlock in class GenericMethodDecl
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 GenericMethodDecl
Returns:
The Block child, if it exists. Returns null otherwise.
Retrieves the optional node for the Block child. This is the Opt node containing the child Block, not the actual child!
Overrides:getBlockOpt in class GenericMethodDecl
Returns:
The optional node for child the Block child.
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 GenericMethodDecl
Returns:
The optional node for child Block.
Replaces the TypeParameter list.
Overrides:setTypeParameterList in class GenericMethodDecl
Parameters:
list - The new list node to be used as the TypeParameter list.
public int getNumTypeParameter()
Retrieves the number of children in the TypeParameter list.
Overrides:getNumTypeParameter in class GenericMethodDecl
Returns:
Number of children in the TypeParameter list.
Retrieves the number of children in the TypeParameter list. Calling this method will not trigger rewrites.
Overrides:getNumTypeParameterNoTransform in class GenericMethodDecl
Returns:
Number of children in the TypeParameter list.
Retrieves the element at index i in the TypeParameter list.
Overrides:getTypeParameter in class GenericMethodDecl
Parameters:
i - Index of the element to return.
Returns:
The element at position i in the TypeParameter list.
public boolean hasTypeParameter()
Check whether the TypeParameter list has any children.
Overrides:hasTypeParameter in class GenericMethodDecl
Returns:
true if it has at least one child, false otherwise.
public void addTypeParameter(TypeVariable node)
Append an element to the TypeParameter list.
Overrides:addTypeParameter in class GenericMethodDecl
Parameters:
node - The element to append to the TypeParameter list.
public void setTypeParameter(TypeVariable node,
                             int i)
Replaces the TypeParameter list element at index i with the new node node.
Overrides:setTypeParameter in class GenericMethodDecl
Parameters:
node - The new node to replace the old list element.
i - The list index of the node to be replaced.
Retrieves the TypeParameter list.
Overrides:getTypeParameterList in class GenericMethodDecl
Returns:
The node representing the TypeParameter list.
Retrieves the TypeParameter list.

This method does not invoke AST transformations.

Overrides:getTypeParameterListNoTransform in class GenericMethodDecl
Returns:
The node representing the TypeParameter list.
Retrieves the TypeParameter list.
Overrides:getTypeParameters in class GenericMethodDecl
Returns:
The node representing the TypeParameter list.
Retrieves the TypeParameter list.

This method does not invoke AST transformations.

Overrides:getTypeParametersNoTransform in class GenericMethodDecl
Returns:
The node representing the TypeParameter list.
Overrides:rewriteTo in class GenericMethodDecl
public int size()
public boolean isEmpty()
public boolean contains(java.lang.Object o)

Fields

public static final org.extendj.ast.SimpleSet emptySet
public static final org.extendj.ast.SimpleSet fullSet

Inherited Members

Attributes inherited from org.extendj.ast.GenericMethodDecl

Attributes inherited from org.extendj.ast.MethodDecl

Attributes inherited from org.extendj.ast.MemberDecl

Attributes inherited from org.extendj.ast.BodyDecl

Attributes inherited from org.extendj.ast.ASTNode

Methods inherited from class org.extendj.ast.GenericMethodDecl

Methods inherited from class org.extendj.ast.MethodDecl

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

Fields inherited from org.extendj.ast.MethodDecl

Fields inherited from org.extendj.ast.BodyDecl

Fields inherited from org.extendj.ast.ASTNode

Fields inherited from beaver.Symbol

end
id
start
value