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 int
compareTo(T that)
boolean
equals(java.lang.Object obj)
java.util.List<java.lang.annotation.Annotation>
getAnnotations()
Returns theAnnotation
s of the element being inspected.protected abstract java.lang.reflect.AnnotatedElement
getElement()
abstract java.lang.String
getJavadocRef()
protected abstract int
getModifiers()
abstract java.lang.String
getName()
protected abstract java.lang.String
getSubType()
abstract java.lang.String
getUniqueName()
int
hashCode()
boolean
isAbstract()
boolean
isDeprecated()
boolean
isFinal()
boolean
isInterface()
boolean
isNative()
boolean
isPrivate()
boolean
isProtected()
boolean
isPublic()
boolean
isStatic()
boolean
isStrict()
boolean
isSynchronized()
boolean
isTransient()
boolean
isVolatile()
java.lang.String
toString()
-
-
-
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 theAnnotation
s 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:
compareTo
in interfacejava.lang.Comparable<T extends ClassTool.Sub>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-