org.apache.velocity.tools.generic
Class ClassTool.FieldSub

java.lang.Object
  extended by org.apache.velocity.tools.generic.ClassTool.Sub<ClassTool.FieldSub>
      extended by org.apache.velocity.tools.generic.ClassTool.FieldSub
All Implemented Interfaces:
java.lang.Comparable<ClassTool.FieldSub>
Enclosing class:
ClassTool

public static class ClassTool.FieldSub
extends ClassTool.Sub<ClassTool.FieldSub>

A simplified wrapping interface for inspecting features of a Field in an inspected Class.


Field Summary
protected  java.lang.reflect.Field field
           
 
Constructor Summary
ClassTool.FieldSub(java.lang.reflect.Field field)
           
 
Method Summary
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.
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

field

protected java.lang.reflect.Field field
Constructor Detail

ClassTool.FieldSub

public ClassTool.FieldSub(java.lang.reflect.Field field)
Method Detail

getElement

protected java.lang.reflect.AnnotatedElement getElement()
Specified by:
getElement in class ClassTool.Sub<ClassTool.FieldSub>

getName

public java.lang.String getName()
Specified by:
getName in class ClassTool.Sub<ClassTool.FieldSub>

getUniqueName

public java.lang.String getUniqueName()
Simply returns the name of the field, since field names cannot be overloaded.

Specified by:
getUniqueName in class ClassTool.Sub<ClassTool.FieldSub>

getJavadocRef

public java.lang.String getJavadocRef()
Simply returns the name of the field.

Specified by:
getJavadocRef in class ClassTool.Sub<ClassTool.FieldSub>

getType

public java.lang.Class getType()

getStaticValue

public 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.


getModifiers

protected int getModifiers()
Specified by:
getModifiers in class ClassTool.Sub<ClassTool.FieldSub>

getSubType

protected java.lang.String getSubType()
Specified by:
getSubType in class ClassTool.Sub<ClassTool.FieldSub>


Copyright (c) 2003-2007 Apache Software Foundation