org.extendj.ast
node type GenericClassDeclSubstituted

General Info

Production
GenericClassDeclSubstituted : GenericClassDecl ::= <Original:TypeDecl> BodyDecl*;
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.GenericClassDecl
                          extended by org.extendj.ast.GenericClassDeclSubstituted
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/java5/grammar/Generics.ast at line 43

Member Filters

API level:

Aspect:

Constructors

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

Attributes

Overrides:hostType in class TypeDecl
Source
Declared in /home/jesper/git/extendj/java4/frontend/TypeAnalysis.jrag at line 624
Aspect
NestedTypes
Description copied from class: GenericClassDecl
Retrieves the BodyDecl list.
Overrides:getBodyDeclList in class GenericClassDecl
Returns:
The node representing the BodyDecl list.
Source
Declared in /home/jesper/git/extendj/java5/frontend/Generics.jrag at line 1236
Aspect
LookupParTypeDecl
Overrides:original in class TypeDecl
Source
Declared in /home/jesper/git/extendj/java5/frontend/Generics.jrag at line 1417
Aspect
LookupParTypeDecl
Overrides:sourceTypeDecl in class TypeDecl
Source
Declared in /home/jesper/git/extendj/java5/frontend/Generics.jrag at line 1618
Aspect
SourceDeclarations
Overrides:instanceOf in class GenericClassDecl
Source
Declared in /home/jesper/git/extendj/java4/frontend/TypeAnalysis.jrag at line 442
Aspect
TypeWideningAndIdentity
Overrides:supertypeGenericClassDeclSubstituted in class TypeDecl
Source
Declared in /home/jesper/git/extendj/java5/frontend/GenericsSubtype.jrag at line 548
Aspect
GenericsSubtype
Overrides:supertypeGenericClassDecl in class TypeDecl
Source
Declared in /home/jesper/git/extendj/java5/frontend/GenericsSubtype.jrag at line 35
Aspect
GenericsSubtype
Overrides:typeDescriptor in class ClassDecl
Source
Declared in /home/jesper/git/extendj/java4/backend/ConstantPoolNames.jrag at line 77
Aspect
ConstantPoolNames
For a top-level type the constant pool name of the type is the same as the canonical name but with dots replaced by solidus.

For nested types the constant pool name is based on the enclosing top-level types constant pool name followed by a dollar sign and a unique index and/or the type name.

Overrides:constantPoolName in class TypeDecl
Returns:
constant pool name of this type
Source
Declared in /home/jesper/git/extendj/java4/backend/ConstantPoolNames.jrag at line 44
Aspect
ConstantPoolNames
Overrides:uniqueIndex in class TypeDecl
Source
Declared in /home/jesper/git/extendj/java4/backend/Java2Rewrites.jrag at line 33
Aspect
Java2Rewrites
Overrides:arrayTypeDescriptor in class ClassDecl
Source
Declared in /home/jesper/git/extendj/java4/backend/CreateBCode.jrag at line 900
Aspect
CreateBCode
Overrides:strictSupertypeGenericClassDeclSubstituted in class TypeDecl
Source
Declared in /home/jesper/git/extendj/java8/frontend/GenericsSubtype.jrag at line 478
Aspect
StrictSubtype
Overrides:strictSupertypeGenericClassDecl in class TypeDecl
Source
Declared in /home/jesper/git/extendj/java8/frontend/GenericsSubtype.jrag at line 39
Aspect
StrictSubtype
@ASTNodeAnnotation.Attribute
syn java.util.Map<java.lang.String,org.extendj.ast.SimpleSet> localMethodsSignatureMap()
Overrides:localMethodsSignatureMap in class TypeDecl
Returns:
a mapping of method signature to method declaration
Source
Declared in /home/jesper/git/extendj/java5/frontend/Generics.jrag at line 1278
Aspect
LookupParTypeDecl
@ASTNodeAnnotation.Attribute
syn org.extendj.ast.SimpleSet localFields(java.lang.String name)
Overrides:localFields in class TypeDecl
Source
Declared in /home/jesper/git/extendj/java5/frontend/Generics.jrag at line 1296
Aspect
LookupParTypeDecl
Overrides:constructors in class ClassDecl
Source
Declared in /home/jesper/git/extendj/java5/frontend/Generics.jrag at line 1347
Aspect
LookupParTypeDecl
@ASTNodeAnnotation.Attribute
syn org.extendj.ast.SimpleSet localTypeDecls(java.lang.String name)
Source
Declared in /home/jesper/git/extendj/java5/frontend/Generics.jrag at line 1315
Aspect
LookupParTypeDecl

Methods

public void init$Children()
Initializes the child array to the correct size. Initializes List and Opt nta children.
Overrides:init$Children in class GenericClassDecl
Source
Declared in /home/jesper/git/extendj/ASTNode at line 10
protected int numChildren()
Overrides:numChildren in class GenericClassDecl
Source
Declared in /home/jesper/git/extendj/ASTNode at line 37
public boolean mayHaveRewrite()
Overrides:mayHaveRewrite in class GenericClassDecl
Source
Declared in /home/jesper/git/extendj/ASTNode at line 43
public void flushAttrCache()
Overrides:flushAttrCache in class GenericClassDecl
Source
Declared in /home/jesper/git/extendj/ASTNode at line 49
public void flushCollectionCache()
Overrides:flushCollectionCache in class GenericClassDecl
Source
Declared in /home/jesper/git/extendj/ASTNode at line 67
public void flushRewriteCache()
Overrides:flushRewriteCache in class GenericClassDecl
Source
Declared in /home/jesper/git/extendj/ASTNode at line 73
public GenericClassDeclSubstituted clone()
                                  throws java.lang.CloneNotSupportedException
Overrides:clone in class GenericClassDecl
Throws:
java.lang.CloneNotSupportedException
Source
Declared in /home/jesper/git/extendj/ASTNode at line 79
Overrides:copy in class GenericClassDecl
Source
Declared in /home/jesper/git/extendj/ASTNode at line 86
@Deprecated
public GenericClassDeclSubstituted 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 GenericClassDecl
Returns:
dangling copy of the subtree at this node
Source
Declared in /home/jesper/git/extendj/ASTNode at line 105
public GenericClassDeclSubstituted 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 GenericClassDecl
Returns:
dangling copy of the subtree at this node
Source
Declared in /home/jesper/git/extendj/ASTNode at line 115
public GenericClassDeclSubstituted 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 GenericClassDecl
Returns:
dangling copy of the subtree at this node
Source
Declared in /home/jesper/git/extendj/ASTNode at line 143
protected boolean is$Equal(ASTNode node)
Overrides:is$Equal in class GenericClassDecl
Source
Declared in /home/jesper/git/extendj/ASTNode at line 150
public void setModifiers(Modifiers node)
Replaces the Modifiers child.
Overrides:setModifiers in class GenericClassDecl
Parameters:
node - The new node to replace the Modifiers child.
Retrieves the Modifiers child.
Overrides:getModifiers in class GenericClassDecl
Returns:
The current node used as the Modifiers child.
Retrieves the Modifiers child.

This method does not invoke AST transformations.

Overrides:getModifiersNoTransform in class GenericClassDecl
Returns:
The current node used as the Modifiers child.
public void setID(java.lang.String value)
Replaces the lexeme ID.
Overrides:setID in class GenericClassDecl
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 GenericClassDecl
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 GenericClassDecl
Returns:
The value for the lexeme ID.
public void setSuperClassOpt(Opt<Access> opt)
Replaces the optional node for the SuperClass child. This is the Opt node containing the child SuperClass, not the actual child!
Overrides:setSuperClassOpt in class GenericClassDecl
Parameters:
opt - The new node to be used as the optional node for the SuperClass child.
public void setSuperClass(Access node)
Replaces the (optional) SuperClass child.
Overrides:setSuperClass in class GenericClassDecl
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 GenericClassDecl
Returns:
true if the optional SuperClass child exists, false if it does not.
Retrieves the (optional) SuperClass child.
Overrides:getSuperClass in class GenericClassDecl
Returns:
The SuperClass child, if it exists. Returns null otherwise.
Retrieves the optional node for the SuperClass child. This is the Opt node containing the child SuperClass, not the actual child!
Overrides:getSuperClassOpt in class GenericClassDecl
Returns:
The optional node for child the SuperClass child.
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 GenericClassDecl
Returns:
The optional node for child SuperClass.
public void setImplementsList(List<Access> list)
Replaces the Implements list.
Overrides:setImplementsList in class GenericClassDecl
Parameters:
list - The new list node to be used as the Implements list.
public int getNumImplements()
Retrieves the number of children in the Implements list.
Overrides:getNumImplements in class GenericClassDecl
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 GenericClassDecl
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 GenericClassDecl
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 GenericClassDecl
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 GenericClassDecl
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 GenericClassDecl
Parameters:
node - The new node to replace the old list element.
i - The list index of the node to be replaced.
Retrieves the Implements list.
Overrides:getImplementsList in class GenericClassDecl
Returns:
The node representing the Implements list.
Retrieves the Implements list.

This method does not invoke AST transformations.

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

This method does not invoke AST transformations.

Overrides:getImplementssNoTransform in class GenericClassDecl
Returns:
The node representing the Implements list.
Replaces the TypeParameter list.
Overrides:setTypeParameterList in class GenericClassDecl
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 GenericClassDecl
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 GenericClassDecl
Returns:
Number of children in the TypeParameter list.
Retrieves the element at index i in the TypeParameter list.
Overrides:getTypeParameter in class GenericClassDecl
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 GenericClassDecl
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 GenericClassDecl
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 GenericClassDecl
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 GenericClassDecl
Returns:
The node representing the TypeParameter list.
Retrieves the TypeParameter list.

This method does not invoke AST transformations.

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

This method does not invoke AST transformations.

Overrides:getTypeParametersNoTransform in class GenericClassDecl
Returns:
The node representing the TypeParameter list.
public void setOriginal(TypeDecl value)
Replaces the lexeme Original.
Parameters:
value - The new value for the lexeme Original.
Retrieves the value for the lexeme Original.
Returns:
The value for the lexeme Original.
Replaces the (optional) ImplicitConstructor child.
Overrides:setImplicitConstructor in class GenericClassDecl
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 GenericClassDecl
Returns:
true if the optional ImplicitConstructor child exists, false if it does not.
Retrieves the (optional) ImplicitConstructor child.
Overrides:getImplicitConstructor in class GenericClassDecl
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 GenericClassDecl
Returns:
The optional node for child ImplicitConstructor.
Retrieves the child position of the optional child ImplicitConstructor.
Overrides:getImplicitConstructorOptChildPosition in class GenericClassDecl
Returns:
The the child position of the optional child ImplicitConstructor.
public void setBodyDeclList(List<BodyDecl> 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:setBodyDeclList in class GenericClassDecl
Parameters:
node -
public int getNumBodyDecl()
Retrieves the number of children in the BodyDecl list.
Overrides:getNumBodyDecl in class GenericClassDecl
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 GenericClassDecl
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 GenericClassDecl
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 GenericClassDecl
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 GenericClassDecl
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 GenericClassDecl
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 BodyDecl list.
Returns:
The the child position of the BodyDecl list.
Retrieves the BodyDecl list.

This method does not invoke AST transformations.

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

This method does not invoke AST transformations.

Overrides:getBodyDeclsNoTransform in class GenericClassDecl
Returns:
The node representing the BodyDecl list.
@ASTNodeAnnotation.Attribute
public org.extendj.ast.SimpleSet localTypeDecls(java.lang.String name)
Overrides:rewriteTo in class GenericClassDecl
public TypeDecl substitute(TypeVariable typeVariable)
public boolean isRawType()
public java.lang.String fullName()
public java.lang.String typeName()
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 getBodyDeclList_computed
protected boolean sourceTypeDecl_computed
protected java.util.Map instanceOf_TypeDecl_values
protected java.util.Map subtype_TypeDecl_values
protected boolean typeDescriptor_computed
protected java.lang.String typeDescriptor_value
protected boolean constantPoolName_computed
protected java.lang.String constantPoolName_value
protected boolean uniqueIndex_computed
protected int uniqueIndex_value
protected java.util.Map strictSubtype_TypeDecl_values
protected java.util.Map<java.lang.String,org.extendj.ast.SimpleSet> localMethodsSignatureMap_value
protected java.util.Map localFields_String_values
protected java.util.Map localTypeDecls_String_values
protected boolean constructors_computed
protected java.util.Collection<ConstructorDecl> constructors_value
public static final org.extendj.ast.Parameterization RAW
A raw type parameterization. Performs no substitutions.
public static final org.extendj.ast.SimpleSet emptySet
public static final org.extendj.ast.SimpleSet fullSet

Inherited Members

Attributes inherited from org.extendj.ast.GenericClassDecl

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

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

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