Class ClassTool.Sub<T extends ClassTool.Sub>

java.lang.Object
org.apache.velocity.tools.generic.ClassTool.Sub<T>
All Implemented Interfaces:
Comparable<T>
Direct Known Subclasses:
ClassTool.CallableSub, ClassTool.FieldSub
Enclosing class:
ClassTool

public abstract static class ClassTool.Sub<T extends ClassTool.Sub> extends Object implements Comparable<T>
Since:
VelocityTools 2.0
Version:
$Id: ClassTool.java 463298 2006-10-12 16:10:32Z henning $
Author:
Nathan Bubna
  • Constructor Details

    • Sub

      public Sub()
  • Method Details

    • getElement

      protected abstract AnnotatedElement getElement()
    • getModifiers

      protected abstract int getModifiers()
    • getSubType

      protected abstract String getSubType()
    • getName

      public abstract String getName()
    • getUniqueName

      public abstract String getUniqueName()
    • getJavadocRef

      public abstract String getJavadocRef()
    • getAnnotations

      public List<Annotation> getAnnotations()
      Returns the Annotations of the element being inspected.
      Returns:
      annotations list
    • isDeprecated

      public boolean isDeprecated()
      Inspected object deprecation status
      Returns:
      deprecation status
    • isPublic

      public boolean isPublic()
      Returns:
      whether the inspected object is public
    • isProtected

      public boolean isProtected()
      Returns:
      whether the inspected object is protected
    • isPrivate

      public boolean isPrivate()
      Returns:
      whether the inspected object is private
    • isStatic

      public boolean isStatic()
      Returns:
      whether the inspected object is static
    • isFinal

      public boolean isFinal()
      Returns:
      whether the inspected object is final
    • isInterface

      public boolean isInterface()
      Returns:
      whether the inspected object is an interface
    • isNative

      public boolean isNative()
      Returns:
      whether the inspected object is native
    • isStrict

      public boolean isStrict()
      Returns:
      whether the inspected object is strictfp
    • isSynchronized

      public boolean isSynchronized()
      Returns:
      whether the inspected object is synchronized
    • isTransient

      public boolean isTransient()
      Returns:
      whether the inspected object is transcient
    • isVolatile

      public boolean isVolatile()
      Returns:
      whether the inspected object is volatile
    • isAbstract

      public boolean isAbstract()
      Returns:
      whether the inspected object is abstract
    • compareTo

      public int compareTo(T that)
      Compare unique names of inspected and given objects
      Specified by:
      compareTo in interface Comparable<T extends ClassTool.Sub>
      Parameters:
      that - object to compare to
      Returns:
      comparison result
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
      Returns:
      hash code
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
      Parameters:
      obj - object to compare to
      Returns:
      whether it's the same object
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns:
      string representation