Class JavaParameter

java.lang.Object
com.thoughtworks.qdox.model.AbstractBaseJavaEntity
com.thoughtworks.qdox.model.JavaParameter
All Implemented Interfaces:
Serializable

public class JavaParameter extends AbstractBaseJavaEntity implements Serializable
See Also:
  • Field Details

  • Constructor Details

    • JavaParameter

      public JavaParameter(Type type, String name)
    • JavaParameter

      public JavaParameter(Type type, String name, boolean varArgs)
  • Method Details

    • getName

      public String getName()
      Overrides:
      getName in class AbstractBaseJavaEntity
    • getType

      public Type getType()
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getParentMethod

      public JavaMethod getParentMethod()
    • setParentMethod

      public void setParentMethod(JavaMethod parentMethod)
    • getParentClass

      public JavaClass getParentClass()
      Description copied from class: AbstractBaseJavaEntity
      Not every entity has a parentClass, but AnnotationFieldRef requires access to it. When used with JavaClass, don't confuse this with getSuperClass()
      Overrides:
      getParentClass in class AbstractBaseJavaEntity
      Returns:
      the surrounding class
    • isVarArgs

      public boolean isVarArgs()
      Is this a Java 5 var args type specified using three dots. e.g. void doStuff(Object... thing)
      Since:
      1.6
    • toString

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

      public String getResolvedValue()
      Returns:
      the resolved value if the method has typeParameters, otherwise type's value
      Since:
      1.10
    • getResolvedGenericValue

      public String getResolvedGenericValue()