- All Known Implementing Classes:
DefaultTypeInfo
public interface TypeInfo
Represents the model object for a type.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringAnnotation element type kind.static final StringInterface element type kind.static final StringConstructor element type kind.static final StringEnum element type kind.static final StringField element type kind.static final StringInterface element type kind.static final StringMethod element type kind.static final StringPackage element type kind.static final StringParameter element type kind.static final StringRecord element type kind (since Java 16).static final StringTheabstractmodifier.static final StringThedefaultmodifier.static final StringThefinalmodifier.static final StringTheprivatemodifier.static final StringTheprotectedmodifier.static final StringThepublicmodifier.static final StringThesealedmodifier.static final StringThestaticmodifier. -
Method Summary
Modifier and TypeMethodDescriptionThe annotations on the type.The elements that make up the type that are relevant for processing.Element modifiers.The elements that make up this type that are considered "other", or being skipped because they are irrelevant to processing.Any Map, List, Set, or method that hasTypeName.typeArguments()will be analyzed and any type arguments will have its annotations added here.The parent/super class for this type info.typeKind()The type element kind.typeName()The type name.
-
Field Details
-
MODIFIER_PUBLIC
Thepublicmodifier.- See Also:
-
MODIFIER_PROTECTED
Theprotectedmodifier.- See Also:
-
MODIFIER_PRIVATE
Theprivatemodifier.- See Also:
-
MODIFIER_ABSTRACT
Theabstractmodifier.- See Also:
-
MODIFIER_DEFAULT
Thedefaultmodifier.- See Also:
-
MODIFIER_STATIC
Thestaticmodifier.- See Also:
-
MODIFIER_SEALED
Thesealedmodifier.- See Also:
-
MODIFIER_FINAL
Thefinalmodifier.- See Also:
-
KIND_FIELD
Field element type kind. See javax.lang.model.element.ElementKind#FIELD- See Also:
-
KIND_METHOD
Method element type kind. See javax.lang.model.element.ElementKind#METHOD- See Also:
-
KIND_CONSTRUCTOR
Constructor element type kind. See javax.lang.model.element.ElementKind#CONSTRUCTOR- See Also:
-
KIND_PARAMETER
Parameter element type kind. See javax.lang.model.element.ElementKind#PARAMETER- See Also:
-
KIND_INTERFACE
Interface element type kind. See javax.lang.model.element.ElementKind#INTERFACE- See Also:
-
KIND_CLASS
Interface element type kind. See javax.lang.model.element.ElementKind#CLASS- See Also:
-
KIND_ENUM
Enum element type kind. See javax.lang.model.element.ElementKind#ENUM- See Also:
-
KIND_ANNOTATION_TYPE
Annotation element type kind. See javax.lang.model.element.ElementKind#ANNOTATION_TYPE- See Also:
-
KIND_PACKAGE
Package element type kind. See javax.lang.model.element.ElementKind#PACKAGE- See Also:
-
KIND_RECORD
Record element type kind (since Java 16). See javax.lang.model.element.ElementKind#RECORD- See Also:
-
-
Method Details
-
typeName
TypeName typeName()The type name.- Returns:
- the type name
-
typeKind
String typeKind()The type element kind.- Returns:
- the type element kind (e.g., ""INTERFACE"", ""ANNOTATION_TYPE"", etc.)
- See Also:
-
annotations
List<AnnotationAndValue> annotations()The annotations on the type.- Returns:
- the annotations on the type
-
elementInfo
List<TypedElementName> elementInfo()The elements that make up the type that are relevant for processing.- Returns:
- the elements that make up the type that are relevant for processing
-
otherElementInfo
List<TypedElementName> otherElementInfo()The elements that make up this type that are considered "other", or being skipped because they are irrelevant to processing.- Returns:
- the elements that still make up the type, but are otherwise deemed irrelevant for processing
-
referencedTypeNamesToAnnotations
Map<TypeName,List<AnnotationAndValue>> referencedTypeNamesToAnnotations()Any Map, List, Set, or method that hasTypeName.typeArguments()will be analyzed and any type arguments will have its annotations added here. Note that this only applies to non-built-in types.- Returns:
- all referenced types
-
superTypeInfo
The parent/super class for this type info.- Returns:
- the super type
-
modifierNames
Element modifiers.- Returns:
- element modifiers
- See Also:
-