Package io.codemodder.ast
Class ParameterDeclaration
java.lang.Object
io.codemodder.ast.ParameterDeclaration
- All Implemented Interfaces:
LocalDeclaration
Represents the declaration of a parameter in a method, constructor, lambda expression, and catch
clause.
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.codemodder.ast.LocalDeclaration
findAllMethodCalls, findAllReferences, isReference
-
Constructor Details
-
ParameterDeclaration
public ParameterDeclaration(com.github.javaparser.ast.body.Parameter parameter)
-
-
Method Details
-
getScope
Description copied from interface:LocalDeclaration
The scope of this declaration.- Specified by:
getScope
in interfaceLocalDeclaration
-
getName
Description copied from interface:LocalDeclaration
Returns the name used in this declaration as a String.- Specified by:
getName
in interfaceLocalDeclaration
-
getDeclaration
public com.github.javaparser.ast.body.Parameter getDeclaration()Description copied from interface:LocalDeclaration
The node where the declaration occurs.- Specified by:
getDeclaration
in interfaceLocalDeclaration
-
toString
-