@Internal public class GroovyClassElement extends AbstractGroovyElement implements io.micronaut.inject.ast.ArrayableClassElement
ClassNode.| Modifier and Type | Field and Description |
|---|---|
protected org.codehaus.groovy.ast.ClassNode |
classNode |
compilationUnit, sourceUnit, visitorContext| Constructor and Description |
|---|
GroovyClassElement(GroovyVisitorContext visitorContext,
org.codehaus.groovy.ast.ClassNode classNode,
io.micronaut.core.annotation.AnnotationMetadata annotationMetadata) |
| 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<? extends 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.Map<java.lang.String,java.util.Map<java.lang.String,org.codehaus.groovy.ast.ClassNode>> |
getGenericTypeInfo()
Builds and returns the generic type information.
|
java.util.Collection<io.micronaut.inject.ast.ClassElement> |
getInterfaces() |
java.util.Set<io.micronaut.inject.ast.ElementModifier> |
getModifiers() |
java.lang.String |
getName() |
java.lang.Object |
getNativeType() |
io.micronaut.inject.ast.PackageElement |
getPackage() |
java.lang.String |
getPackageName() |
java.util.Optional<io.micronaut.inject.ast.MethodElement> |
getPrimaryConstructor() |
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 |
isFinal() |
boolean |
isInner() |
boolean |
isInterface() |
boolean |
isPrimitive() |
boolean |
isPrivate() |
boolean |
isProtected() |
boolean |
isPublic() |
boolean |
isStatic() |
boolean |
isTypeVariable() |
protected io.micronaut.inject.ast.ClassElement |
toClassElement(org.codehaus.groovy.ast.ClassNode classNode) |
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) |
alignNewGenericsInfo, annotate, annotate, equals, getAnnotationMetadata, getGenericElement, hashCode, isPackagePrivate, removeAnnotation, removeAnnotationIf, removeStereotype, resolveAnnotationMetadata, resolveModifiers, resolveModifiers, resolveModifiersclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAssociatedBean, foldBoundGenericTypes, getCanonicalName, getEnclosedElement, getFields, getFields, getFirstTypeArgument, getRawClassElement, getType, getTypeArguments, isAssignable, isEnum, isGenericPlaceholder, isIterable, isOptional, isProxy, isRecord, isWildcard, of, of, of, of, of, ofannotate, annotate, annotate, annotate, annotate, getDescription, getDescription, getDocumentation, isPackagePrivate, 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, isDeclaredAnnotationPresentpublic GroovyClassElement(GroovyVisitorContext visitorContext, org.codehaus.groovy.ast.ClassNode classNode, io.micronaut.core.annotation.AnnotationMetadata annotationMetadata)
visitorContext - The visitor contextclassNode - The ClassNodeannotationMetadata - The annotation metadatapublic boolean isTypeVariable()
isTypeVariable 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 java.util.Set<io.micronaut.inject.ast.ElementModifier> getModifiers()
getModifiers in interface io.micronaut.inject.ast.Elementpublic boolean isInner()
isInner in interface io.micronaut.inject.ast.ClassElementpublic java.util.Optional<io.micronaut.inject.ast.ClassElement> getEnclosingType()
getEnclosingType in interface io.micronaut.inject.ast.ClassElementpublic boolean isInterface()
isInterface 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.ClassElement@NonNull public java.util.Optional<io.micronaut.inject.ast.MethodElement> getPrimaryConstructor()
getPrimaryConstructor in interface io.micronaut.inject.ast.ClassElement@NonNull public java.util.Optional<io.micronaut.inject.ast.MethodElement> getDefaultConstructor()
getDefaultConstructor in interface io.micronaut.inject.ast.ClassElementpublic java.util.Map<java.lang.String,java.util.Map<java.lang.String,org.codehaus.groovy.ast.ClassNode>> getGenericTypeInfo()
@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@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@NonNull public java.util.Map<java.lang.String,io.micronaut.inject.ast.ClassElement> getTypeArguments()
getTypeArguments in interface io.micronaut.inject.ast.ClassElementpublic java.util.List<io.micronaut.inject.ast.PropertyElement> getBeanProperties()
getBeanProperties in interface io.micronaut.inject.ast.ClassElementpublic boolean isArray()
isArray in interface io.micronaut.inject.ast.TypedElementpublic io.micronaut.inject.ast.ClassElement withArrayDimensions(int arrayDimensions)
withArrayDimensions in interface io.micronaut.inject.ast.ArrayableClassElementpublic int getArrayDimensions()
getArrayDimensions in interface io.micronaut.inject.ast.TypedElementpublic java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getName()
getName in interface io.micronaut.core.naming.NamedgetName in interface io.micronaut.inject.ast.Elementpublic java.lang.String getSimpleName()
getSimpleName in interface io.micronaut.inject.ast.ClassElementgetSimpleName in interface io.micronaut.inject.ast.Elementpublic 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 isAbstract()
isAbstract in interface io.micronaut.inject.ast.Elementpublic boolean isStatic()
isStatic in interface io.micronaut.inject.ast.Elementpublic boolean isPublic()
isPublic in interface io.micronaut.inject.ast.Elementpublic boolean isPrivate()
isPrivate in interface io.micronaut.inject.ast.Elementpublic boolean isFinal()
isFinal in interface io.micronaut.inject.ast.Elementpublic boolean isProtected()
isProtected in interface io.micronaut.inject.ast.Elementpublic java.lang.Object getNativeType()
getNativeType in interface io.micronaut.inject.ast.Elementpublic 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.List<? extends 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.ClassElementprotected final io.micronaut.inject.ast.ClassElement toClassElement(org.codehaus.groovy.ast.ClassNode classNode)
@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