Class Parameter

java.lang.Object
com.github.javaparser.ast.Node
com.github.javaparser.ast.body.Parameter
All Implemented Interfaces:
NodeWithFinalModifier<Parameter>, NodeWithAnnotations<Parameter>, NodeWithModifiers<Parameter>, NodeWithRange<Node>, NodeWithSimpleName<Parameter>, NodeWithTokenRange<Node>, NodeWithType<Parameter,​Type>, Observable, Visitable, HasParentNode<Node>, Resolvable<ResolvedParameterDeclaration>, Cloneable

The parameters to a method or lambda. Lambda parameters may have inferred types, in that case "type" is UnknownType.
Note that parameters are different from arguments.
"String x" and "float y" are the parameters in int abc(String x, float y) {...}
All annotations preceding the type will be set on this object, not on the type. JavaParser doesn't know if it they are applicable to the parameter or the type.
Author:
Julio Vilmar Gesser