Class ParameterFactory.MessageMethodParameter

java.lang.Object
org.jboss.logging.processor.apt.ParameterFactory.MessageMethodParameter
All Implemented Interfaces:
Comparable<Parameter>, AnnotatedConstruct, Element, ClassType, DelegatingElement, Parameter
Enclosing class:
ParameterFactory

private static class ParameterFactory.MessageMethodParameter extends Object implements Parameter
  • Field Details

  • Constructor Details

    • MessageMethodParameter

      private MessageMethodParameter(MessageMethod messageMethod)
  • Method Details

    • getDelegate

      public 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 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 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 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 Element
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface Element
      Overrides:
      equals in class Object
    • compareTo

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

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

      public boolean isAssignableFrom(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(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(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.