类 ClassTool.Sub<T extends ClassTool.Sub>

java.lang.Object
org.apache.velocity.tools.generic.ClassTool.Sub<T>
所有已实现的接口:
Comparable<T>
直接已知子类:
ClassTool.CallableSub, ClassTool.FieldSub
封闭类:
ClassTool

public abstract static class ClassTool.Sub<T extends ClassTool.Sub> extends Object implements Comparable<T>
  • 构造器详细资料

    • Sub

      public Sub()
  • 方法详细资料

    • 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.
      返回:
      annotations list
    • isDeprecated

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

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

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

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

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

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

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

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

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

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

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

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

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

      public int compareTo(T that)
      Compare unique names of inspected and given objects
      指定者:
      compareTo 在接口中 Comparable<T extends ClassTool.Sub>
      参数:
      that - object to compare to
      返回:
      comparison result
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 Object
      返回:
      hash code
    • equals

      public boolean equals(Object obj)
      覆盖:
      equals 在类中 Object
      参数:
      obj - object to compare to
      返回:
      whether it's the same object
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object
      返回:
      string representation