Class Java.FunctionDeclarator.FormalParameter
java.lang.Object
org.codehaus.janino.Java.Located
org.codehaus.janino.Java.FunctionDeclarator.FormalParameter
- All Implemented Interfaces:
Java.Locatable
- Enclosing class:
Java.FunctionDeclarator
Representation of a (formal) function parameter.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe local variable associated with this parameter.final Java.Modifier[]TheJava.Modifiers of this parameter declaration.final StringThe name of the parameter.final Java.TypeThe type of the parameter.Fields inherited from class Java.Located
NOWHERE -
Constructor Summary
ConstructorsConstructorDescriptionFormalParameter(Location location, Java.Modifier[] modifiers, Java.Type type, String name) -
Method Summary
Methods inherited from class Java.Located
getLocation, throwCompileException
-
Field Details
-
modifiers
TheJava.Modifiers of this parameter declaration. -
type
The type of the parameter. -
name
The name of the parameter. -
localVariable
The local variable associated with this parameter.
-
-
Constructor Details
-
FormalParameter
-
-
Method Details
-
isFinal
public boolean isFinal() -
toString
- Parameters:
hasEllipsis- Whether this is the last function parameter and has an ellipsis ("...") after the type
-
toString
-