@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, resolveModifiers
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAssociatedBean, foldBoundGenericTypes, getCanonicalName, getEnclosedElement, getFields, getFields, getFirstTypeArgument, getRawClassElement, getType, getTypeArguments, isAssignable, isEnum, isGenericPlaceholder, isIterable, isOptional, isProxy, isRecord, isWildcard, of, of, of, of, of, of
annotate, annotate, annotate, annotate, annotate, getDescription, getDescription, getDocumentation, isPackagePrivate, 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
public GroovyClassElement(GroovyVisitorContext visitorContext, org.codehaus.groovy.ast.ClassNode classNode, io.micronaut.core.annotation.AnnotationMetadata annotationMetadata)
visitorContext
- The visitor contextclassNode
- The ClassNode
annotationMetadata
- The annotation metadatapublic boolean isTypeVariable()
isTypeVariable
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 java.util.Set<io.micronaut.inject.ast.ElementModifier> getModifiers()
getModifiers
in interface io.micronaut.inject.ast.Element
public boolean isInner()
isInner
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
public boolean isInterface()
isInterface
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
@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.ClassElement
public 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.ClassElement
public java.util.List<io.micronaut.inject.ast.PropertyElement> getBeanProperties()
getBeanProperties
in interface io.micronaut.inject.ast.ClassElement
public boolean isArray()
isArray
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 int getArrayDimensions()
getArrayDimensions
in interface io.micronaut.inject.ast.TypedElement
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getName()
getName
in interface io.micronaut.core.naming.Named
getName
in interface io.micronaut.inject.ast.Element
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 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 isAbstract()
isAbstract
in interface io.micronaut.inject.ast.Element
public boolean isStatic()
isStatic
in interface io.micronaut.inject.ast.Element
public boolean isPublic()
isPublic
in interface io.micronaut.inject.ast.Element
public boolean isPrivate()
isPrivate
in interface io.micronaut.inject.ast.Element
public boolean isFinal()
isFinal
in interface io.micronaut.inject.ast.Element
public boolean isProtected()
isProtected
in interface io.micronaut.inject.ast.Element
public java.lang.Object getNativeType()
getNativeType
in interface io.micronaut.inject.ast.Element
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.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.ClassElement
protected 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