Class ImmutableMethodParameter

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

public class ImmutableMethodParameter extends BaseMethodParameter
  • Field Details

  • Constructor Details

    • ImmutableMethodParameter

      public ImmutableMethodParameter(@Nonnull String type, @Nullable Set<? extends Annotation> annotations, @Nullable String name)
    • ImmutableMethodParameter

      public ImmutableMethodParameter(@Nonnull String type, @Nullable com.google.common.collect.ImmutableSet<? extends ImmutableAnnotation> annotations, @Nullable String name)
  • Method Details

    • of

      public static ImmutableMethodParameter of(MethodParameter methodParameter)
    • 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.
      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.
      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.
      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
    • immutableListOf

      @Nonnull public static com.google.common.collect.ImmutableList<ImmutableMethodParameter> immutableListOf(@Nullable Iterable<? extends MethodParameter> list)