@Internal public class JavaClassElement extends AbstractJavaElement implements io.micronaut.inject.ast.ArrayableClassElement
TypeElement
.Modifier and Type | Field and Description |
---|---|
protected javax.lang.model.element.TypeElement |
classElement |
protected JavaVisitorContext |
visitorContext |
Constructor and Description |
---|
JavaClassElement(javax.lang.model.element.TypeElement classElement,
io.micronaut.core.annotation.AnnotationMetadata annotationMetadata,
JavaVisitorContext visitorContext) |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.util.Map<java.lang.String,io.micronaut.inject.ast.ClassElement>> |
getAllTypeArguments() |
int |
getArrayDimensions() |
java.util.List<io.micronaut.inject.ast.PropertyElement> |
getBeanProperties() |
java.util.List<io.micronaut.inject.ast.ClassElement> |
getBoundGenericTypes() |
java.util.List<? extends io.micronaut.inject.ast.GenericPlaceholderElement> |
getDeclaredGenericPlaceholders() |
java.util.Optional<io.micronaut.inject.ast.MethodElement> |
getDefaultConstructor() |
<T extends io.micronaut.inject.ast.Element> |
getEnclosedElements(io.micronaut.inject.ast.ElementQuery<T> query) |
java.util.Optional<io.micronaut.inject.ast.ClassElement> |
getEnclosingType() |
java.util.Collection<io.micronaut.inject.ast.ClassElement> |
getInterfaces() |
java.lang.String |
getName() |
io.micronaut.inject.ast.PackageElement |
getPackage() |
java.lang.String |
getPackageName() |
java.util.Optional<io.micronaut.inject.ast.MethodElement> |
getPrimaryConstructor() |
io.micronaut.inject.ast.ClassElement |
getRawClassElement() |
java.lang.String |
getSimpleName() |
java.util.Optional<io.micronaut.inject.ast.ClassElement> |
getSuperType() |
java.util.Map<java.lang.String,io.micronaut.inject.ast.ClassElement> |
getTypeArguments() |
java.util.Map<java.lang.String,io.micronaut.inject.ast.ClassElement> |
getTypeArguments(java.lang.String type) |
boolean |
isAbstract() |
boolean |
isArray() |
boolean |
isAssignable(io.micronaut.inject.ast.ClassElement type) |
boolean |
isAssignable(java.lang.String type) |
boolean |
isInner() |
boolean |
isInterface() |
boolean |
isPrimitive() |
boolean |
isRecord() |
boolean |
isTypeVariable() |
java.lang.String |
toString() |
io.micronaut.inject.ast.ClassElement |
withArrayDimensions(int arrayDimensions) |
io.micronaut.inject.ast.ClassElement |
withBoundGenericTypes(java.util.List<? extends io.micronaut.inject.ast.ClassElement> typeArguments) |
annotate, annotate, equals, getAnnotationMetadata, getModifiers, getNativeType, hashCode, isFinal, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, mirrorToClassElement, mirrorToClassElement, mirrorToClassElement, mirrorToClassElement, parameterizedClassElement, removeAnnotation, removeAnnotationIf, removeStereotype
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAssociatedBean, foldBoundGenericTypes, getCanonicalName, getEnclosedElement, getFields, getFields, getFirstTypeArgument, getType, getTypeArguments, isAssignable, isEnum, isGenericPlaceholder, isIterable, isOptional, isProxy, isWildcard, of, of, of, of, of, of
annotate, annotate, annotate, annotate, annotate, getDescription, getDescription, getDocumentation, getModifiers, getNativeType, isFinal, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, removeAnnotation, removeAnnotation, removeAnnotationIf, removeStereotype, removeStereotype
booleanValue, booleanValue, booleanValue, booleanValue, classValue, classValue, classValue, classValue, classValues, classValues, classValues, classValues, doubleValue, doubleValue, doubleValue, enumValue, enumValue, enumValue, enumValue, enumValues, enumValues, enumValues, enumValues, findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, findRepeatableAnnotation, findRepeatableAnnotation, getAnnotation, getAnnotation, getAnnotationNameByStereotype, getAnnotationNameByStereotype, getAnnotationNames, getAnnotationNamesByStereotype, getAnnotationNamesByStereotype, getAnnotationType, getAnnotationType, getAnnotationTypeByStereotype, getAnnotationTypeByStereotype, getAnnotationTypesByStereotype, getAnnotationTypesByStereotype, getAnnotationTypesByStereotype, getAnnotationValuesByType, getDeclaredAnnotation, getDeclaredAnnotation, getDeclaredAnnotationNameByStereotype, getDeclaredAnnotationNames, getDeclaredAnnotationNamesByStereotype, getDeclaredAnnotationTypeByStereotype, getDeclaredAnnotationTypeByStereotype, getDeclaredAnnotationValuesByType, getDeclaredMetadata, getDefaultValue, getDefaultValue, getDefaultValue, getDefaultValue, getDefaultValues, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValues, getValues, hasAnnotation, hasAnnotation, hasDeclaredAnnotation, hasDeclaredAnnotation, hasDeclaredStereotype, hasDeclaredStereotype, hasDeclaredStereotype, hasPropertyExpressions, hasSimpleAnnotation, hasSimpleDeclaredAnnotation, hasStereotype, hasStereotype, hasStereotype, hasStereotype, intValue, intValue, intValue, isAnnotationPresent, isDeclaredAnnotationPresent, isEmpty, isFalse, isFalse, isPresent, isPresent, isRepeatableAnnotation, isRepeatableAnnotation, isTrue, isTrue, longValue, longValue, stringValue, stringValue, stringValue, stringValue, stringValues, stringValues, stringValues, stringValues, synthesize, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByType
getValues, hasDeclaredStereotype, isAnnotationPresent, isDeclaredAnnotationPresent
protected final javax.lang.model.element.TypeElement classElement
protected final JavaVisitorContext visitorContext
@Internal public JavaClassElement(javax.lang.model.element.TypeElement classElement, io.micronaut.core.annotation.AnnotationMetadata annotationMetadata, JavaVisitorContext visitorContext)
classElement
- The TypeElement
annotationMetadata
- The annotation metadatavisitorContext
- The visitor contextpublic boolean isTypeVariable()
isTypeVariable
in interface io.micronaut.inject.ast.ClassElement
public java.lang.String toString()
toString
in class AbstractJavaElement
public boolean isInner()
isInner
in interface io.micronaut.inject.ast.ClassElement
public boolean isRecord()
isRecord
in interface io.micronaut.inject.ast.ClassElement
@NonNull public java.util.Map<java.lang.String,io.micronaut.inject.ast.ClassElement> getTypeArguments(@NonNull java.lang.String type)
getTypeArguments
in interface io.micronaut.inject.ast.ClassElement
public boolean isPrimitive()
isPrimitive
in interface io.micronaut.inject.ast.TypedElement
public java.util.Collection<io.micronaut.inject.ast.ClassElement> getInterfaces()
getInterfaces
in interface io.micronaut.inject.ast.ClassElement
public java.util.Optional<io.micronaut.inject.ast.ClassElement> getSuperType()
getSuperType
in interface io.micronaut.inject.ast.ClassElement
public boolean isAbstract()
isAbstract
in interface io.micronaut.inject.ast.Element
isAbstract
in class AbstractJavaElement
public boolean isInterface()
isInterface
in interface io.micronaut.inject.ast.ClassElement
public java.util.List<io.micronaut.inject.ast.PropertyElement> getBeanProperties()
getBeanProperties
in interface io.micronaut.inject.ast.ClassElement
public <T extends io.micronaut.inject.ast.Element> java.util.List<T> getEnclosedElements(@NonNull io.micronaut.inject.ast.ElementQuery<T> query)
getEnclosedElements
in interface io.micronaut.inject.ast.ClassElement
public boolean isArray()
isArray
in interface io.micronaut.inject.ast.TypedElement
public int getArrayDimensions()
getArrayDimensions
in interface io.micronaut.inject.ast.TypedElement
public io.micronaut.inject.ast.ClassElement withArrayDimensions(int arrayDimensions)
withArrayDimensions
in interface io.micronaut.inject.ast.ArrayableClassElement
public java.lang.String getSimpleName()
getSimpleName
in interface io.micronaut.inject.ast.ClassElement
getSimpleName
in interface io.micronaut.inject.ast.Element
public java.lang.String getName()
getName
in interface io.micronaut.core.naming.Named
getName
in interface io.micronaut.inject.ast.Element
getName
in class AbstractJavaElement
public java.lang.String getPackageName()
getPackageName
in interface io.micronaut.inject.ast.ClassElement
public io.micronaut.inject.ast.PackageElement getPackage()
getPackage
in interface io.micronaut.inject.ast.ClassElement
public boolean isAssignable(java.lang.String type)
isAssignable
in interface io.micronaut.inject.ast.ClassElement
public boolean isAssignable(io.micronaut.inject.ast.ClassElement type)
isAssignable
in interface io.micronaut.inject.ast.ClassElement
@NonNull public java.util.Optional<io.micronaut.inject.ast.MethodElement> getPrimaryConstructor()
getPrimaryConstructor
in interface io.micronaut.inject.ast.ClassElement
public java.util.Optional<io.micronaut.inject.ast.MethodElement> getDefaultConstructor()
getDefaultConstructor
in interface io.micronaut.inject.ast.ClassElement
public java.util.Optional<io.micronaut.inject.ast.ClassElement> getEnclosingType()
getEnclosingType
in interface io.micronaut.inject.ast.ClassElement
@NonNull public java.util.List<io.micronaut.inject.ast.ClassElement> getBoundGenericTypes()
getBoundGenericTypes
in interface io.micronaut.inject.ast.ClassElement
@NonNull public java.util.List<? extends io.micronaut.inject.ast.GenericPlaceholderElement> getDeclaredGenericPlaceholders()
getDeclaredGenericPlaceholders
in interface io.micronaut.inject.ast.ClassElement
@NonNull public io.micronaut.inject.ast.ClassElement getRawClassElement()
getRawClassElement
in interface io.micronaut.inject.ast.ClassElement
@NonNull public io.micronaut.inject.ast.ClassElement withBoundGenericTypes(@NonNull java.util.List<? extends io.micronaut.inject.ast.ClassElement> typeArguments)
withBoundGenericTypes
in interface io.micronaut.inject.ast.ClassElement
@NonNull public java.util.Map<java.lang.String,io.micronaut.inject.ast.ClassElement> getTypeArguments()
getTypeArguments
in interface io.micronaut.inject.ast.ClassElement
@NonNull public java.util.Map<java.lang.String,java.util.Map<java.lang.String,io.micronaut.inject.ast.ClassElement>> getAllTypeArguments()
getAllTypeArguments
in interface io.micronaut.inject.ast.ClassElement