org.codehaus.aspectwerkz.joinpoint
Interface Rtti

All Known Subinterfaces:
CatchClauseRtti, CodeRtti, ConstructorRtti, FieldRtti, MemberRtti, MethodRtti
All Known Implementing Classes:
CatchClauseRttiImpl, ConstructorRttiImpl, FieldRttiImpl, MethodRttiImpl, StaticInitializationRttiImpl

public interface Rtti

Holds static and reflective information about the join point (Runtime Type Information).

Author:
Jonas BonŽr

Method Summary
 Rtti cloneFor(Object targetInstance, Object thisInstance)
           
 Class getDeclaringType()
          Returns the declaring class.
 int getModifiers()
          Returns the modifiers for the signature.
 String getName()
          Returns the name (f.e. name of method of field).
 Object getTarget()
          Returns the target instance.
 Object getThis()
          Returns the instance currently executing (this).
 

Method Detail

getName

String getName()
Returns the name (f.e. name of method of field).

Returns:

getTarget

Object getTarget()
Returns the target instance.

Returns:
the target instance

getThis

Object getThis()
Returns the instance currently executing (this).

Returns:
the instance currently executing (this)

getDeclaringType

Class getDeclaringType()
Returns the declaring class.

Returns:
the declaring class

getModifiers

int getModifiers()
Returns the modifiers for the signature.

Could be used like this:

 boolean isPublic = java.lang.reflect.Modifier.isPublic(signature.getModifiers());
 

Returns:
the mofifiers

cloneFor

Rtti cloneFor(Object targetInstance,
              Object thisInstance)


Copyright © 2002-2005 Jonas Bonér, Alexandre Vasseur. All Rights Reserved.