Class Type.MethodTy

  • All Implemented Interfaces:
    Type
    Enclosing interface:
    Type

    public abstract static class Type.MethodTy
    extends java.lang.Object
    implements Type
    A method type.
    • Constructor Detail

      • MethodTy

        public MethodTy()
    • Method Detail

      • tyParams

        public abstract com.google.common.collect.ImmutableSet<TyVarSymbol> tyParams()
      • returnType

        public abstract Type returnType()
      • receiverType

        public abstract @Nullable Type receiverType()
        The type of the receiver parameter (see JLS 8.4.1).
      • parameters

        public abstract com.google.common.collect.ImmutableList<Type> parameters()
      • thrown

        public abstract com.google.common.collect.ImmutableList<Type> thrown()
      • create

        public static Type.MethodTy create​(com.google.common.collect.ImmutableSet<TyVarSymbol> tyParams,
                                           Type returnType,
                                           Type receiverType,
                                           com.google.common.collect.ImmutableList<Type> parameters,
                                           com.google.common.collect.ImmutableList<Type> thrown)
      • tyKind

        public Type.TyKind tyKind()
        Description copied from interface: Type
        The type kind.
        Specified by:
        tyKind in interface Type
      • toString

        public final java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        @Memoized
        public abstract int hashCode()
        Overrides:
        hashCode in class java.lang.Object