Class NormalClassDeclaration
java.lang.Object
org.fife.rsta.ac.java.rjc.ast.AbstractASTNode
org.fife.rsta.ac.java.rjc.ast.AbstractTypeDeclarationNode
org.fife.rsta.ac.java.rjc.ast.NormalClassDeclaration
- All Implemented Interfaces:
ASTNode, TypeDeclaration, TypeDeclarationContainer
A class declaration. Its structure is as follows:
NormalClassDeclaration: 'class' Identifier [TypeParameters] ['extends' Type] ['implements' TypeList] ClassBody
- Version:
- 1.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddImplemented(Type implemented) Adds an implemented type to this class declaration.intgetMethodContainingOffset(int offs) Gets the method in this class that contains a given offset.Returns the type of this type declaration, as a string.private booleanisTypeCompatible(Type type, String typeName) Returns whether aTypeand a type name are type compatible.voidsetExtendedType(Type type) voidsetTypeParameters(List<TypeParameter> typeParams) Methods inherited from class AbstractTypeDeclarationNode
addMember, addTypeDeclaration, getBodyContainsOffset, getBodyEndOffset, getBodyStartOffset, getChildType, getChildTypeAtOffset, getChildTypeCount, getDocComment, getFieldIterator, getMember, getMemberCount, getMemberIterator, getMethodIterator, getMethodsByName, getModifiers, getName, getPackage, getParentType, isDeprecated, isStatic, setBodyEndOffset, setBodyStartOffset, setDeprecated, setDocComment, setModifiers, setPackage, setParentType, toStringMethods inherited from class AbstractASTNode
getName, getNameEndOffset, getNameStartOffset, setDeclarationEndOffset, setDeclarationOffsetsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ASTNode
getNameEndOffset, getNameStartOffsetMethods inherited from interface TypeDeclaration
getName
-
Field Details
-
typeParams
-
extendedType
-
implementedList
-
-
Constructor Details
-
NormalClassDeclaration
-
-
Method Details
-
addImplemented
Adds an implemented type to this class declaration.- Parameters:
implemented- The implemented type.
-
getExtendedType
-
getImplementedCount
public int getImplementedCount() -
getImplementedIterator
-
getMethodContainingOffset
Gets the method in this class that contains a given offset.- Parameters:
offs- The offset.- Returns:
- The method containing the offset, or
nullif no method in this class contains the offset.
-
getTypeParameters
-
getTypeString
Description copied from interface:TypeDeclarationReturns the type of this type declaration, as a string.- Returns:
- The type.
-
isTypeCompatible
-
setExtendedType
-
setTypeParameters
-