Package org.jf.smali

Class SmaliMethodParameter

All Implemented Interfaces:
CharSequence, Comparable<CharSequence>, LocalInfo, MethodParameter, Reference, TypeReference, WithRegister

public class SmaliMethodParameter extends BaseMethodParameter implements WithRegister
  • Field Details

    • register

      public final int register
    • type

      @Nonnull public final String type
    • annotations

      @Nonnull public Set<? extends Annotation> annotations
    • name

      @Nullable public String name
    • COMPARATOR

      public static final Comparator<WithRegister> COMPARATOR
  • Constructor Details

    • SmaliMethodParameter

      public SmaliMethodParameter(int register, @Nonnull String type)
  • Method Details

    • getRegister

      public int getRegister()
      Specified by:
      getRegister in interface WithRegister
    • getType

      @Nonnull public String getType()
      Description copied from interface: MethodParameter
      The type of this method parameter. This may be any type, including primitive or array types, other than the void (V) type.
      Specified by:
      getType in interface LocalInfo
      Specified by:
      getType in interface MethodParameter
      Specified by:
      getType in interface TypeReference
      Returns:
      The type of this method parameter
    • getAnnotations

      @Nonnull public Set<? extends Annotation> getAnnotations()
      Description copied from interface: MethodParameter
      Gets a set of the annotations that are applied to this parameter. The annotations in the returned set are guaranteed to have unique types.
      Specified by:
      getAnnotations in interface MethodParameter
      Returns:
      A set of the annotations that are applied to this parameter
    • getName

      @Nullable public String getName()
      Description copied from interface: MethodParameter
      Gets the name of this parameter, if available.
      Specified by:
      getName in interface LocalInfo
      Specified by:
      getName in interface MethodParameter
      Returns:
      The name of this parameter, or null if the name is not available.
    • getSignature

      @Nullable public String getSignature()
      Description copied from interface: MethodParameter
      Gets the signature of this parameter, if available. The signature of a parameter is defined to be the concatenated version of the dalvik.annotation.Signature annotation applied to this parameter, or null if there is no dalvik.annotation.Signature annotation.
      Specified by:
      getSignature in interface LocalInfo
      Specified by:
      getSignature in interface MethodParameter
      Overrides:
      getSignature in class BaseMethodParameter
      Returns:
      The signature of this parameter, or null if not available