Package org.fife.rsta.ac.java.rjc.ast
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 org.fife.rsta.ac.java.rjc.ast.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 org.fife.rsta.ac.java.rjc.ast.AbstractASTNode
getName, getNameEndOffset, getNameStartOffset, setDeclarationEndOffset, setDeclarationOffsetsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.fife.rsta.ac.java.rjc.ast.ASTNode
getNameEndOffset, getNameStartOffsetMethods inherited from interface org.fife.rsta.ac.java.rjc.ast.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
Returns whether aTypeand a type name are type compatible. This method currently is a sham!- Parameters:
type- The type to check against.typeName- The type name to also check.- Returns:
- Whether they are type-compatible.
-
setExtendedType
-
setTypeParameters
-