Class TypePool.Default.LazyTypeDescription.MethodToken.ParameterToken

java.lang.Object
net.bytebuddy.pool.TypePool.Default.LazyTypeDescription.MethodToken.ParameterToken
Enclosing class:
TypePool.Default.LazyTypeDescription.MethodToken

@Enhance protected static class TypePool.Default.LazyTypeDescription.MethodToken.ParameterToken extends Object
A token representing a method's parameter.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final Integer
    The modifiers of the parameter or null if no modifiers are known for this parameter.
    private final String
    The name of the parameter or null if no explicit name for this parameter is known.
    protected static final Integer
    Donates an unknown modifier of a parameter.
    protected static final String
    Donates an unknown name of a parameter.
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Creates a parameter token for a parameter without an explicit name and without specific modifiers.
    protected
    Creates a parameter token for a parameter with an explicit name and without specific modifiers.
    protected
    ParameterToken(String name, Integer modifiers)
    Creates a parameter token for a parameter with an explicit name and with specific modifiers.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected Integer
    Returns the modifiers of the parameter or null if no modifiers are known.
    protected String
    Returns the name of the parameter or null if there is no such name.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • ParameterToken

      protected ParameterToken()
      Creates a parameter token for a parameter without an explicit name and without specific modifiers.
    • ParameterToken

      protected ParameterToken(@MaybeNull String name)
      Creates a parameter token for a parameter with an explicit name and without specific modifiers.
      Parameters:
      name - The name of the parameter.
    • ParameterToken

      protected ParameterToken(@MaybeNull String name, @MaybeNull Integer modifiers)
      Creates a parameter token for a parameter with an explicit name and with specific modifiers.
      Parameters:
      name - The name of the parameter.
      modifiers - The modifiers of the parameter.
  • Method Details

    • getName

      @MaybeNull protected String getName()
      Returns the name of the parameter or null if there is no such name.
      Returns:
      The name of the parameter or null if there is no such name.
    • getModifiers

      @MaybeNull protected Integer getModifiers()
      Returns the modifiers of the parameter or null if no modifiers are known.
      Returns:
      The modifiers of the parameter or null if no modifiers are known.