@Internal public class JavaMethodElement extends AbstractJavaElement implements io.micronaut.inject.ast.MethodElement
ExecutableElement.| Modifier and Type | Field and Description |
|---|---|
protected JavaClassElement |
declaringClass |
protected javax.lang.model.element.ExecutableElement |
executableElement |
protected JavaVisitorContext |
visitorContext |
| Constructor and Description |
|---|
JavaMethodElement(JavaClassElement declaringClass,
javax.lang.model.element.ExecutableElement executableElement,
io.micronaut.core.annotation.AnnotationMetadata annotationMetadata,
JavaVisitorContext visitorContext) |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<? extends io.micronaut.inject.ast.GenericPlaceholderElement> |
getDeclaredTypeVariables() |
io.micronaut.inject.ast.ClassElement |
getDeclaringType() |
java.util.Optional<java.lang.String> |
getDocumentation() |
io.micronaut.inject.ast.ClassElement |
getGenericReturnType() |
io.micronaut.inject.ast.ClassElement |
getOwningType() |
io.micronaut.inject.ast.ParameterElement[] |
getParameters() |
java.util.Optional<io.micronaut.inject.ast.ClassElement> |
getReceiverType() |
io.micronaut.inject.ast.ClassElement |
getReturnType() |
io.micronaut.inject.ast.ParameterElement[] |
getSuspendParameters() |
io.micronaut.inject.ast.ClassElement[] |
getThrownTypes() |
boolean |
isDefault() |
boolean |
isSuspend() |
protected io.micronaut.annotation.processing.visitor.JavaParameterElement |
newParameterElement(javax.lang.model.element.VariableElement variableElement,
io.micronaut.core.annotation.AnnotationMetadata annotationMetadata)
Creates a new parameter element for the given args.
|
boolean |
overrides(io.micronaut.inject.ast.MethodElement methodElement) |
protected io.micronaut.inject.ast.ClassElement |
returnType(java.util.Map<java.lang.String,java.util.Map<java.lang.String,javax.lang.model.type.TypeMirror>> info)
The return type for the given info.
|
io.micronaut.inject.ast.MethodElement |
withNewParameters(io.micronaut.inject.ast.ParameterElement... newParameters) |
annotate, annotate, equals, getAnnotationMetadata, getModifiers, getName, getNativeType, hashCode, isAbstract, isFinal, isPackagePrivate, isPrivate, isProtected, isPublic, isStatic, mirrorToClassElement, mirrorToClassElement, mirrorToClassElement, mirrorToClassElement, parameterizedClassElement, removeAnnotation, removeAnnotationIf, removeStereotype, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaddAssociatedBean, getDescription, hasParameters, ofannotate, annotate, annotate, annotate, annotate, getDescription, getName, getNativeType, getSimpleName, isAbstract, 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, 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, synthesizeDeclaredAnnotationsByTypegetAnnotationValuesByName, getDeclaredAnnotationValuesByName, getValues, hasDeclaredStereotype, isAnnotationPresent, isDeclaredAnnotationPresentprotected final JavaClassElement declaringClass
protected final javax.lang.model.element.ExecutableElement executableElement
protected final JavaVisitorContext visitorContext
public JavaMethodElement(JavaClassElement declaringClass, javax.lang.model.element.ExecutableElement executableElement, io.micronaut.core.annotation.AnnotationMetadata annotationMetadata, JavaVisitorContext visitorContext)
declaringClass - The declaring classexecutableElement - The ExecutableElementannotationMetadata - The annotation metadatavisitorContext - The visitor contextpublic java.util.Optional<io.micronaut.inject.ast.ClassElement> getReceiverType()
getReceiverType in interface io.micronaut.inject.ast.MethodElement@NonNull public io.micronaut.inject.ast.ClassElement[] getThrownTypes()
getThrownTypes in interface io.micronaut.inject.ast.MethodElementpublic boolean isDefault()
isDefault in interface io.micronaut.inject.ast.MethodElementpublic boolean overrides(io.micronaut.inject.ast.MethodElement methodElement)
overrides in interface io.micronaut.inject.ast.MethodElement@NonNull public io.micronaut.inject.ast.ClassElement getGenericReturnType()
getGenericReturnType in interface io.micronaut.inject.ast.MethodElement@NonNull public io.micronaut.inject.ast.ClassElement getReturnType()
getReturnType in interface io.micronaut.inject.ast.MethodElementpublic java.util.List<? extends io.micronaut.inject.ast.GenericPlaceholderElement> getDeclaredTypeVariables()
getDeclaredTypeVariables in interface io.micronaut.inject.ast.MethodElementpublic java.util.Optional<java.lang.String> getDocumentation()
getDocumentation in interface io.micronaut.inject.ast.Elementpublic boolean isSuspend()
isSuspend in interface io.micronaut.inject.ast.MethodElementpublic io.micronaut.inject.ast.ParameterElement[] getParameters()
getParameters in interface io.micronaut.inject.ast.MethodElementpublic io.micronaut.inject.ast.MethodElement withNewParameters(io.micronaut.inject.ast.ParameterElement... newParameters)
withNewParameters in interface io.micronaut.inject.ast.MethodElementpublic io.micronaut.inject.ast.ParameterElement[] getSuspendParameters()
getSuspendParameters in interface io.micronaut.inject.ast.MethodElement@NonNull
protected io.micronaut.annotation.processing.visitor.JavaParameterElement newParameterElement(@NonNull
javax.lang.model.element.VariableElement variableElement,
@NonNull
io.micronaut.core.annotation.AnnotationMetadata annotationMetadata)
variableElement - The variable elementannotationMetadata - The annotation metadatapublic io.micronaut.inject.ast.ClassElement getDeclaringType()
getDeclaringType in interface io.micronaut.inject.ast.MemberElementpublic io.micronaut.inject.ast.ClassElement getOwningType()
getOwningType in interface io.micronaut.inject.ast.MemberElementprotected io.micronaut.inject.ast.ClassElement returnType(java.util.Map<java.lang.String,java.util.Map<java.lang.String,javax.lang.model.type.TypeMirror>> info)
info - The info