Interface ResolvedParameterDeclaration

All Superinterfaces:
ResolvedDeclaration, ResolvedValueDeclaration

public interface ResolvedParameterDeclaration extends ResolvedValueDeclaration
Declaration of a parameter.
Author:
Federico Tomassetti
  • Method Details

    • isParameter

      default boolean isParameter()
      Description copied from interface: ResolvedDeclaration
      Does this declaration represents a method parameter?
      Specified by:
      isParameter in interface ResolvedDeclaration
    • hasName

      default boolean hasName()
      Necessary because parameters obtained through reflection could not have a name.
      Specified by:
      hasName in interface ResolvedDeclaration
    • asParameter

      default ResolvedParameterDeclaration asParameter()
      Description copied from interface: ResolvedDeclaration
      Return this as a ParameterDeclaration or throw an UnsupportedOperationException
      Specified by:
      asParameter in interface ResolvedDeclaration
    • isVariadic

      boolean isVariadic()
      Is this parameter declared as variadic?
    • describeType

      default String describeType()
      Describe the type of the parameter. In practice add three dots to the type name if the parameter is variadic.