Interface JFormalParamSymbol
-
- All Superinterfaces:
AnnotableSymbol
,JElementSymbol
,JLocalVariableSymbol
,JVariableSymbol
public interface JFormalParamSymbol extends JLocalVariableSymbol
Represents a formal parameter of aJExecutableSymbol
.- Since:
- 7.0.0
-
-
Method Summary
All 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.JExecutableSymbol
getDeclaringSymbol()
Returns the symbol declaring this parameter.default @Nullable N
tryGetNode()
Returns the node that declares this symbol.-
Methods inherited from interface net.sourceforge.pmd.lang.java.symbols.AnnotableSymbol
getDeclaredAnnotation, getDeclaredAnnotations, isAnnotationPresent
-
Methods inherited from interface net.sourceforge.pmd.lang.java.symbols.JElementSymbol
equals, getSimpleName, getTypeSystem, isUnresolved, nameEquals
-
Methods inherited from interface net.sourceforge.pmd.lang.java.symbols.JVariableSymbol
getTypeMirror, isField, isFinal
-
-
-
-
Method Detail
-
getDeclaringSymbol
JExecutableSymbol getDeclaringSymbol()
Returns the symbol declaring this parameter.
-
acceptVisitor
default <R,P> R acceptVisitor(SymbolVisitor<R,P> visitor, P param)
Description copied from interface:JElementSymbol
Dispatch to the appropriate visit method of the visitor and returns its result.- Specified by:
acceptVisitor
in interfaceJElementSymbol
- Specified by:
acceptVisitor
in interfaceJLocalVariableSymbol
-
tryGetNode
default @Nullable N tryGetNode()
Description copied from interface:JElementSymbol
Returns 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:
tryGetNode
in interfaceJElementSymbol
-
-