recoder.java.declaration
Class AnnotationDeclaration
java.lang.Object
recoder.java.JavaSourceElement
recoder.java.JavaProgramElement
recoder.java.JavaNonTerminalProgramElement
recoder.java.declaration.JavaDeclaration
recoder.java.declaration.TypeDeclaration
recoder.java.declaration.InterfaceDeclaration
recoder.java.declaration.AnnotationDeclaration
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, ClassType, ClassTypeContainer, Member, ProgramModelElement, Type, AccessFlags, Declaration, MemberDeclaration, TypeDeclarationContainer, NamedProgramElement, NonTerminalProgramElement, ProgramElement, ScopeDefiningElement, SourceElement, TypeScope, VariableScope, ModelElement, NamedModelElement
public class AnnotationDeclaration
- extends InterfaceDeclaration
- Author:
- gutzmann
- See Also:
- Serialized Form
| Fields inherited from interface recoder.bytecode.AccessFlags |
ABSTRACT, ANNOTATION, BRIDGE, ENUM, FINAL, INTERFACE, NATIVE, PRIVATE, PROTECTED, PUBLIC, STATIC, STRICT, SUPER, SYNCHRONIZED, SYNTHETIC, TRANSIENT, VARARGS, VOLATILE |
| Fields inherited from interface recoder.bytecode.AccessFlags |
ABSTRACT, ANNOTATION, BRIDGE, ENUM, FINAL, INTERFACE, NATIVE, PRIVATE, PROTECTED, PUBLIC, STATIC, STRICT, SUPER, SYNCHRONIZED, SYNTHETIC, TRANSIENT, VARARGS, VOLATILE |
| Fields inherited from interface recoder.bytecode.AccessFlags |
ABSTRACT, ANNOTATION, BRIDGE, ENUM, FINAL, INTERFACE, NATIVE, PRIVATE, PROTECTED, PUBLIC, STATIC, STRICT, SUPER, SYNCHRONIZED, SYNTHETIC, TRANSIENT, VARARGS, VOLATILE |
|
Method Summary |
void |
accept(SourceVisitor v)
Receive a visitor, for instance a pretty printer. |
AnnotationDeclaration |
deepClone()
Deep clone. |
boolean |
isAnnotationType()
Checks if this class type denotes an annotation type |
boolean |
isEnumType()
Checks if this class type denotes an enum type |
boolean |
isInterface()
Checks if this class type denotes an interface (i.e. ordinary interface or annotation type). |
boolean |
isOrdinaryClass()
Checks if this class type denotes an ordinary (i.e. not an enum) class. |
boolean |
isOrdinaryInterface()
Checks if this class type denotes an ordinary (i.e. not annotation type) interface. |
| Methods inherited from class recoder.java.declaration.InterfaceDeclaration |
getChildAt, getChildCount, getChildPositionCode, getExtendedTypes, getTypeParameters, isAbstract, isInner, isNative, isPrivate, isProtected, isStrictFp, isSynchronized, isTransient, isVolatile, makeParentRoleValid, replaceChild, setExtendedTypes, setTypeParameters |
| Methods inherited from class recoder.java.declaration.TypeDeclaration |
addTypeToScope, addVariableToScope, createArrayType, getAllFields, getAllMethods, getAllSupertypes, getAllTypes, getArrayType, getASTParent, getBinaryName, getConstructors, getContainer, getContainingClassType, getErasedType, getFields, getFieldsInScope, getFirstElement, getFullName, getFullSignature, getIdentifier, getLastElement, getMemberParent, getMembers, getMethods, getName, getPackage, getParent, getProgramModelInfo, getSupertypes, getTypeDeclarationAt, getTypeDeclarationCount, getTypeInScope, getTypes, getTypesInScope, getVariableInScope, getVariablesInScope, isDefinedScope, isFinal, isPublic, isStatic, removeTypeFromScope, removeVariableFromScope, setDefinedScope, setIdentifier, setMemberParent, setMembers, setParent, setProgramModelInfo, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AnnotationDeclaration
public AnnotationDeclaration()
AnnotationDeclaration
public AnnotationDeclaration(ASTList<DeclarationSpecifier> modifiers,
Identifier name,
ASTList<MemberDeclaration> members)
AnnotationDeclaration
protected AnnotationDeclaration(AnnotationDeclaration proto)
- Parameters:
proto -
isInterface
public boolean isInterface()
- Description copied from interface:
ClassType
- Checks if this class type denotes an interface (i.e. ordinary interface or annotation type).
- Specified by:
isInterface in interface ClassType- Overrides:
isInterface in class InterfaceDeclaration
- Returns:
true if this object represents an interface,
false otherwise.
isOrdinaryInterface
public boolean isOrdinaryInterface()
- Description copied from interface:
ClassType
- Checks if this class type denotes an ordinary (i.e. not annotation type) interface.
- Specified by:
isOrdinaryInterface in interface ClassType- Overrides:
isOrdinaryInterface in class InterfaceDeclaration
- Returns:
true if this object represents an ordinary interface,
false otherwise.
isAnnotationType
public boolean isAnnotationType()
- Description copied from interface:
ClassType
- Checks if this class type denotes an annotation type
- Specified by:
isAnnotationType in interface ClassType- Overrides:
isAnnotationType in class InterfaceDeclaration
- Returns:
true if this object represents an annotation type,
false otherwise
isEnumType
public boolean isEnumType()
- Description copied from interface:
ClassType
- Checks if this class type denotes an enum type
- Specified by:
isEnumType in interface ClassType- Overrides:
isEnumType in class InterfaceDeclaration
- Returns:
true if this object represents an enum type,
false otherwise
isOrdinaryClass
public boolean isOrdinaryClass()
- Description copied from interface:
ClassType
- Checks if this class type denotes an ordinary (i.e. not an enum) class.
- Specified by:
isOrdinaryClass in interface ClassType- Overrides:
isOrdinaryClass in class InterfaceDeclaration
- Returns:
true if this object represents an ordinary class type,
false otherwise
accept
public void accept(SourceVisitor v)
- Description copied from interface:
SourceElement
- Receive a visitor, for instance a pretty printer.
- Specified by:
accept in interface SourceElement- Overrides:
accept in class InterfaceDeclaration
- Parameters:
v - a source visitor.
deepClone
public AnnotationDeclaration deepClone()
- Description copied from class:
InterfaceDeclaration
- Deep clone.
- Specified by:
deepClone in interface SourceElement- Overrides:
deepClone in class InterfaceDeclaration
- Returns:
- the object.