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.-
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 org.apache.velocity.tools.generic.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>
-
getName
- Specified by:
getNamein classClassTool.Sub<ClassTool.FieldSub>
-
getUniqueName
Simply returns the name of the field, since field names cannot be overloaded.- Specified by:
getUniqueNamein classClassTool.Sub<ClassTool.FieldSub>
-
getJavadocRef
Simply returns the name of the field.- Specified by:
getJavadocRefin classClassTool.Sub<ClassTool.FieldSub>
-
getType
-
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. -
getModifiers
protected int getModifiers()- Specified by:
getModifiersin classClassTool.Sub<ClassTool.FieldSub>
-
getSubType
- Specified by:
getSubTypein classClassTool.Sub<ClassTool.FieldSub>
-