org.apache.velocity.tools.generic
public static class ClassTool.FieldSub extends ClassTool.Sub<ClassTool.FieldSub>
Field
in an inspected Class.Modifier and Type | Field and Description |
---|---|
protected java.lang.reflect.Field |
field |
Constructor and Description |
---|
ClassTool.FieldSub(java.lang.reflect.Field field) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.reflect.AnnotatedElement |
getElement() |
java.lang.String |
getJavadocRef()
Simply returns the name of the field.
|
protected int |
getModifiers() |
java.lang.String |
getName() |
java.lang.Object |
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.
|
protected java.lang.String |
getSubType() |
java.lang.Class |
getType() |
java.lang.String |
getUniqueName()
Simply returns the name of the field, since field names
cannot be overloaded.
|
compareTo, equals, getAnnotations, hashCode, isAbstract, isDeprecated, isFinal, isInterface, isNative, isPrivate, isProtected, isPublic, isStatic, isStrict, isSynchronized, isTransient, isVolatile, toString
protected java.lang.reflect.AnnotatedElement getElement()
getElement
in class ClassTool.Sub<ClassTool.FieldSub>
public java.lang.String getName()
getName
in class ClassTool.Sub<ClassTool.FieldSub>
public java.lang.String getUniqueName()
getUniqueName
in class ClassTool.Sub<ClassTool.FieldSub>
public java.lang.String getJavadocRef()
getJavadocRef
in class ClassTool.Sub<ClassTool.FieldSub>
public java.lang.Class getType()
public java.lang.Object getStaticValue()
protected int getModifiers()
getModifiers
in class ClassTool.Sub<ClassTool.FieldSub>
protected java.lang.String getSubType()
getSubType
in class ClassTool.Sub<ClassTool.FieldSub>
Copyright (c) 2003-2007 Apache Software Foundation