Class ParameterDescription.AbstractBase

java.lang.Object
net.bytebuddy.description.ModifierReviewable.AbstractBase
net.bytebuddy.description.method.ParameterDescription.AbstractBase
All Implemented Interfaces:
AnnotationSource, ByteCodeElement.TypeDependant<ParameterDescription.InDefinedShape,ParameterDescription.Token>, ParameterDescription, ModifierReviewable, ModifierReviewable.ForFieldDescription, ModifierReviewable.ForMethodDescription, ModifierReviewable.ForParameterDescription, ModifierReviewable.ForTypeDefinition, ModifierReviewable.OfAbstraction, ModifierReviewable.OfByteCodeElement, ModifierReviewable.OfEnumeration, NamedElement, NamedElement.WithOptionalName, NamedElement.WithRuntimeName
Direct Known Subclasses:
ParameterDescription.InDefinedShape.AbstractBase, ParameterDescription.TypeSubstituting, Transformer.ForMethod.TransformedMethod.TransformedParameter
Enclosing interface:
ParameterDescription

public abstract static class ParameterDescription.AbstractBase extends ModifierReviewable.AbstractBase implements ParameterDescription
A base implementation of a method parameter description.
  • Constructor Details

    • AbstractBase

      public AbstractBase()
  • Method Details

    • getName

      public String getName()
      Returns the binary name of this byte code element. If no well-defined internal name is known for this element, the actual name is returned.
      Specified by:
      getName in interface NamedElement.WithRuntimeName
      Returns:
      The binary ame of this byte code element as visible from within a running Java application.
    • getInternalName

      public String getInternalName()
      Returns the internal name of this byte code element. If no well-defined internal name is known for this element, the actual name is returned.
      Specified by:
      getInternalName in interface NamedElement.WithRuntimeName
      Returns:
      The internal name of this byte code element as used within the Java class file format.
    • getActualName

      public String getActualName()
      Returns the display name of this element as it is found in the source code. If no such name exists, an empty string is returned.
      Specified by:
      getActualName in interface NamedElement
      Returns:
      The name of this element as given in a Java program's source code.
    • getModifiers

      public int getModifiers()
      Returns the modifier that is described by this object.
      Specified by:
      getModifiers in interface ModifierReviewable
      Returns:
      The modifier that is described by this object.
    • getOffset

      public int getOffset()
      Returns the offset to the parameter value within the local method variable.
      Specified by:
      getOffset in interface ParameterDescription
      Returns:
      The offset of this parameter's value.
    • asToken

      public ParameterDescription.Token asToken(ElementMatcher<? super TypeDescription> matcher)
      Returns a token representative of this type dependant. All types that are matched by the supplied matcher are replaced by TargetType descriptions.
      Specified by:
      asToken in interface ByteCodeElement.TypeDependant<ParameterDescription.InDefinedShape,ParameterDescription.Token>
      Parameters:
      matcher - A matcher to identify types to be replaced by TargetType descriptions.
      Returns:
      A token representative of this type dependant.
    • hashCode

      @Enhance("hashCode") public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(@MaybeNull Object other)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object