Class ImmutableMethodReference

    • Field Detail

      • definingClass

        @Nonnull
        protected final java.lang.String definingClass
      • name

        @Nonnull
        protected final java.lang.String name
      • parameters

        @Nonnull
        protected final com.google.common.collect.ImmutableList<java.lang.String> parameters
      • returnType

        @Nonnull
        protected final java.lang.String returnType
    • Constructor Detail

      • ImmutableMethodReference

        public ImmutableMethodReference​(@Nonnull
                                        java.lang.String definingClass,
                                        @Nonnull
                                        java.lang.String name,
                                        @Nullable
                                        java.lang.Iterable<? extends java.lang.CharSequence> parameters,
                                        @Nonnull
                                        java.lang.String returnType)
      • ImmutableMethodReference

        public ImmutableMethodReference​(@Nonnull
                                        java.lang.String definingClass,
                                        @Nonnull
                                        java.lang.String name,
                                        @Nullable
                                        com.google.common.collect.ImmutableList<java.lang.String> parameters,
                                        @Nonnull
                                        java.lang.String returnType)
    • Method Detail

      • getDefiningClass

        @Nonnull
        public java.lang.String getDefiningClass()
        Description copied from interface: MethodReference
        Gets the type of the class that defines the referenced method.
        Specified by:
        getDefiningClass in interface MethodReference
        Returns:
        The type of the class that defines the referenced method
      • getName

        @Nonnull
        public java.lang.String getName()
        Description copied from interface: MethodReference
        Gets the name of the referenced method.
        Specified by:
        getName in interface MethodReference
        Returns:
        The name of the referenced method
      • getParameterTypes

        @Nonnull
        public com.google.common.collect.ImmutableList<java.lang.String> getParameterTypes()
        Description copied from interface: MethodReference
        Gets a list of the types of the parameters of this method.
        Specified by:
        getParameterTypes in interface MethodReference
        Returns:
        A list of the parameter types of this method, as strings.
      • getReturnType

        @Nonnull
        public java.lang.String getReturnType()
        Description copied from interface: MethodReference
        Gets the return type of the referenced method.
        Specified by:
        getReturnType in interface MethodReference
        Returns:
        The return type of the referenced method.