AST
node type GenericInterfaceDecl

General Info

Production
GenericInterfaceDecl : InterfaceDecl ::= Modifiers <ID:String> SuperInterfaceId:Access* BodyDecl* TypeParameter:TypeVariable*;
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.InterfaceDecl
                      extended by AST.GenericInterfaceDecl
All Implemented Interfaces:
GenericTypeDecl, SimpleSet, VariableScope, java.lang.Cloneable, java.lang.Iterable<ASTNode>, java.util.Iterator
Direct Known Subclasses:
GenericInterfaceDeclSubstituted

Nested classes/interfaces inherited from interface AST.SimpleSet

Description

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

Member Filters

API level:

Aspect:

Constructors

public GenericInterfaceDecl(Modifiers p0,
                            java.lang.String p1,
                            List<Access> p2,
                            List<BodyDecl> p3,
                            List<TypeVariable> p4)
 
public GenericInterfaceDecl(Modifiers p0,
                            beaver.Symbol p1,
                            List<Access> p2,
                            List<BodyDecl> p3,
                            List<TypeVariable> p4)
 

Attributes

Specified by:rawType in interface GenericTypeDecl
Source
Declared in Java1.5Frontend/Generics.jrag at line 177
Aspect
Generics
syn TypeDecl lookupParTypeDecl(java.util.ArrayList list)
Specified by:lookupParTypeDecl in interface GenericTypeDecl
Source
Declared in Java1.5Frontend/Generics.jrag at line 734
Aspect
LookupParTypeDecl
syn boolean usesTypeVariable()
Overrides:usesTypeVariable in class TypeDecl
Source
Declared in Java1.5Frontend/Generics.jrag at line 1078
Aspect
LookupParTypeDecl
syn boolean subtype(TypeDecl type)
Overrides:subtype in class InterfaceDecl
Source
Declared in Java1.5Frontend/GenericsSubtype.jrag at line 19
Aspect
GenericsSubtype
Overrides:supertypeParClassDecl in class TypeDecl
Source
Declared in Java1.5Frontend/GenericsSubtype.jrag at line 125
Aspect
GenericsSubtype
Overrides:supertypeParInterfaceDecl in class TypeDecl
Source
Declared in Java1.5Frontend/GenericsSubtype.jrag at line 129
Aspect
GenericsSubtype
syn boolean instanceOf(TypeDecl type)
Overrides:instanceOf in class InterfaceDecl
Source
Declared in Java1.5Frontend/GenericsSubtype.jrag at line 395
Aspect
GenericsSubtype
syn java.lang.String constantPoolName()
Overrides:constantPoolName in class TypeDecl
Source
Declared in Java1.5Backend/GenericsCodegen.jrag at line 194
Aspect
GenericsCodegen
Overrides:needsSignatureAttribute in class InterfaceDecl
Source
Declared in Java1.5Backend/GenericsCodegen.jrag at line 341
Aspect
GenericsCodegen
syn java.lang.String classSignature()
Overrides:classSignature in class InterfaceDecl
Source
Declared in Java1.5Backend/GenericsCodegen.jrag at line 414
Aspect
GenericsCodegen
syn boolean isGenericType()
Specified by:isGenericType in interface GenericTypeDeclOverrides:isGenericType in class TypeDecl
Source
Declared in Java1.5Frontend/Generics.jrag at line 158
Aspect
Generics
Specified by:lookupParTypeDecl in interface GenericTypeDecl
Source
Declared in Java1.5Frontend/Generics.jrag at line 708
Aspect
LookupParTypeDecl
Source
Declared in Java1.5Frontend/Generics.jrag at line 436
Aspect
GenericsTypeCheck

Methods

public void flushCache()
Overrides:flushCache in class InterfaceDecl
public void flushCollectionCache()
Overrides:flushCollectionCache in class InterfaceDecl
public GenericInterfaceDecl clone()
                           throws java.lang.CloneNotSupportedException
Overrides:clone in class InterfaceDecl
Throws:
java.lang.CloneNotSupportedException
Overrides:copy in class InterfaceDecl
Create a deep copy of the AST subtree at this node. The copy is dangling, i.e. has no parent.
Overrides:fullCopy in class InterfaceDecl
Returns:
dangling copy of the subtree at this node
public void typeCheck()
Overrides:typeCheck in class TypeDecl
Source
Declared in Java1.5Frontend/Generics.jrag at line 430
Aspect
GenericsTypeCheck
Overrides:substitutedInterfaceDecl in class InterfaceDecl
Source
Declared in Java1.5Frontend/Generics.jrag at line 1346
Aspect
LookupParTypeDecl
public void toString(java.lang.StringBuffer s)
Overrides:toString in class InterfaceDecl
Source
Declared in Java1.5Frontend/GenericsPrettyPrint.jrag at line 115
Aspect
GenericsPrettyPrint
Specified by:makeGeneric in interface GenericTypeDeclOverrides:makeGeneric in class InterfaceDecl
Source
Declared in Java1.5Frontend/Generics.jrag at line 235
Aspect
Generics
public SimpleSet addTypeVariables(SimpleSet c,
                                  java.lang.String name)
Specified by:addTypeVariables in interface GenericTypeDecl
Source
Declared in Java1.5Frontend/Generics.jrag at line 489
Aspect
GenericsNameBinding
public List createArgumentList(java.util.ArrayList params)
Specified by:createArgumentList in interface GenericTypeDecl
Source
Declared in Java1.5Frontend/Generics.jrag at line 799
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 InterfaceDecl
protected int numChildren()
Overrides:numChildren in class InterfaceDecl
public boolean mayHaveRewrite()
Overrides:mayHaveRewrite in class InterfaceDecl
public void setModifiers(Modifiers node)
Replaces the Modifiers child.
Overrides:setModifiers in class InterfaceDecl
Parameters:
node - The new node to replace the Modifiers child.
Retrieves the Modifiers child.
Overrides:getModifiers in class InterfaceDecl
Returns:
The current node used as the Modifiers child.
Retrieves the Modifiers child.

This method does not invoke AST transformations.

Overrides:getModifiersNoTransform in class InterfaceDecl
Returns:
The current node used as the Modifiers child.
public void setID(java.lang.String value)
Replaces the lexeme ID.
Overrides:setID in class InterfaceDecl
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 InterfaceDecl
public java.lang.String getID()
Retrieves the value for the lexeme ID.
Overrides:getID in class InterfaceDecl
Returns:
The value for the lexeme ID.
public void setSuperInterfaceIdList(List<Access> list)
Replaces the SuperInterfaceId list.
Overrides:setSuperInterfaceIdList in class InterfaceDecl
Parameters:
list - The new list node to be used as the SuperInterfaceId list.
Retrieves the number of children in the SuperInterfaceId list.
Overrides:getNumSuperInterfaceId in class InterfaceDecl
Returns:
Number of children in the SuperInterfaceId list.
Retrieves the number of children in the SuperInterfaceId list. Calling this method will not trigger rewrites..
Overrides:getNumSuperInterfaceIdNoTransform in class InterfaceDecl
Returns:
Number of children in the SuperInterfaceId list.
Retrieves the element at index i in the SuperInterfaceId list..
Overrides:getSuperInterfaceId in class InterfaceDecl
Parameters:
i - Index of the element to return.
Returns:
The element at position i in the SuperInterfaceId list.
public void addSuperInterfaceId(Access node)
Append an element to the SuperInterfaceId list.
Overrides:addSuperInterfaceId in class InterfaceDecl
Parameters:
node - The element to append to the SuperInterfaceId list.
public void setSuperInterfaceId(Access node,
                                int i)
Replaces the SuperInterfaceId list element at index i with the new node node.
Overrides:setSuperInterfaceId in class InterfaceDecl
Parameters:
node - The new node to replace the old list element.
i - The list index of the node to be replaced.
Retrieves the SuperInterfaceId list.
Overrides:getSuperInterfaceIds in class InterfaceDecl
Returns:
The node representing the SuperInterfaceId list.
Retrieves the SuperInterfaceId list.

This method does not invoke AST transformations.

Overrides:getSuperInterfaceIdsNoTransform in class InterfaceDecl
Returns:
The node representing the SuperInterfaceId list.
Retrieves the SuperInterfaceId list.
Overrides:getSuperInterfaceIdList in class InterfaceDecl
Returns:
The node representing the SuperInterfaceId list.
Retrieves the SuperInterfaceId list.

This method does not invoke AST transformations.

Overrides:getSuperInterfaceIdListNoTransform in class InterfaceDecl
Returns:
The node representing the SuperInterfaceId list.
public void setBodyDeclList(List<BodyDecl> list)
Replaces the BodyDecl list.
Overrides:setBodyDeclList in class InterfaceDecl
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 InterfaceDecl
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 InterfaceDecl
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 InterfaceDecl
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.
Overrides:addBodyDecl in class InterfaceDecl
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 InterfaceDecl
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 InterfaceDecl
Returns:
The node representing the BodyDecl list.
Retrieves the BodyDecl list.

This method does not invoke AST transformations.

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

This method does not invoke AST transformations.

Overrides:getBodyDeclListNoTransform in class InterfaceDecl
Returns:
The node representing the BodyDecl list.
Replaces the TypeParameter list.
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.
Specified by:getNumTypeParameter in interface GenericTypeDecl
Returns:
Number of children in the TypeParameter list.
Retrieves the number of children in the TypeParameter list. Calling this method will not trigger rewrites..
Returns:
Number of children in the TypeParameter list.
Retrieves the element at index i in the TypeParameter list..
Specified by:getTypeParameter in interface GenericTypeDecl
Parameters:
i - Index of the element to return.
Returns:
The element at position i in the TypeParameter list.
public void addTypeParameter(TypeVariable node)
Append an element to the TypeParameter list.
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.
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.
Returns:
The node representing the TypeParameter list.
Retrieves the TypeParameter list.

This method does not invoke AST transformations.

Returns:
The node representing the TypeParameter list.
Retrieves the TypeParameter list.
Specified by:getTypeParameterList in interface GenericTypeDecl
Returns:
The node representing the TypeParameter list.
Retrieves the TypeParameter list.

This method does not invoke AST transformations.

Returns:
The node representing the TypeParameter list.
public boolean Define_boolean_isNestedType(ASTNode caller,
                                           ASTNode child)
Overrides:Define_boolean_isNestedType in class TypeDecl
Source
Declared in Java1.5Frontend/Generics.jrag at line 486
Overrides:Define_TypeDecl_enclosingType in class TypeDecl
Source
Declared in Java1.5Frontend/Generics.jrag at line 487
public SimpleSet Define_SimpleSet_lookupType(ASTNode caller,
                                             ASTNode child,
                                             java.lang.String name)
Overrides:Define_SimpleSet_lookupType in class TypeDecl
Source
Declared in Java1.5Frontend/Generics.jrag at line 531
Overrides:Define_TypeDecl_genericDecl in class ASTNode<ASTNode>
Source
Declared in Java1.5Frontend/GenericsParTypeDecl.jrag at line 51
Overrides:rewriteTo in class InterfaceDecl

Fields

protected boolean rawType_computed
protected java.util.Map lookupParTypeDecl_ArrayList_values
protected boolean usesTypeVariable_computed
protected boolean usesTypeVariable_value
protected java.util.Map subtype_TypeDecl_values
protected java.util.Map instanceOf_TypeDecl_values
protected boolean constantPoolName_computed
protected java.lang.String constantPoolName_value
protected boolean classSignature_computed
protected java.lang.String classSignature_value

Inherited Members

Attributes inherited from AST.InterfaceDecl

Attributes inherited from AST.ReferenceType

Attributes inherited from AST.TypeDecl

Attributes inherited from AST.ASTNode

Methods inherited from class AST.InterfaceDecl

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

Methods inherited from interface AST.SimpleSet

Methods inherited from interface AST.VariableScope

Fields inherited from AST.InterfaceDecl

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