Interface JFormalParamSymbol
- All Superinterfaces:
AnnotableSymbol,JElementSymbol,JLocalVariableSymbol,JVariableSymbol
Represents a formal parameter of a
JExecutableSymbol.- Since:
- 7.0.0
-
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.Returns the symbol declaring this parameter.default ASTVariableIdReturns 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.JElementSymbol
equals, getSimpleName, getTypeSystem, isUnresolved, nameEqualsMethods inherited from interface net.sourceforge.pmd.lang.java.symbols.JVariableSymbol
getTypeMirror, isField, isFinal
-
Method Details
-
getDeclaringSymbol
JExecutableSymbol getDeclaringSymbol()Returns the symbol declaring this parameter. -
acceptVisitor
Description copied from interface:JElementSymbolDispatch to the appropriate visit method of the visitor and returns its result.- Specified by:
acceptVisitorin interfaceJElementSymbol- Specified by:
acceptVisitorin interfaceJLocalVariableSymbol
-
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
-