Interface Parameter

All Superinterfaces:
Variable

public interface Parameter extends Variable
Represents a method parameter. Note that the most commonly used features are inherited from the Variable interface.
  • Method Details

    • name

      Parameter name(String name)
      Optionally assign a parameter name.
      Specified by:
      name in interface Variable
      Returns:
      this parameter
      Throws:
      IllegalStateException - if already named
    • signature

      Parameter signature(Object... components)
      Define a signature for this named parameter, which is a string for supporting generic types. The components can be strings or types (class, ClassMaker, etc.), which are concatenated into a single string. Consult the JVM specification for the signature syntax.
      Specified by:
      signature in interface Variable
      Returns:
      this
      Throws:
      IllegalArgumentException - if given an unsupported component
    • final_

      Parameter final_()
      Indicate that this parameter is final.
      Returns:
      this
    • synthetic

      Parameter synthetic()
      Indicate that this parameter is synthetic, which means that it wasn't implicitly or explicitly declared.
      Returns:
      this
    • mandated

      Parameter mandated()
      Indicate that this parameter is mandated, which means that the compiler has implicitly declared it by necessity.
      Returns:
      this