@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, removeStereotypeclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAssociatedBean, foldBoundGenericTypes, getCanonicalName, getEnclosedElement, getFields, getFields, getFirstTypeArgument, getType, getTypeArguments, isAssignable, isEnum, isGenericPlaceholder, isIterable, isOptional, isProxy, isWildcard, of, of, of, of, of, ofannotate, annotate, annotate, annotate, annotate, getDescription, getDescription, getDocumentation, getModifiers, getNativeType, isFinal, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, removeAnnotation, removeAnnotation, removeAnnotationIf, removeStereotype, removeStereotypebooleanValue, 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, getDeclaredStereotypeAnnotationNames, getDefaultValue, getDefaultValue, getDefaultValue, getDefaultValue, getDefaultValues, getStereotypeAnnotationNames, 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, synthesizeDeclaredAnnotationsByTypegetAnnotationValuesByName, getDeclaredAnnotationValuesByName, getValues, hasDeclaredStereotype, isAnnotationPresent, isDeclaredAnnotationPresentprotected 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 TypeElementannotationMetadata - The annotation metadatavisitorContext - The visitor contextpublic boolean isTypeVariable()
isTypeVariable in interface io.micronaut.inject.ast.ClassElementpublic java.lang.String toString()
toString in class AbstractJavaElementpublic boolean isInner()
isInner in interface io.micronaut.inject.ast.ClassElementpublic 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.ClassElementpublic boolean isPrimitive()
isPrimitive in interface io.micronaut.inject.ast.TypedElementpublic java.util.Collection<io.micronaut.inject.ast.ClassElement> getInterfaces()
getInterfaces in interface io.micronaut.inject.ast.ClassElementpublic java.util.Optional<io.micronaut.inject.ast.ClassElement> getSuperType()
getSuperType in interface io.micronaut.inject.ast.ClassElementpublic boolean isAbstract()
isAbstract in interface io.micronaut.inject.ast.ElementisAbstract in class AbstractJavaElementpublic boolean isInterface()
isInterface in interface io.micronaut.inject.ast.ClassElementpublic java.util.List<io.micronaut.inject.ast.PropertyElement> getBeanProperties()
getBeanProperties in interface io.micronaut.inject.ast.ClassElementpublic <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.ClassElementpublic boolean isArray()
isArray in interface io.micronaut.inject.ast.TypedElementpublic int getArrayDimensions()
getArrayDimensions in interface io.micronaut.inject.ast.TypedElementpublic io.micronaut.inject.ast.ClassElement withArrayDimensions(int arrayDimensions)
withArrayDimensions in interface io.micronaut.inject.ast.ArrayableClassElementpublic java.lang.String getSimpleName()
getSimpleName in interface io.micronaut.inject.ast.ClassElementgetSimpleName in interface io.micronaut.inject.ast.Elementpublic java.lang.String getName()
getName in interface io.micronaut.core.naming.NamedgetName in interface io.micronaut.inject.ast.ElementgetName in class AbstractJavaElementpublic java.lang.String getPackageName()
getPackageName in interface io.micronaut.inject.ast.ClassElementpublic io.micronaut.inject.ast.PackageElement getPackage()
getPackage in interface io.micronaut.inject.ast.ClassElementpublic boolean isAssignable(java.lang.String type)
isAssignable in interface io.micronaut.inject.ast.ClassElementpublic 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.ClassElementpublic java.util.Optional<io.micronaut.inject.ast.MethodElement> getDefaultConstructor()
getDefaultConstructor in interface io.micronaut.inject.ast.ClassElementpublic 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