|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcz.cuni.pogamut.introspection.java.JavaProperty
public class JavaProperty
Wrapps JavaReflection way of manipulating with fields of objects.
Field Summary | |
---|---|
protected java.lang.reflect.Field |
field
Field to be changed. |
protected java.lang.Object |
object
Object where is the field. |
Constructor Summary | |
---|---|
JavaProperty(java.lang.Object object,
java.lang.reflect.Field field)
Creates a new instance of JavaProperty |
Method Summary | |
---|---|
java.lang.String |
getName()
|
java.lang.Class |
getType()
|
java.lang.Object |
getValue()
Get value of property. |
void |
setValue(java.lang.Object newValue)
Set value of property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.lang.reflect.Field field
protected java.lang.Object object
Constructor Detail |
---|
public JavaProperty(java.lang.Object object, java.lang.reflect.Field field)
field
- Field that is represented by this propertyobject
- Object at which the new value will be set.Method Detail |
---|
public java.lang.Object getValue() throws java.lang.IllegalAccessException
Property
getValue
in interface Property
java.lang.IllegalAccessException
public void setValue(java.lang.Object newValue) throws java.lang.IllegalAccessException
Property
setValue
in interface Property
java.lang.IllegalAccessException
public java.lang.String getName()
getName
in interface Property
public java.lang.Class getType()
getType
in interface Property
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |