Class ClassTool.FieldSub
java.lang.Object
org.apache.velocity.tools.generic.ClassTool.Sub<ClassTool.FieldSub>
org.apache.velocity.tools.generic.ClassTool.FieldSub
- All Implemented Interfaces:
Comparable<ClassTool.FieldSub>
- Enclosing class:
ClassTool
A simplified wrapping interface for inspecting features
of a
Field in an inspected Class.- Since:
- VelocityTools 2.0
- Version:
- $Id: ClassTool.java 463298 2006-10-12 16:10:32Z henning $
- Author:
- Nathan Bubna
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected AnnotatedElementSimply returns the name of the field.protected intgetName()Returns the value of the field if and only if it is a static field that has no access restrictions set by the security manager.protected StringgetType()Simply returns the name of the field, since field names cannot be overloaded.Methods inherited from class ClassTool.Sub
compareTo, equals, getAnnotations, hashCode, isAbstract, isDeprecated, isFinal, isInterface, isNative, isPrivate, isProtected, isPublic, isStatic, isStrict, isSynchronized, isTransient, isVolatile, toString
-
Field Details
-
field
-
-
Constructor Details
-
FieldSub
-
-
Method Details
-
getElement
- Specified by:
getElementin classClassTool.Sub<ClassTool.FieldSub>- Returns:
- inspected element
-
getName
- Specified by:
getNamein classClassTool.Sub<ClassTool.FieldSub>- Returns:
- field name
-
getUniqueName
Simply returns the name of the field, since field names cannot be overloaded.- Specified by:
getUniqueNamein classClassTool.Sub<ClassTool.FieldSub>- Returns:
- unique name
-
getJavadocRef
Simply returns the name of the field.- Specified by:
getJavadocRefin classClassTool.Sub<ClassTool.FieldSub>- Returns:
- field name
-
getType
- Returns:
- field class
-
getStaticValue
Returns the value of the field if and only if it is a static field that has no access restrictions set by the security manager.- Returns:
- value of static field
-
getModifiers
protected int getModifiers()- Specified by:
getModifiersin classClassTool.Sub<ClassTool.FieldSub>- Returns:
- inspected field modifiers
-
getSubType
- Specified by:
getSubTypein classClassTool.Sub<ClassTool.FieldSub>- Returns:
- inspected field inspector type, aka "field"
-