AST
node type InterfaceDecl

General Info

Production
InterfaceDecl : ReferenceType ::= Modifiers <ID:String> SuperInterfaceId:Access* BodyDecl*;
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
All Implemented Interfaces:
SimpleSet, VariableScope, java.lang.Cloneable, java.lang.Iterable<ASTNode>, java.util.Iterator
Direct Known Subclasses:
AnnotationDecl, GenericInterfaceDecl, InterfaceDeclSubstituted, ParInterfaceDecl

Nested classes/interfaces inherited from interface AST.SimpleSet

Description

Source
Declared in Java1.4Frontend/java.ast at line 67

Member Filters

API level:

Aspect:

Constructors

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

Attributes

syn java.util.Collection lookupSuperConstructor()
Overrides:lookupSuperConstructor in class TypeDecl
Source
Declared in Java1.4Frontend/LookupConstructor.jrag at line 21
Aspect
ConstructScope
syn java.util.HashMap methodsSignatureMap()
Overrides:methodsSignatureMap in class TypeDecl
Source
Declared in Java1.5Frontend/MethodSignature.jrag at line 387
Aspect
MethodSignature15
syn SimpleSet ancestorMethods(java.lang.String signature)
Overrides:ancestorMethods in class TypeDecl
Source
Declared in Java1.4Frontend/LookupMethod.jrag at line 414
Aspect
AncestorMethods
syn SimpleSet memberTypes(java.lang.String name)
Overrides:memberTypes in class TypeDecl
Source
Declared in Java1.4Frontend/LookupType.jrag at line 520
Aspect
TypeScopePropagation
syn java.util.HashMap memberFieldsMap()
Overrides:memberFieldsMap in class TypeDecl
Source
Declared in Java1.4Frontend/LookupVariable.jrag at line 302
Aspect
Fields
syn SimpleSet memberFields(java.lang.String name)
Overrides:memberFields in class TypeDecl
Source
Declared in Java1.4Frontend/LookupVariable.jrag at line 356
Aspect
Fields
syn boolean isAbstract()
Overrides:isAbstract in class TypeDecl
Source
Declared in Java1.4Frontend/Modifiers.jrag at line 204
Aspect
Modifiers
syn boolean isStatic()
Overrides:isStatic in class TypeDecl
Source
Declared in Java1.4Frontend/Modifiers.jrag at line 208
Aspect
Modifiers
syn boolean castingConversionTo(TypeDecl type)
Overrides:castingConversionTo in class TypeDecl
Source
Declared in Java1.5Frontend/AutoBoxing.jrag at line 148
Aspect
AutoBoxing
syn boolean isInterfaceDecl()
Overrides:isInterfaceDecl in class TypeDecl
Source
Declared in Java1.4Frontend/TypeAnalysis.jrag at line 211
Aspect
TypeAnalysis
syn boolean instanceOf(TypeDecl type)
Overrides:instanceOf in class TypeDecl
Source
Declared in Java1.5Frontend/GenericsSubtype.jrag at line 388
Aspect
GenericsSubtype
syn boolean isSupertypeOfClassDecl(ClassDecl type)
Overrides:isSupertypeOfClassDecl in class TypeDecl
Source
Declared in Java1.4Frontend/TypeAnalysis.jrag at line 423
Aspect
TypeWideningAndIdentity
Overrides:isSupertypeOfInterfaceDecl in class TypeDecl
Source
Declared in Java1.4Frontend/TypeAnalysis.jrag at line 440
Aspect
TypeWideningAndIdentity
syn boolean isSupertypeOfArrayDecl(ArrayDecl type)
Overrides:isSupertypeOfArrayDecl in class TypeDecl
Source
Declared in Java1.4Frontend/TypeAnalysis.jrag at line 453
Aspect
TypeWideningAndIdentity
syn boolean isCircular()
Overrides:isCircular in class TypeDecl
Source
Declared in Java1.4Frontend/TypeAnalysis.jrag at line 696
Aspect
Circularity
syn java.lang.String typeDescriptor()
Overrides:typeDescriptor in class TypeDecl
Source
Declared in Java1.4Backend/ConstantPoolNames.jrag at line 16
Aspect
ConstantPoolNames
syn java.lang.String arrayTypeDescriptor()
Overrides:arrayTypeDescriptor in class TypeDecl
Source
Declared in Java1.4Backend/CreateBCode.jrag at line 820
Aspect
CreateBCode
syn java.util.HashSet implementedInterfaces()
Overrides:implementedInterfaces in class TypeDecl
Source
Declared in Java1.5Frontend/Generics.jrag at line 411
Aspect
GenericsTypeCheck
syn boolean subtype(TypeDecl type)
Overrides:subtype in class TypeDecl
Source
Declared in Java1.5Frontend/GenericsSubtype.jrag at line 408
Aspect
GenericsSubtype
syn boolean supertypeClassDecl(ClassDecl type)
Overrides:supertypeClassDecl in class TypeDecl
Source
Declared in Java1.5Frontend/GenericsSubtype.jrag at line 421
Aspect
GenericsSubtype
Overrides:supertypeInterfaceDecl in class TypeDecl
Source
Declared in Java1.5Frontend/GenericsSubtype.jrag at line 437
Aspect
GenericsSubtype
syn boolean supertypeArrayDecl(ArrayDecl type)
Overrides:supertypeArrayDecl in class TypeDecl
Source
Declared in Java1.5Frontend/GenericsSubtype.jrag at line 450
Aspect
GenericsSubtype
syn SimpleSet bridgeCandidates(java.lang.String signature)
Overrides:bridgeCandidates in class TypeDecl
Source
Declared in Java1.5Backend/GenericsCodegen.jrag at line 227
Aspect
GenericsCodegen
Overrides:needsSignatureAttribute in class TypeDecl
Source
Declared in Java1.5Backend/GenericsCodegen.jrag at line 355
Aspect
GenericsCodegen
syn java.lang.String classSignature()
Overrides:classSignature in class TypeDecl
Source
Declared in Java1.5Backend/GenericsCodegen.jrag at line 395
Aspect
GenericsCodegen
Source
Declared in Java1.4Frontend/TypeAnalysis.jrag at line 97
Aspect
TypeConversion

Methods

public void flushCache()
Overrides:flushCache in class ReferenceType
public void flushCollectionCache()
Overrides:flushCollectionCache in class ReferenceType
public InterfaceDecl clone()
                    throws java.lang.CloneNotSupportedException
Overrides:clone in class ReferenceType
Throws:
java.lang.CloneNotSupportedException
Overrides:copy in class ASTNode<ASTNode>
Create a deep copy of the AST subtree at this node. The copy is dangling, i.e. has no parent.
Overrides:fullCopy in class ASTNode<ASTNode>
Returns:
dangling copy of the subtree at this node
public void accessControl()
Overrides:accessControl in class ASTNode<ASTNode>
Source
Declared in Java1.4Frontend/AccessControl.jrag at line 167
Aspect
AccessControl
public void checkModifiers()
Overrides:checkModifiers in class TypeDecl
Source
Declared in Java1.4Frontend/Modifiers.jrag at line 106
Aspect
Modifiers
public void toString(java.lang.StringBuffer s)
Overrides:toString in class ASTNode<ASTNode>
Source
Declared in Java1.4Frontend/PrettyPrint.jadd at line 89
Aspect
PrettyPrint
public java.util.Iterator superinterfacesIterator()
Source
Declared in Java1.4Frontend/TypeAnalysis.jrag at line 644
Aspect
SuperClasses
public void nameCheck()
Overrides:nameCheck in class TypeDecl
Source
Declared in Java1.4Frontend/TypeHierarchyCheck.jrag at line 312
Aspect
TypeHierarchyCheck
public void generateClassfile()
Overrides:generateClassfile in class TypeDecl
Source
Declared in Java1.4Backend/GenerateClassfile.jrag at line 142
Aspect
GenerateClassfile
public FieldDeclaration createStaticClassField(java.lang.String name)
Overrides:createStaticClassField in class TypeDecl
Source
Declared in Java1.4Backend/Java2Rewrites.jrag at line 95
Aspect
Java2Rewrites
Overrides:createStaticClassMethod in class TypeDecl
Source
Declared in Java1.4Backend/Java2Rewrites.jrag at line 98
Aspect
Java2Rewrites
Source
Declared in Java1.4Backend/Java2Rewrites.jrag at line 103
Aspect
Java2Rewrites
Overrides:makeGeneric in class TypeDecl
Source
Declared in Java1.5Frontend/Generics.jrag at line 213
Aspect
Generics
Source
Declared in Java1.5Frontend/Generics.jrag at line 1336
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 ReferenceType
protected int numChildren()
Overrides:numChildren in class ReferenceType
public boolean mayHaveRewrite()
Overrides:mayHaveRewrite in class ReferenceType
public void setModifiers(Modifiers node)
Replaces the Modifiers child.
Overrides:setModifiers in class ReferenceType
Parameters:
node - The new node to replace the Modifiers child.
Retrieves the Modifiers child.
Overrides:getModifiers in class ReferenceType
Returns:
The current node used as the Modifiers child.
Retrieves the Modifiers child.

This method does not invoke AST transformations.

Overrides:getModifiersNoTransform in class ReferenceType
Returns:
The current node used as the Modifiers child.
public void setID(java.lang.String value)
Replaces the lexeme ID.
Overrides:setID in class ReferenceType
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 ReferenceType
public java.lang.String getID()
Retrieves the value for the lexeme ID.
Overrides:getID in class ReferenceType
Returns:
The value for the lexeme ID.
public void setSuperInterfaceIdList(List<Access> list)
Replaces the SuperInterfaceId list.
Parameters:
list - The new list node to be used as the SuperInterfaceId list.
Retrieves the number of children in the SuperInterfaceId list.
Returns:
Number of children in the SuperInterfaceId list.
Retrieves the number of children in the SuperInterfaceId list. Calling this method will not trigger rewrites..
Returns:
Number of children in the SuperInterfaceId list.
Retrieves the element at index i in the SuperInterfaceId list..
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.
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.
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.
Returns:
The node representing the SuperInterfaceId list.
Retrieves the SuperInterfaceId list.

This method does not invoke AST transformations.

Returns:
The node representing the SuperInterfaceId list.
Retrieves the SuperInterfaceId list.
Returns:
The node representing the SuperInterfaceId list.
Retrieves the SuperInterfaceId list.

This method does not invoke AST transformations.

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

This method does not invoke AST transformations.

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

This method does not invoke AST transformations.

Overrides:getBodyDeclListNoTransform in class ReferenceType
Returns:
The node representing the BodyDecl list.
Overrides:Define_NameType_nameType in class TypeDecl
Source
Declared in Java1.4Frontend/SyntacticClassification.jrag at line 75
Overrides:Define_TypeDecl_hostType in class TypeDecl
Source
Declared in Java1.4Frontend/TypeAnalysis.jrag at line 580
public boolean Define_boolean_withinSuppressWarnings(ASTNode caller,
                                                     ASTNode child,
                                                     java.lang.String s)
Overrides:Define_boolean_withinSuppressWarnings in class TypeDecl
Source
Declared in Java1.5Frontend/Annotations.jrag at line 278
Overrides:Define_boolean_withinDeprecatedAnnotation in class TypeDecl
Source
Declared in Java1.5Frontend/Annotations.jrag at line 378
public boolean Define_boolean_inExtendsOrImplements(ASTNode caller,
                                                    ASTNode child)
Overrides:Define_boolean_inExtendsOrImplements in class ASTNode<ASTNode>
Source
Declared in Java1.5Frontend/Generics.jrag at line 270
Overrides:rewriteTo in class ReferenceType

Fields

protected java.util.HashMap methodsSignatureMap_value
protected java.util.Map ancestorMethods_String_values
protected java.util.Map memberTypes_String_values
protected boolean memberFieldsMap_computed
protected java.util.HashMap memberFieldsMap_value
protected java.util.Map memberFields_String_values
protected boolean isStatic_computed
protected boolean isStatic_value
protected java.util.Map castingConversionTo_TypeDecl_values
protected java.util.Map instanceOf_TypeDecl_values
protected int isCircular_visited
protected boolean isCircular_computed
protected boolean isCircular_initialized
protected boolean isCircular_value
protected boolean typeDescriptor_computed
protected java.lang.String typeDescriptor_value
protected java.util.HashSet implementedInterfaces_value
protected java.util.Map subtype_TypeDecl_values
protected boolean classSignature_computed
protected java.lang.String classSignature_value

Inherited Members

Attributes inherited from AST.ReferenceType

Attributes inherited from AST.TypeDecl

Attributes inherited from AST.ASTNode

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

Methods inherited from interface AST.VariableScope

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