org.jboss.aop
Class FieldInfo

java.lang.Object
  extended by org.jboss.aop.JoinPointInfo
      extended by org.jboss.aop.FieldInfo
All Implemented Interfaces:
FieldAccess, JoinPointBean

public class FieldInfo
extends JoinPointInfo
implements FieldAccess

Comment

Version:
$Revision$
Author:
Kabir Khan

Field Summary
 
Fields inherited from class org.jboss.aop.JoinPointInfo
clazz, interceptors, joinpoint
 
Constructor Summary
FieldInfo()
           
FieldInfo(Advisor advisor, boolean read)
           
FieldInfo(Class<?> clazz, int index, String fieldName, long wrapperHash, Advisor advisor, boolean read)
           
 
Method Summary
 JoinPointInfo copy()
           
 Field getAdvisedField()
          Deprecated. 
 Field getField()
          Gets the field being read or written
 int getIndex()
           
 Method getWrapper()
           
protected  Joinpoint internalGetJoinpoint()
           
 boolean isRead()
          Gets whether we are reading the field
<T extends Annotation>
T
resolveAnnotation(Class<T> annotation)
          Resolves annotations on the particular joinpoint (field, constructor, method etc.)
 void setAdvisedField(Field advisedField)
           
 void setIndex(int index)
           
 void setRead(boolean read)
           
 void setWrapper(Method wrapper)
           
 String toString()
           
 
Methods inherited from class org.jboss.aop.JoinPointInfo
clear, cloneChains, equalChains, getAdviceString, getAdvisor, getClazz, getInterceptorChain, getInterceptorChainReadWriteLock, getInterceptors, getJoinpoint, hasAdvices, resetChainKeepInterceptors, resetInterceptors, resolveClassAnnotation, resolveClassMetaData, setAdvisor, setInterceptors
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.aop.joinpoint.JoinPointBean
getAdvisor, getClazz, resolveClassAnnotation, resolveClassMetaData
 

Constructor Detail

FieldInfo

public FieldInfo()

FieldInfo

public FieldInfo(Advisor advisor,
                 boolean read)

FieldInfo

public FieldInfo(Class<?> clazz,
                 int index,
                 String fieldName,
                 long wrapperHash,
                 Advisor advisor,
                 boolean read)
Method Detail

internalGetJoinpoint

protected Joinpoint internalGetJoinpoint()
Specified by:
internalGetJoinpoint in class JoinPointInfo

copy

public JoinPointInfo copy()
Specified by:
copy in class JoinPointInfo

toString

public String toString()
Overrides:
toString in class Object

setIndex

public void setIndex(int index)

getIndex

public int getIndex()

setAdvisedField

public void setAdvisedField(Field advisedField)

getAdvisedField

@Deprecated
public Field getAdvisedField()
Deprecated. 


getField

public Field getField()
Description copied from interface: FieldAccess
Gets the field being read or written

Specified by:
getField in interface FieldAccess

setWrapper

public void setWrapper(Method wrapper)

getWrapper

public Method getWrapper()

setRead

public void setRead(boolean read)

isRead

public boolean isRead()
Description copied from interface: FieldAccess
Gets whether we are reading the field

Specified by:
isRead in interface FieldAccess

resolveAnnotation

public <T extends Annotation> T resolveAnnotation(Class<T> annotation)
Description copied from interface: JoinPointBean
Resolves annotations on the particular joinpoint (field, constructor, method etc.)

Specified by:
resolveAnnotation in interface JoinPointBean
Overrides:
resolveAnnotation in class JoinPointInfo


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