Class TypeElementImpl
java.lang.Object
org.vesalainen.bcc.model.ElementImpl
org.vesalainen.bcc.model.TypeElementImpl
- All Implemented Interfaces:
AnnotatedConstruct, Element, Parameterizable, QualifiedNameable, TypeElement, UpdateableElement
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Class<?> private List<TypeMirror> private NestingKindprivate Nameprivate TypeMirrorprivate DeclaredTypeprivate List<TypeParameterElement> Fields inherited from class ElementImpl
annotations, enclosingElement, kind, modifiers, simpleName -
Constructor Summary
ConstructorsConstructorDescriptionTypeElementImpl(Class<?> cls) This is two-phase construction.TypeElementImpl(TypeMirror[] bounds) -
Method Summary
Modifier and TypeMethodDescription<R,P> R accept(ElementVisitor<R, P> v, P p) asType()private static ElementKinddetectKind(Class<?> cls) boolean<A extends Annotation>
A[]getAnnotationsByType(Class<A> annotationType) List<? extends TypeMirror> List<? extends TypeParameterElement> inthashCode()(package private) void(package private) voidprivate voidtoString()Methods inherited from class ElementImpl
getAnnotation, getAnnotationMirrors, getKind, getModifiers, getSimpleName, setEnclosingElement, setModifiers, setSimpleNameMethods inherited from interface Element
getAnnotation, getAnnotationMirrors, getKind, getModifiersMethods inherited from interface TypeElement
getPermittedSubclasses, getRecordComponents, getSimpleName
-
Field Details
-
type
-
enclosedElements
-
interfaces
-
nestingKind
-
qualifiedName
-
superclass
-
typeParameters
-
cls
-
-
Constructor Details
-
TypeElementImpl
TypeElementImpl() -
TypeElementImpl
TypeElementImpl(TypeMirror[] bounds) -
TypeElementImpl
-
-
Method Details
-
getAnnotationsByType
- Specified by:
getAnnotationsByTypein interfaceAnnotatedConstruct- Specified by:
getAnnotationsByTypein interfaceElement
-
init
-
initTypeParameters
private void initTypeParameters() -
asType
- Specified by:
asTypein interfaceElement- Specified by:
asTypein interfaceTypeElement
-
getEnclosingElement
- Specified by:
getEnclosingElementin interfaceElement- Specified by:
getEnclosingElementin interfaceTypeElement- Overrides:
getEnclosingElementin classElementImpl
-
init
-
detectKind
-
getTypeParameters
- Specified by:
getTypeParametersin interfaceParameterizable- Specified by:
getTypeParametersin interfaceTypeElement
-
getEnclosedElements
- Specified by:
getEnclosedElementsin interfaceElement- Specified by:
getEnclosedElementsin interfaceTypeElement
-
getNestingKind
- Specified by:
getNestingKindin interfaceTypeElement
-
getQualifiedName
- Specified by:
getQualifiedNamein interfaceQualifiedNameable- Specified by:
getQualifiedNamein interfaceTypeElement
-
getSuperclass
- Specified by:
getSuperclassin interfaceTypeElement
-
getInterfaces
- Specified by:
getInterfacesin interfaceTypeElement
-
accept
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceElement- Overrides:
hashCodein classElementImpl
-
equals
- Specified by:
equalsin interfaceElement- Overrides:
equalsin classElementImpl
-
toString
- Overrides:
toStringin classElementImpl
-