org.extendj.ast
node type LambdaAnonymousDecl

General Info

Production
LambdaAnonymousDecl : AnonymousDecl;
Type Hierarchy:
java.lang.Object
  extended by beaver.Symbol
      extended by org.extendj.ast.ASTNode<ASTNode>
          extended by org.extendj.ast.TypeDecl
              extended by org.extendj.ast.ReferenceType
                  extended by org.extendj.ast.ClassDecl
                      extended by org.extendj.ast.AnonymousDecl
                          extended by org.extendj.ast.LambdaAnonymousDecl
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Iterable<ASTNode>, java.util.Iterator, org.jastadd.util.PrettyPrintable
static class SimpleSet.SimpleSetImpl
           

Description

Source
Declared in /home/jesper/git/extendj/java8/grammar/LambdaAnonymousDecl.ast at line 1

Member Filters

API level:

Aspect:

Constructors

public LambdaAnonymousDecl()
 
Source
Declared in /home/jesper/git/extendj/ASTNode at line 1
public LambdaAnonymousDecl(Modifiers p0,
                           java.lang.String p1,
                           List<BodyDecl> p2)
 
Source
Declared in /home/jesper/git/extendj/ASTNode at line 17
public LambdaAnonymousDecl(Modifiers p0,
                           beaver.Symbol p1,
                           List<BodyDecl> p2)
 
Source
Declared in /home/jesper/git/extendj/ASTNode at line 22

Attributes

@ASTNodeAnnotation.Attribute
syn java.util.Collection unqualifiedLookupMethod(java.lang.String name)
Overrides:unqualifiedLookupMethod in class TypeDecl
Source
Declared in /home/jesper/git/extendj/java4/frontend/LookupMethod.jrag at line 58
Aspect
LookupMethod
Source
Declared in /home/jesper/git/extendj/java8/frontend/EnclosingLambda.jrag at line 37
Aspect
EnclosingLambda

Methods

public void init$Children()
Initializes the child array to the correct size. Initializes List and Opt nta children.
Overrides:init$Children in class AnonymousDecl
Source
Declared in /home/jesper/git/extendj/ASTNode at line 10
protected int numChildren()
Overrides:numChildren in class AnonymousDecl
Source
Declared in /home/jesper/git/extendj/ASTNode at line 30
public boolean mayHaveRewrite()
Overrides:mayHaveRewrite in class AnonymousDecl
Source
Declared in /home/jesper/git/extendj/ASTNode at line 36
public void flushAttrCache()
Overrides:flushAttrCache in class AnonymousDecl
Source
Declared in /home/jesper/git/extendj/ASTNode at line 42
public void flushCollectionCache()
Overrides:flushCollectionCache in class AnonymousDecl
Source
Declared in /home/jesper/git/extendj/ASTNode at line 50
public void flushRewriteCache()
Overrides:flushRewriteCache in class AnonymousDecl
Source
Declared in /home/jesper/git/extendj/ASTNode at line 56
public LambdaAnonymousDecl clone()
                          throws java.lang.CloneNotSupportedException
Overrides:clone in class AnonymousDecl
Throws:
java.lang.CloneNotSupportedException
Source
Declared in /home/jesper/git/extendj/ASTNode at line 62
public LambdaAnonymousDecl copy()
Overrides:copy in class AnonymousDecl
Source
Declared in /home/jesper/git/extendj/ASTNode at line 69
@Deprecated
public LambdaAnonymousDecl 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 AnonymousDecl
Returns:
dangling copy of the subtree at this node
Source
Declared in /home/jesper/git/extendj/ASTNode at line 88
public LambdaAnonymousDecl 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 AnonymousDecl
Returns:
dangling copy of the subtree at this node
Source
Declared in /home/jesper/git/extendj/ASTNode at line 98
public LambdaAnonymousDecl 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 AnonymousDecl
Returns:
dangling copy of the subtree at this node
Source
Declared in /home/jesper/git/extendj/ASTNode at line 127
protected boolean is$Equal(ASTNode node)
Overrides:is$Equal in class AnonymousDecl
Source
Declared in /home/jesper/git/extendj/ASTNode at line 134
public void setModifiers(Modifiers node)
Replaces the Modifiers child.
Overrides:setModifiers in class AnonymousDecl
Parameters:
node - The new node to replace the Modifiers child.
Retrieves the Modifiers child.
Overrides:getModifiers in class AnonymousDecl
Returns:
The current node used as the Modifiers child.
Retrieves the Modifiers child.

This method does not invoke AST transformations.

Overrides:getModifiersNoTransform in class AnonymousDecl
Returns:
The current node used as the Modifiers child.
public void setID(java.lang.String value)
Replaces the lexeme ID.
Overrides:setID in class AnonymousDecl
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 AnonymousDecl
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 AnonymousDecl
Returns:
The value for the lexeme ID.
public void setBodyDeclList(List<BodyDecl> list)
Replaces the BodyDecl list.
Overrides:setBodyDeclList in class AnonymousDecl
Parameters:
list - The new list node to be used as the BodyDecl list.
public int getNumBodyDecl()
Retrieves the number of children in the BodyDecl list.
Overrides:getNumBodyDecl in class AnonymousDecl
Returns:
Number of children in the BodyDecl list.
Retrieves the number of children in the BodyDecl list. Calling this method will not trigger rewrites.
Overrides:getNumBodyDeclNoTransform in class AnonymousDecl
Returns:
Number of children in the BodyDecl list.
public BodyDecl getBodyDecl(int i)
Retrieves the element at index i in the BodyDecl list.
Overrides:getBodyDecl in class AnonymousDecl
Parameters:
i - Index of the element to return.
Returns:
The element at position i in the BodyDecl list.
public boolean hasBodyDecl()
Check whether the BodyDecl list has any children.
Overrides:hasBodyDecl in class AnonymousDecl
Returns:
true if it has at least one child, false otherwise.
public void addBodyDecl(BodyDecl node)
Append an element to the BodyDecl list.
Overrides:addBodyDecl in class AnonymousDecl
Parameters:
node - The element to append to the BodyDecl list.
public void setBodyDecl(BodyDecl node,
                        int i)
Replaces the BodyDecl list element at index i with the new node node.
Overrides:setBodyDecl in class AnonymousDecl
Parameters:
node - The new node to replace the old list element.
i - The list index of the node to be replaced.
Retrieves the BodyDecl list.
Overrides:getBodyDeclList in class AnonymousDecl
Returns:
The node representing the BodyDecl list.
Retrieves the BodyDecl list.

This method does not invoke AST transformations.

Overrides:getBodyDeclListNoTransform in class AnonymousDecl
Returns:
The node representing the BodyDecl list.
Retrieves the BodyDecl list.
Overrides:getBodyDecls in class AnonymousDecl
Returns:
The node representing the BodyDecl list.
Retrieves the BodyDecl list.

This method does not invoke AST transformations.

Overrides:getBodyDeclsNoTransform in class AnonymousDecl
Returns:
The node representing the BodyDecl list.
Replaces the (optional) ImplicitConstructor child.
Overrides:setImplicitConstructor in class AnonymousDecl
Parameters:
node - The new node to be used as the ImplicitConstructor child.
public boolean hasImplicitConstructor()
Check whether the optional ImplicitConstructor child exists.
Overrides:hasImplicitConstructor in class AnonymousDecl
Returns:
true if the optional ImplicitConstructor child exists, false if it does not.
Retrieves the (optional) ImplicitConstructor child.
Overrides:getImplicitConstructor in class AnonymousDecl
Returns:
The ImplicitConstructor child, if it exists. Returns null otherwise.
Retrieves the optional node for child ImplicitConstructor. This is the Opt node containing the child ImplicitConstructor, not the actual child!

This method does not invoke AST transformations.

Overrides:getImplicitConstructorOptNoTransform in class AnonymousDecl
Returns:
The optional node for child ImplicitConstructor.
Retrieves the child position of the optional child ImplicitConstructor.
Overrides:getImplicitConstructorOptChildPosition in class AnonymousDecl
Returns:
The the child position of the optional child ImplicitConstructor.
public void setSuperClassOpt(Opt<Access> node)
This method should not be called. This method throws an exception due to the corresponding child being an NTA shadowing a non-NTA child.
Overrides:setSuperClassOpt in class AnonymousDecl
Parameters:
node -
public void setSuperClass(Access node)
Replaces the (optional) SuperClass child.
Overrides:setSuperClass in class AnonymousDecl
Parameters:
node - The new node to be used as the SuperClass child.
public boolean hasSuperClass()
Check whether the optional SuperClass child exists.
Overrides:hasSuperClass in class AnonymousDecl
Returns:
true if the optional SuperClass child exists, false if it does not.
Retrieves the (optional) SuperClass child.
Overrides:getSuperClass in class AnonymousDecl
Returns:
The SuperClass child, if it exists. Returns null otherwise.
Retrieves the optional node for child SuperClass. This is the Opt node containing the child SuperClass, not the actual child!

This method does not invoke AST transformations.

Overrides:getSuperClassOptNoTransform in class AnonymousDecl
Returns:
The optional node for child SuperClass.
Retrieves the child position of the optional child SuperClass.
Overrides:getSuperClassOptChildPosition in class AnonymousDecl
Returns:
The the child position of the optional child SuperClass.
public void setImplementsList(List<Access> node)
This method should not be called. This method throws an exception due to the corresponding child being an NTA shadowing a non-NTA child.
Overrides:setImplementsList in class AnonymousDecl
Parameters:
node -
public int getNumImplements()
Retrieves the number of children in the Implements list.
Overrides:getNumImplements in class AnonymousDecl
Returns:
Number of children in the Implements list.
Retrieves the number of children in the Implements list. Calling this method will not trigger rewrites.
Overrides:getNumImplementsNoTransform in class AnonymousDecl
Returns:
Number of children in the Implements list.
public Access getImplements(int i)
Retrieves the element at index i in the Implements list.
Overrides:getImplements in class AnonymousDecl
Parameters:
i - Index of the element to return.
Returns:
The element at position i in the Implements list.
public boolean hasImplements()
Check whether the Implements list has any children.
Overrides:hasImplements in class AnonymousDecl
Returns:
true if it has at least one child, false otherwise.
public void addImplements(Access node)
Append an element to the Implements list.
Overrides:addImplements in class AnonymousDecl
Parameters:
node - The element to append to the Implements list.
public void setImplements(Access node,
                          int i)
Replaces the Implements list element at index i with the new node node.
Overrides:setImplements in class AnonymousDecl
Parameters:
node - The new node to replace the old list element.
i - The list index of the node to be replaced.
Retrieves the child position of the Implements list.
Overrides:getImplementsListChildPosition in class AnonymousDecl
Returns:
The the child position of the Implements list.
Retrieves the Implements list.

This method does not invoke AST transformations.

Overrides:getImplementsListNoTransform in class AnonymousDecl
Returns:
The node representing the Implements list.
Retrieves the Implements list.
Overrides:getImplementss in class AnonymousDecl
Returns:
The node representing the Implements list.
Retrieves the Implements list.

This method does not invoke AST transformations.

Overrides:getImplementssNoTransform in class AnonymousDecl
Returns:
The node representing the Implements list.
Overrides:rewriteTo in class AnonymousDecl
public int size()
public boolean isEmpty()
public boolean contains(java.lang.Object o)
public org.extendj.ast.SimpleSet lookupVariable(java.lang.String name)

Fields

protected boolean enclosingLambda_computed
public static final org.extendj.ast.SimpleSet emptySet
public static final org.extendj.ast.SimpleSet fullSet

Inherited Members

Attributes inherited from org.extendj.ast.AnonymousDecl

Attributes inherited from org.extendj.ast.ClassDecl

Attributes inherited from org.extendj.ast.ReferenceType

Attributes inherited from org.extendj.ast.TypeDecl

Attributes inherited from org.extendj.ast.ASTNode

Methods inherited from class org.extendj.ast.AnonymousDecl

Methods inherited from class org.extendj.ast.ClassDecl

Methods inherited from class org.extendj.ast.ReferenceType

Methods inherited from class org.extendj.ast.TypeDecl

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

Fields inherited from org.extendj.ast.ClassDecl

Fields inherited from org.extendj.ast.ReferenceType

Fields inherited from org.extendj.ast.TypeDecl

Fields inherited from org.extendj.ast.ASTNode

Fields inherited from beaver.Symbol

end
id
start
value