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 Details

    • modifiers

      public final Java.Modifier[] modifiers
      The Java.Modifiers of this parameter declaration.
    • type

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

      public final String name
      The name of the parameter.
    • localVariable

      @Nullable public Java.LocalVariable localVariable
      The local variable associated with this parameter.
  • Constructor Details

  • Method Details

    • isFinal

      public boolean isFinal()
    • 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