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 AnnotatedElement
Simply returns the name of the field.protected int
getName()
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 String
getType()
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:
getElement
in classClassTool.Sub<ClassTool.FieldSub>
-
getName
- Specified by:
getName
in classClassTool.Sub<ClassTool.FieldSub>
-
getUniqueName
Simply returns the name of the field, since field names cannot be overloaded.- Specified by:
getUniqueName
in classClassTool.Sub<ClassTool.FieldSub>
-
getJavadocRef
Simply returns the name of the field.- Specified by:
getJavadocRef
in 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:
getModifiers
in classClassTool.Sub<ClassTool.FieldSub>
-
getSubType
- Specified by:
getSubType
in classClassTool.Sub<ClassTool.FieldSub>
-