Class ParameterFactory.MessageMethodParameter

    • Constructor Detail

      • MessageMethodParameter

        private MessageMethodParameter​(MessageMethod messageMethod)
    • Method Detail

      • getDelegate

        public javax.lang.model.element.Element getDelegate()
        Description copied from interface: DelegatingElement
        The element to delegate the default methods to.
        Specified by:
        getDelegate in interface DelegatingElement
        Returns:
        the delegate
      • formatterClass

        public java.lang.String formatterClass()
        Description copied from interface: Parameter
        The formatter class, or null if there is none.
        Specified by:
        formatterClass in interface Parameter
        Returns:
        the formatter class
      • targetName

        public java.lang.String targetName()
        Description copied from interface: Parameter
        Returns the name of the target field or method. For example if the parameter is annotated with @Field the target name is the name of the field to set on the return type. If no target name is defined an empty String is returned.
        Specified by:
        targetName in interface Parameter
        Returns:
        the target field name, method name or an empty string.
      • name

        public java.lang.String name()
        Description copied from interface: Parameter
        The variable name of the parameter.
        Specified by:
        name in interface Parameter
        Returns:
        the variable name of the parameter.
      • isArray

        public boolean isArray()
        Description copied from interface: Parameter
        Returns true if the type is an array, otherwise false.
        Specified by:
        isArray in interface Parameter
        Returns:
        true if an array, otherwise false
      • isPrimitive

        public boolean isPrimitive()
        Description copied from interface: Parameter
        Returns true if the type is a primitive type, otherwise false.
        Specified by:
        isPrimitive in interface Parameter
        Returns:
        true if primitive type, otherwise false
      • isVarArgs

        public boolean isVarArgs()
        Description copied from interface: Parameter
        Returns true if the parameter is a var args parameter, otherwise false.
        Specified by:
        isVarArgs in interface Parameter
        Returns:
        true if var args parameter, otherwise false.
      • isMessageMethod

        public boolean isMessageMethod()
        Description copied from interface: Parameter
        Indicates whether or not this parameter represents the message method.
        Specified by:
        isMessageMethod in interface Parameter
        Returns:
        true if this is the message method parameter
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface javax.lang.model.element.Element
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface javax.lang.model.element.Element
        Overrides:
        equals in class java.lang.Object
      • compareTo

        public int compareTo​(Parameter other)
        Specified by:
        compareTo in interface java.lang.Comparable<Parameter>
      • toString

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

        public boolean isAssignableFrom​(java.lang.Class<?> type)
        Description copied from interface: ClassType
        Determines if this type is either the same as, or is a supertype of, the class represented by the type parameter. If this type is assignable from the class true is returned, otherwise false.
        Specified by:
        isAssignableFrom in interface ClassType
        Parameters:
        type - the class type to check.
        Returns:
        true if this type is the same as or a superclass of the class, otherwise false.
      • isSubtypeOf

        public boolean isSubtypeOf​(java.lang.Class<?> type)
        Description copied from interface: ClassType
        Determines if this type is a subtype of the class represented by the type parameter. If this type is a subtype of the class true is returned, otherwise false.
        Specified by:
        isSubtypeOf in interface ClassType
        Parameters:
        type - the class type to check.
        Returns:
        true if this type is a subtype of the class, otherwise false.
      • isSameAs

        public boolean isSameAs​(java.lang.Class<?> type)
        Description copied from interface: ClassType
        Determines if this type is the same type as the class represented by the type parameter. If this type is the same type as the class true is returned, otherwise false.
        Specified by:
        isSameAs in interface ClassType
        Parameters:
        type - the class type to check.
        Returns:
        true if this type is the same type as the class, otherwise false.