Package org.codehaus.janino
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
public static final class Java.FunctionDeclarator.FormalParameter extends Java.Located
Representation of a (formal) function parameter.
-
-
Field Summary
Fields Modifier and Type Field Description Java.LocalVariable
localVariable
The local variable associated with this parameter.Java.Modifier[]
modifiers
TheJava.Modifier
s of this parameter declaration.java.lang.String
name
The name of the parameter.Java.Type
type
The type of the parameter.-
Fields inherited from class org.codehaus.janino.Java.Located
NOWHERE
-
-
Constructor Summary
Constructors Constructor Description FormalParameter(Location location, Java.Modifier[] modifiers, Java.Type type, java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isFinal()
java.lang.String
toString()
java.lang.String
toString(boolean hasEllipsis)
-
Methods inherited from class org.codehaus.janino.Java.Located
getLocation, throwCompileException
-
-
-
-
Field Detail
-
modifiers
public final Java.Modifier[] modifiers
TheJava.Modifier
s of this parameter declaration.
-
type
public final Java.Type type
The type of the parameter.
-
name
public final java.lang.String name
The name of the parameter.
-
localVariable
@Nullable public Java.LocalVariable localVariable
The local variable associated with this parameter.
-
-
Constructor Detail
-
FormalParameter
public FormalParameter(Location location, Java.Modifier[] modifiers, Java.Type type, java.lang.String name)
-
-
Method Detail
-
isFinal
public boolean isFinal()
-
toString
public java.lang.String toString(boolean hasEllipsis)
- Parameters:
hasEllipsis
- Whether this is the last function parameter and has an ellipsis ("...") after the type
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-