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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintCompare unique names of inspected and given objectsbooleanReturns theAnnotations of the element being inspected.protected abstract AnnotatedElementabstract Stringprotected abstract intabstract StringgetName()protected abstract Stringabstract StringinthashCode()booleanbooleanInspected object deprecation statusbooleanisFinal()booleanbooleanisNative()booleanbooleanbooleanisPublic()booleanisStatic()booleanisStrict()booleanbooleanbooleantoString()
-
Constructor Details
-
Sub
public Sub()
-
-
Method Details
-
getElement
-
getModifiers
protected abstract int getModifiers() -
getSubType
-
getName
-
getUniqueName
-
getJavadocRef
-
getAnnotations
Returns theAnnotations 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
Compare unique names of inspected and given objects- Specified by:
compareToin interfaceComparable<T extends ClassTool.Sub>- Parameters:
that- object to compare to- Returns:
- comparison result
-
hashCode
-
equals
-
toString
-