AST
node type RawClassDecl

General Info

Production
RawClassDecl : ParClassDecl ::= Argument:Access*;
Type Hierarchy:
java.lang.Object
  extended by beaver.Symbol
      extended by AST.ASTNode<ASTNode>
          extended by AST.TypeDecl
              extended by AST.ReferenceType
                  extended by AST.ClassDecl
                      extended by AST.ParClassDecl
                          extended by AST.RawClassDecl
All Implemented Interfaces:
MemberSubstitutor, Parameterization, ParTypeDecl, SimpleSet, VariableScope, java.lang.Cloneable, java.lang.Iterable<ASTNode>, java.util.Iterator

Nested classes/interfaces inherited from interface AST.SimpleSet

Description

Source
Declared in Java1.5Frontend/Generics.ast at line 7

Member Filters

API level:

Aspect:

Constructors

public RawClassDecl()
 
public RawClassDecl(Modifiers p0,
                    java.lang.String p1)
 
public RawClassDecl(Modifiers p0,
                    beaver.Symbol p1)
 

Attributes

Overrides:hostType in class ParClassDecl
Source
Declared in Java1.4Frontend/TypeAnalysis.jrag at line 569
Aspect
NestedTypes
syn boolean isRawType()
Specified by:isRawType in interface ParameterizationSpecified by:isRawType in interface ParTypeDeclOverrides:isRawType in class ParClassDecl
Source
Declared in Java1.5Frontend/Generics.jrag at line 245
Aspect
Generics
syn boolean sameSignature(Access a)
Specified by:sameSignature in interface ParTypeDeclOverrides:sameSignature in class ParClassDecl
Source
Declared in Java1.5Frontend/Generics.jrag at line 577
Aspect
LookupParTypeDecl
Description copied from class: ParClassDecl
Retrieves the Argument list.
Overrides:getArgumentList in class ParClassDecl
Returns:
The node representing the Argument list.
Source
Declared in Java1.5Frontend/Generics.jrag at line 755
Aspect
LookupParTypeDecl
syn java.lang.String nameWithArgs()
Specified by:nameWithArgs in interface ParTypeDeclOverrides:nameWithArgs in class ParClassDecl
Source
Declared in Java1.5Frontend/GenericsParTypeDecl.jrag at line 30
Aspect
GenericsParTypeDecl
Overrides:supertypeGenericClassDecl in class ParClassDecl
Source
Declared in Java1.5Frontend/GenericsSubtype.jrag at line 14
Aspect
GenericsSubtype
syn boolean subtype(TypeDecl type)
Overrides:subtype in class ParClassDecl
Source
Declared in Java1.5Frontend/GenericsSubtype.jrag at line 25
Aspect
GenericsSubtype
syn boolean supertypeClassDecl(ClassDecl type)
Overrides:supertypeClassDecl in class ParClassDecl
Source
Declared in Java1.5Frontend/GenericsSubtype.jrag at line 421
Aspect
GenericsSubtype
Overrides:supertypeInterfaceDecl in class ClassDecl
Source
Declared in Java1.5Frontend/GenericsSubtype.jrag at line 437
Aspect
GenericsSubtype
Overrides:supertypeParClassDecl in class ParClassDecl
Source
Declared in Java1.5Frontend/GenericsSubtype.jrag at line 125
Aspect
GenericsSubtype
syn boolean instanceOf(TypeDecl type)
Overrides:instanceOf in class ParClassDecl
Source
Declared in Java1.5Frontend/GenericsSubtype.jrag at line 397
Aspect
GenericsSubtype
syn java.lang.String typeArgumentsOpt()
Overrides:typeArgumentsOpt in class ParClassDecl
Source
Declared in Java1.5Backend/GenericsCodegen.jrag at line 470
Aspect
GenericsCodegen

Methods

public void flushCache()
Overrides:flushCache in class ParClassDecl
public void flushCollectionCache()
Overrides:flushCollectionCache in class ParClassDecl
public RawClassDecl clone()
                   throws java.lang.CloneNotSupportedException
Overrides:clone in class ParClassDecl
Throws:
java.lang.CloneNotSupportedException
Overrides:copy in class ParClassDecl
Create a deep copy of the AST subtree at this node. The copy is dangling, i.e. has no parent.
Overrides:fullCopy in class ParClassDecl
Returns:
dangling copy of the subtree at this node
public Access substitute(Parameterization parTypeDecl)
Specified by:substitute in interface ParTypeDeclOverrides:substitute in class ParClassDecl
Source
Declared in Java1.5Frontend/Generics.jrag at line 899
Aspect
LookupParTypeDecl
Overrides:substituteReturnType in class TypeDecl
Source
Declared in Java1.5Frontend/Generics.jrag at line 954
Aspect
LookupParTypeDecl
Overrides:substituteParameterType in class TypeDecl
Source
Declared in Java1.5Frontend/Generics.jrag at line 974
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 ParClassDecl
protected int numChildren()
Overrides:numChildren in class ParClassDecl
public boolean mayHaveRewrite()
Overrides:mayHaveRewrite in class ParClassDecl
public void setModifiers(Modifiers node)
Replaces the Modifiers child.
Overrides:setModifiers in class ParClassDecl
Parameters:
node - The new node to replace the Modifiers child.
Retrieves the Modifiers child.
Overrides:getModifiers in class ParClassDecl
Returns:
The current node used as the Modifiers child.
Retrieves the Modifiers child.

This method does not invoke AST transformations.

Overrides:getModifiersNoTransform in class ParClassDecl
Returns:
The current node used as the Modifiers child.
public void setID(java.lang.String value)
Replaces the lexeme ID.
Overrides:setID in class ParClassDecl
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 ParClassDecl
public java.lang.String getID()
Retrieves the value for the lexeme ID.
Overrides:getID in class ParClassDecl
Returns:
The value for the lexeme ID.
public void setSuperClassAccessOpt(Opt<Access> opt)
Replaces the optional node for the SuperClassAccess child. This is the Opt node containing the child SuperClassAccess, not the actual child!
Overrides:setSuperClassAccessOpt in class ParClassDecl
Parameters:
opt - The new node to be used as the optional node for the SuperClassAccess child.
public boolean hasSuperClassAccess()
Check whether the optional SuperClassAccess child exists.
Overrides:hasSuperClassAccess in class ParClassDecl
Returns:
true if the optional SuperClassAccess child exists, false if it does not.
Retrieves the (optional) SuperClassAccess child.
Overrides:getSuperClassAccess in class ParClassDecl
Returns:
The SuperClassAccess child, if it exists. Returns null otherwise.
public void setSuperClassAccess(Access node)
Replaces the (optional) SuperClassAccess child.
Overrides:setSuperClassAccess in class ParClassDecl
Parameters:
node - The new node to be used as the SuperClassAccess child.
Retrieves the optional node for child SuperClassAccess. This is the Opt node containing the child SuperClassAccess, not the actual child!

This method does not invoke AST transformations.

Overrides:getSuperClassAccessOptNoTransform in class ParClassDecl
Returns:
The optional node for child SuperClassAccess.
Retrieves the child position of the optional child SuperClassAccess.
Overrides:getSuperClassAccessOptChildPosition in class ParClassDecl
Returns:
The the child position of the optional child SuperClassAccess.
public void setImplementsList(List<Access> list)
Replaces the Implements list.
Overrides:setImplementsList in class ParClassDecl
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 ParClassDecl
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 ParClassDecl
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 ParClassDecl
Parameters:
i - Index of the element to return.
Returns:
The element at position i in the Implements list.
public void addImplements(Access node)
Append an element to the Implements list.
Overrides:addImplements in class ParClassDecl
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 ParClassDecl
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:getImplementss in class ParClassDecl
Returns:
The node representing the Implements list.
Retrieves the Implements list.

This method does not invoke AST transformations.

Overrides:getImplementssNoTransform in class ParClassDecl
Returns:
The node representing the Implements list.
Retrieves the Implements list.

This method does not invoke AST transformations.

Overrides:getImplementsListNoTransform in class ParClassDecl
Returns:
The node representing the Implements list.
Retrieves the child position of the Implements list.
Overrides:getImplementsListChildPosition in class ParClassDecl
Returns:
The the child position of the Implements list.
public void setBodyDeclList(List<BodyDecl> list)
Replaces the BodyDecl list.
Overrides:setBodyDeclList in class ParClassDecl
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 ParClassDecl
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 ParClassDecl
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 ParClassDecl
Parameters:
i - Index of the element to return.
Returns:
The element at position i in the BodyDecl list.
public void addBodyDecl(BodyDecl node)
Append an element to the BodyDecl list.
Specified by:addBodyDecl in interface MemberSubstitutorOverrides:addBodyDecl in class ParClassDecl
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 ParClassDecl
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:getBodyDecls in class ParClassDecl
Returns:
The node representing the BodyDecl list.
Retrieves the BodyDecl list.

This method does not invoke AST transformations.

Overrides:getBodyDeclsNoTransform in class ParClassDecl
Returns:
The node representing the BodyDecl list.
Retrieves the BodyDecl list.

This method does not invoke AST transformations.

Overrides:getBodyDeclListNoTransform in class ParClassDecl
Returns:
The node representing the BodyDecl list.
Retrieves the child position of the BodyDecl list.
Overrides:getBodyDeclListChildPosition in class ParClassDecl
Returns:
The the child position of the BodyDecl list.
public void setArgumentList(List<Access> list)
Replaces the Argument list.
Overrides:setArgumentList in class ParClassDecl
Parameters:
list - The new list node to be used as the Argument list.
public int getNumArgument()
Retrieves the number of children in the Argument list.
Specified by:getNumArgument in interface ParTypeDeclOverrides:getNumArgument in class ParClassDecl
Returns:
Number of children in the Argument list.
Retrieves the number of children in the Argument list. Calling this method will not trigger rewrites..
Overrides:getNumArgumentNoTransform in class ParClassDecl
Returns:
Number of children in the Argument list.
public Access getArgument(int i)
Retrieves the element at index i in the Argument list..
Specified by:getArgument in interface ParTypeDeclOverrides:getArgument in class ParClassDecl
Parameters:
i - Index of the element to return.
Returns:
The element at position i in the Argument list.
public void addArgument(Access node)
Append an element to the Argument list.
Overrides:addArgument in class ParClassDecl
Parameters:
node - The element to append to the Argument list.
public void addArgumentNoTransform(Access node)
public void setArgument(Access node,
                        int i)
Replaces the Argument list element at index i with the new node node.
Overrides:setArgument in class ParClassDecl
Parameters:
node - The new node to replace the old list element.
i - The list index of the node to be replaced.
Retrieves the Argument list.
Overrides:getArguments in class ParClassDecl
Returns:
The node representing the Argument list.
Retrieves the Argument list.

This method does not invoke AST transformations.

Overrides:getArgumentsNoTransform in class ParClassDecl
Returns:
The node representing the Argument list.
Retrieves the Argument list.

This method does not invoke AST transformations.

Overrides:getArgumentListNoTransform in class ParClassDecl
Returns:
The node representing the Argument list.
Retrieves the child position of the Argument list.
Returns:
The the child position of the Argument list.
Overrides:rewriteTo in class ParClassDecl

Fields

protected boolean getArgumentList_computed
protected java.util.Map subtype_TypeDecl_values
protected java.util.Map instanceOf_TypeDecl_values

Inherited Members

Attributes inherited from AST.ParClassDecl

Attributes inherited from AST.ClassDecl

Attributes inherited from AST.ReferenceType

Attributes inherited from AST.TypeDecl

Attributes inherited from AST.ASTNode

Methods inherited from class AST.ParClassDecl

Methods inherited from class AST.ClassDecl

Methods inherited from class AST.ReferenceType

Methods inherited from class AST.TypeDecl

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

Methods inherited from interface AST.MemberSubstitutor

Methods inherited from interface AST.Parameterization

Methods inherited from interface AST.SimpleSet

Methods inherited from interface AST.VariableScope

Fields inherited from AST.ParClassDecl

Fields inherited from AST.ClassDecl

Fields inherited from AST.ReferenceType

Fields inherited from AST.TypeDecl

Fields inherited from AST.ASTNode

Fields inherited from beaver.Symbol

end
id
start
value

Fields inherited from interface AST.SimpleSet