Class ClassTool.Sub<T extends ClassTool.Sub>
- java.lang.Object
-
- org.apache.velocity.tools.generic.ClassTool.Sub<T>
-
- All Implemented Interfaces:
java.lang.Comparable<T>
- Direct Known Subclasses:
ClassTool.CallableSub,ClassTool.FieldSub
- Enclosing class:
- ClassTool
public abstract static class ClassTool.Sub<T extends ClassTool.Sub> extends java.lang.Object implements java.lang.Comparable<T>
-
-
Constructor Summary
Constructors Constructor Description Sub()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description intcompareTo(T that)booleanequals(java.lang.Object obj)java.util.List<java.lang.annotation.Annotation>getAnnotations()Returns theAnnotations of the element being inspected.protected abstract java.lang.reflect.AnnotatedElementgetElement()abstract java.lang.StringgetJavadocRef()protected abstract intgetModifiers()abstract java.lang.StringgetName()protected abstract java.lang.StringgetSubType()abstract java.lang.StringgetUniqueName()inthashCode()booleanisAbstract()booleanisDeprecated()booleanisFinal()booleanisInterface()booleanisNative()booleanisPrivate()booleanisProtected()booleanisPublic()booleanisStatic()booleanisStrict()booleanisSynchronized()booleanisTransient()booleanisVolatile()java.lang.StringtoString()
-
-
-
Method Detail
-
getElement
protected abstract java.lang.reflect.AnnotatedElement getElement()
-
getModifiers
protected abstract int getModifiers()
-
getSubType
protected abstract java.lang.String getSubType()
-
getName
public abstract java.lang.String getName()
-
getUniqueName
public abstract java.lang.String getUniqueName()
-
getJavadocRef
public abstract java.lang.String getJavadocRef()
-
getAnnotations
public java.util.List<java.lang.annotation.Annotation> getAnnotations()
Returns theAnnotations of the element being inspected.
-
isDeprecated
public boolean isDeprecated()
-
isPublic
public boolean isPublic()
-
isProtected
public boolean isProtected()
-
isPrivate
public boolean isPrivate()
-
isStatic
public boolean isStatic()
-
isFinal
public boolean isFinal()
-
isInterface
public boolean isInterface()
-
isNative
public boolean isNative()
-
isStrict
public boolean isStrict()
-
isSynchronized
public boolean isSynchronized()
-
isTransient
public boolean isTransient()
-
isVolatile
public boolean isVolatile()
-
isAbstract
public boolean isAbstract()
-
compareTo
public int compareTo(T that)
- Specified by:
compareToin interfacejava.lang.Comparable<T extends ClassTool.Sub>
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-