org.jboss.joinpoint.plugins
Class BasicFieldSetJoinPoint

java.lang.Object
  extended by org.jboss.joinpoint.plugins.BasicTargettedJoinPoint
      extended by org.jboss.joinpoint.plugins.BasicFieldSetJoinPoint
All Implemented Interfaces:
Cloneable, FieldSetJoinpoint, Joinpoint, TargettedJoinpoint

public class BasicFieldSetJoinPoint
extends BasicTargettedJoinPoint
implements FieldSetJoinpoint

A field set joinpoint

Author:
Adrian Brock

Field Summary
protected  FieldInfo fieldInfo
          The field info
protected  Object value
          The value
 
Fields inherited from class org.jboss.joinpoint.plugins.BasicTargettedJoinPoint
target
 
Constructor Summary
BasicFieldSetJoinPoint(FieldInfo fieldInfo)
          Create a new field set join point
 
Method Summary
 Object dispatch()
          Invoke on the actual joinpoint
 FieldInfo getFieldInfo()
          Get the field info for this join point
 Object getValue()
          Get the value
 void setValue(Object value)
          The value to set
 String toHumanReadableString()
          A human readable version of the join point
 
Methods inherited from class org.jboss.joinpoint.plugins.BasicTargettedJoinPoint
clone, getTarget, setTarget
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.joinpoint.spi.TargettedJoinpoint
getTarget, setTarget
 
Methods inherited from interface org.jboss.joinpoint.spi.Joinpoint
clone
 

Field Detail

fieldInfo

protected FieldInfo fieldInfo
The field info


value

protected Object value
The value

Constructor Detail

BasicFieldSetJoinPoint

public BasicFieldSetJoinPoint(FieldInfo fieldInfo)
Create a new field set join point

Parameters:
fieldInfo - the field info
Method Detail

getFieldInfo

public FieldInfo getFieldInfo()
Description copied from interface: FieldSetJoinpoint
Get the field info for this join point

Specified by:
getFieldInfo in interface FieldSetJoinpoint
Returns:
the field info

getValue

public Object getValue()
Get the value

Returns:
the value

setValue

public void setValue(Object value)
Description copied from interface: FieldSetJoinpoint
The value to set

Specified by:
setValue in interface FieldSetJoinpoint
Parameters:
value - the value to set

dispatch

public Object dispatch()
                throws Throwable
Description copied from interface: Joinpoint
Invoke on the actual joinpoint

Specified by:
dispatch in interface Joinpoint
Returns:
the result of the invocation
Throws:
Throwable - for any error

toHumanReadableString

public String toHumanReadableString()
Description copied from interface: Joinpoint
A human readable version of the join point

Specified by:
toHumanReadableString in interface Joinpoint
Returns:
a human readable description of the join point


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.