org.pfsw.reflect
Class ObjectField

java.lang.Object
  extended by org.pfsw.reflect.ObjectField
All Implemented Interfaces:
ElementWithModifiers, IObjectProperty

public class ObjectField
extends java.lang.Object
implements IObjectProperty

This is an IObjectProperty implementing wrapper around a Field.


Constructor Summary
ObjectField(java.lang.reflect.Field field)
           
 
Method Summary
 java.lang.reflect.Field getField()
           
 Modifiers getModifiers()
          Returns all modifier settings of the property.
 java.lang.String getName()
          Returns the name of the property.
 java.lang.Class<?> getType()
          Returns the type of the property.
 boolean isAbstract()
          Return true if the modifiers includes the abstract modifier, false otherwise.
 boolean isDefaultVisibility()
          Return true if the modifier bits does not include any of the visibility modifiers public, protected private, false otherwise.
 boolean isFinal()
          Return true if the modifiers includes the final modifier, false otherwise.
 boolean isInterface()
          Return true if the modifiers includes the interface modifier, false otherwise.
 boolean isNative()
          Return true if the modifiers includes the native modifier, false otherwise.
 boolean isPrivate()
          Return true if the modifiers includes the private modifier, false otherwise.
 boolean isProtected()
          Return true if the modifiers includes the protected modifier, false otherwise.
 boolean isPublic()
          Return true if the modifiers includes the public modifier, false otherwise.
 boolean isStatic()
          Return true if the modifiers includes the static modifier, false otherwise.
 boolean isStrict()
          Return true if the modifiers includes the strict modifier, false otherwise.
 boolean isSynchronized()
          Return true if the modifiers includes the synchronized modifier, false otherwise.
 boolean isTransient()
          Return true if the modifiers includes the transient modifier, false otherwise.
 boolean isVolatile()
          Return true if the modifiers includes the volatile modifier, false otherwise.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.pfsw.reflect.ElementWithModifiers
isAbstract, isDefaultVisibility, isFinal, isInterface, isNative, isPrivate, isProtected, isPublic, isStatic, isStrict, isSynchronized, isTransient, isVolatile
 

Constructor Detail

ObjectField

public ObjectField(java.lang.reflect.Field field)
Method Detail

getName

public java.lang.String getName()
Description copied from interface: IObjectProperty
Returns the name of the property.

Specified by:
getName in interface IObjectProperty

getField

public java.lang.reflect.Field getField()

getType

public java.lang.Class<?> getType()
Description copied from interface: IObjectProperty
Returns the type of the property.

Specified by:
getType in interface IObjectProperty

getModifiers

public Modifiers getModifiers()
Description copied from interface: ElementWithModifiers
Returns all modifier settings of the property.

Specified by:
getModifiers in interface ElementWithModifiers

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

isAbstract

public boolean isAbstract()
Return true if the modifiers includes the abstract modifier, false otherwise.

Specified by:
isAbstract in interface ElementWithModifiers

isFinal

public boolean isFinal()
Return true if the modifiers includes the final modifier, false otherwise.

Specified by:
isFinal in interface ElementWithModifiers

isInterface

public boolean isInterface()
Return true if the modifiers includes the interface modifier, false otherwise.

Specified by:
isInterface in interface ElementWithModifiers

isNative

public boolean isNative()
Return true if the modifiers includes the native modifier, false otherwise.

Specified by:
isNative in interface ElementWithModifiers

isPrivate

public boolean isPrivate()
Return true if the modifiers includes the private modifier, false otherwise.

Specified by:
isPrivate in interface ElementWithModifiers

isProtected

public boolean isProtected()
Return true if the modifiers includes the protected modifier, false otherwise.

Specified by:
isProtected in interface ElementWithModifiers

isPublic

public boolean isPublic()
Return true if the modifiers includes the public modifier, false otherwise.

Specified by:
isPublic in interface ElementWithModifiers

isStatic

public boolean isStatic()
Return true if the modifiers includes the static modifier, false otherwise.

Specified by:
isStatic in interface ElementWithModifiers

isStrict

public boolean isStrict()
Return true if the modifiers includes the strict modifier, false otherwise.

Specified by:
isStrict in interface ElementWithModifiers

isSynchronized

public boolean isSynchronized()
Return true if the modifiers includes the synchronized modifier, false otherwise.

Specified by:
isSynchronized in interface ElementWithModifiers

isTransient

public boolean isTransient()
Return true if the modifiers includes the transient modifier, false otherwise.

Specified by:
isTransient in interface ElementWithModifiers

isVolatile

public boolean isVolatile()
Return true if the modifiers includes the volatile modifier, false otherwise.

Specified by:
isVolatile in interface ElementWithModifiers

isDefaultVisibility

public boolean isDefaultVisibility()
Return true if the modifier bits does not include any of the visibility modifiers public, protected private, false otherwise.

Specified by:
isDefaultVisibility in interface ElementWithModifiers