janino.net

org.codehaus.janino
Class Java.FunctionDeclarator.FormalParameter

java.lang.Object
  extended by org.codehaus.janino.Java.Located
      extended by 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
 boolean finaL
          Whether the parameter is declared FINAL.
 Java.LocalVariable localVariable
          The local variable associated with this parameter.
 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
Java.FunctionDeclarator.FormalParameter(Location location, boolean finaL, Java.Type type, String name)
           
 
Method Summary
 String toString()
           
 String toString(boolean hasEllipsis)
           
 
Methods inherited from class org.codehaus.janino.Java.Located
getLocation, throwCompileException
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

finaL

public final boolean finaL
Whether the parameter is declared FINAL.


type

public final Java.Type type
The type of the parameter.


name

public final String name
The name of the parameter.


localVariable

public Java.LocalVariable localVariable
The local variable associated with this parameter.

Constructor Detail

Java.FunctionDeclarator.FormalParameter

public Java.FunctionDeclarator.FormalParameter(Location location,
                                               boolean finaL,
                                               Java.Type type,
                                               String name)
Method Detail

toString

public String toString(boolean hasEllipsis)
Parameters:
hasEllipsis - Whether this is the last function parameter and has an ellipsis ('...') after the type

toString

public String toString()
Overrides:
toString in class Object

janino.net