Interface JMethodSymbol
- All Superinterfaces:
AnnotableSymbol,JAccessibleElementSymbol,JElementSymbol,JExecutableSymbol,JTypeParameterOwnerSymbol
Reference to a method.
- Since:
- 7.0.0
-
Field Summary
Fields inherited from interface net.sourceforge.pmd.lang.java.symbols.JAccessibleElementSymbol
PRIMITIVE_PACKAGE -
Method Summary
Modifier and TypeMethodDescriptiondefault <R,P> R acceptVisitor(SymbolVisitor<R, P> visitor, P param) Dispatch to the appropriate visit method of the visitor and returns its result.default @Nullable SymbolicValueReturns the default value, if this is a constant method.default booleanReturn whether this method defines an attribute of the enclosing annotation type.booleanisBridge()default booleanisStatic()default ASTMethodDeclarationReturns the node that declares this symbol.Methods inherited from interface net.sourceforge.pmd.lang.java.symbols.AnnotableSymbol
getDeclaredAnnotation, getDeclaredAnnotations, isAnnotationPresentMethods inherited from interface net.sourceforge.pmd.lang.java.symbols.JAccessibleElementSymbol
getModifiersMethods inherited from interface net.sourceforge.pmd.lang.java.symbols.JElementSymbol
equals, getSimpleName, getTypeSystem, isUnresolved, nameEqualsMethods inherited from interface net.sourceforge.pmd.lang.java.symbols.JExecutableSymbol
getAnnotatedReceiverType, getArity, getEnclosingClass, getFormalParameters, getFormalParameterTypes, getGenericSignature, getPackageName, getReturnType, getThrownExceptionTypes, hasReceiver, isDefaultMethod, isVarargsMethods inherited from interface net.sourceforge.pmd.lang.java.symbols.JTypeParameterOwnerSymbol
getEnclosingTypeParameterOwner, getLexicalScope, getTypeParameterCount, getTypeParameters, isGeneric
-
Method Details
-
isBridge
boolean isBridge() -
isStatic
default boolean isStatic()- Specified by:
isStaticin interfaceJAccessibleElementSymbol
-
getDefaultAnnotationValue
Returns the default value, if this is a constant method. SeeSymbolicValuefor current limitations -
isAnnotationAttribute
default boolean isAnnotationAttribute()Return whether this method defines an attribute of the enclosing annotation type. -
acceptVisitor
Description copied from interface:JElementSymbolDispatch to the appropriate visit method of the visitor and returns its result.- Specified by:
acceptVisitorin interfaceJElementSymbol
-
tryGetNode
Description copied from interface:JElementSymbolReturns the node that declares this symbol. Eg forJMethodSymbol, it's anASTMethodDeclaration. Will only return non-null if the symbol is declared in the file currently being analysed.- Specified by:
tryGetNodein interfaceJElementSymbol
-