Package spoon.reflect.declaration
Interface CtTypeMember
- All Superinterfaces:
Cloneable
,CtElement
,CtModifiable
,CtNamedElement
,CtQueryable
,CtVisitable
,FactoryAccessor
,Serializable
,SourcePositionHolder
- All Known Subinterfaces:
CtAnnotationMethod<T>
,CtAnnotationType<T>
,CtAnonymousExecutable
,CtClass<T>
,CtConstructor<T>
,CtEnum<T>
,CtEnumValue<T>
,CtField<T>
,CtFormalTypeDeclarer
,CtInterface<T>
,CtMethod<T>
,CtRecord
,CtType<T>
,CtTypeParameter
- All Known Implementing Classes:
CtAnnotationMethodImpl
,CtAnnotationTypeImpl
,CtAnonymousExecutableImpl
,CtClassImpl
,CtConstructorImpl
,CtEnumImpl
,CtEnumValueImpl
,CtFieldImpl
,CtInterfaceImpl
,CtMethodImpl
,CtRecordImpl
,CtTypeImpl
,CtTypeParameterImpl
,InvisibleArrayConstructorImpl
This interface represents a member of a class (field, method,
nested class or static/instance initializer).
-
Method Summary
Methods inherited from interface spoon.reflect.declaration.CtElement
addAnnotation, addComment, asIterable, delete, descendantIterator, getAllMetadata, getAnnotatedChildren, getAnnotation, getAnnotation, getAnnotations, getComments, getDirectChildren, getDocComment, getElements, getMetadata, getMetadataKeys, getOriginalSourceFragment, getParent, getParent, getParent, getPath, getPosition, getReferencedTypes, getRoleInParent, getShortRepresentation, getValueByRole, hasAnnotation, hasParent, isImplicit, isParentInitialized, prettyprint, putMetadata, removeAnnotation, removeComment, replace, replace, setAllMetadata, setAnnotations, setComments, setDocComment, setImplicit, setParent, setPosition, setPositions, setValueByRole, toString, toStringDebug, updateAllParentsBelow
Methods inherited from interface spoon.reflect.declaration.CtModifiable
addModifier, getExtendedModifiers, getModifiers, getVisibility, hasModifier, isAbstract, isFinal, isNative, isPrivate, isProtected, isPublic, isStatic, isStrictfp, isSynchronized, isTransient, isVolatile, removeModifier, setExtendedModifiers, setModifiers, setVisibility
Methods inherited from interface spoon.reflect.declaration.CtNamedElement
clone, getReference, getSimpleName, setSimpleName
Methods inherited from interface spoon.reflect.visitor.chain.CtQueryable
filterChildren, map, map
Methods inherited from interface spoon.reflect.visitor.CtVisitable
accept
Methods inherited from interface spoon.processing.FactoryAccessor
getFactory, setFactory
-
Method Details
-
getDeclaringType
CtType<?> getDeclaringType()Gets the type that declares this class member.- Returns:
- declaring class
-
getTopLevelType
Returns the top level type declaring this type if an inner type or type member. If this is already a top-level type, then returns itself.
-