Class TypeBoundClass.MethodInfo

  • Enclosing interface:
    TypeBoundClass

    public static class TypeBoundClass.MethodInfo
    extends java.lang.Object
    A declared method.
    • Method Detail

      • name

        public java.lang.String name()
        The method name.
      • returnType

        public Type returnType()
        Type return type, possibly {#link Type#VOID}.
      • parameters

        public com.google.common.collect.ImmutableList<TypeBoundClass.ParamInfo> parameters()
        The formal parameters.
      • exceptions

        public com.google.common.collect.ImmutableList<Type> exceptions()
        Thrown exceptions.
      • access

        public int access()
        Access bits.
      • defaultValue

        public @Nullable Const defaultValue()
        The default value of an annotation interface method.
      • hasDefaultValue

        public boolean hasDefaultValue()
        Returns true for annotation members with a default value. The default value may not have been bound yet, in which case defaultValue may still return null.
      • annotations

        public com.google.common.collect.ImmutableList<AnnoInfo> annotations()
        Declaration annotations.