Interface JMethodSymbol
- 
- All Superinterfaces:
- AnnotableSymbol,- JAccessibleElementSymbol,- JElementSymbol,- JExecutableSymbol,- JTypeParameterOwnerSymbol
 
 public interface JMethodSymbol extends JExecutableSymbol Reference to a method.- Since:
- 7.0.0
 
- 
- 
Field Summary- 
Fields inherited from interface net.sourceforge.pmd.lang.java.symbols.JAccessibleElementSymbolPRIMITIVE_PACKAGE
 
- 
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default <R,P>
 RacceptVisitor(SymbolVisitor<R,P> visitor, P param)Dispatch to the appropriate visit method of the visitor and returns its result.default @Nullable SymbolicValuegetDefaultAnnotationValue()Returns the default value, if this is a constant method.JTypeMirrorgetReturnType(Substitution subst)Returns the return type under the given substitution.default booleanisAnnotationAttribute()Return whether this method defines an attribute of the enclosing annotation type.booleanisBridge()default booleanisStatic()default @Nullable NtryGetNode()Returns the node that declares this symbol.- 
Methods inherited from interface net.sourceforge.pmd.lang.java.symbols.AnnotableSymbolgetDeclaredAnnotation, getDeclaredAnnotations, isAnnotationPresent
 - 
Methods inherited from interface net.sourceforge.pmd.lang.java.symbols.JAccessibleElementSymbolgetModifiers
 - 
Methods inherited from interface net.sourceforge.pmd.lang.java.symbols.JElementSymbolequals, getSimpleName, getTypeSystem, isUnresolved, nameEquals
 - 
Methods inherited from interface net.sourceforge.pmd.lang.java.symbols.JExecutableSymbolgetAnnotatedReceiverType, getArity, getEnclosingClass, getFormalParameters, getFormalParameterTypes, getPackageName, getThrownExceptionTypes, hasReceiver, isDefaultMethod, isVarargs
 - 
Methods inherited from interface net.sourceforge.pmd.lang.java.symbols.JTypeParameterOwnerSymbolgetEnclosingTypeParameterOwner, getLexicalScope, getTypeParameterCount, getTypeParameters, isGeneric
 
- 
 
- 
- 
- 
Method Detail- 
isBridgeboolean isBridge() 
 - 
isStaticdefault boolean isStatic() - Specified by:
- isStaticin interface- JAccessibleElementSymbol
 
 - 
getReturnTypeJTypeMirror getReturnType(Substitution subst) Returns the return type under the given substitution.
 - 
getDefaultAnnotationValuedefault @Nullable SymbolicValue getDefaultAnnotationValue() Returns the default value, if this is a constant method. SeeSymbolicValuefor current limitations
 - 
isAnnotationAttributedefault boolean isAnnotationAttribute() Return whether this method defines an attribute of the enclosing annotation type.
 - 
acceptVisitordefault <R,P> R acceptVisitor(SymbolVisitor<R,P> visitor, P param) Description copied from interface:JElementSymbolDispatch to the appropriate visit method of the visitor and returns its result.- Specified by:
- acceptVisitorin interface- JElementSymbol
 
 - 
tryGetNodedefault @Nullable N 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 interface- JElementSymbol
 
 
- 
 
-