org.codehaus.aspectwerkz.joinpoint.impl
Class StaticInitializationRttiImpl

java.lang.Object
  extended by org.codehaus.aspectwerkz.joinpoint.impl.StaticInitializationRttiImpl
All Implemented Interfaces:
Rtti

public class StaticInitializationRttiImpl
extends Object
implements Rtti

Implementation of static initialization RTTI.

Author:
Alex Popescu

Constructor Summary
StaticInitializationRttiImpl(StaticInitializerSignatureImpl signature)
          Creates a new staticinitialization RTTI
 
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).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaticInitializationRttiImpl

public StaticInitializationRttiImpl(StaticInitializerSignatureImpl signature)
Creates a new staticinitialization RTTI

Parameters:
signature - the underlying StaticInitializerSignatureImpl
Method Detail

getName

public String getName()
Description copied from interface: Rtti
Returns the name (f.e. name of method of field).

Specified by:
getName in interface Rtti
Returns:
See Also:
Rtti.getName()

getTarget

public Object getTarget()
Description copied from interface: Rtti
Returns the target instance.

Specified by:
getTarget in interface Rtti
Returns:
the target instance
See Also:
Rtti.getTarget()

getThis

public Object getThis()
Description copied from interface: Rtti
Returns the instance currently executing (this).

Specified by:
getThis in interface Rtti
Returns:
the instance currently executing (this)
See Also:
Rtti.getThis()

getDeclaringType

public Class getDeclaringType()
Description copied from interface: Rtti
Returns the declaring class.

Specified by:
getDeclaringType in interface Rtti
Returns:
the declaring class
See Also:
Rtti.getDeclaringType()

getModifiers

public int getModifiers()
Description copied from interface: Rtti
Returns the modifiers for the signature.

Could be used like this:

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

Specified by:
getModifiers in interface Rtti
Returns:
the mofifiers
See Also:
Rtti.getModifiers()

cloneFor

public Rtti cloneFor(Object targetInstance,
                     Object thisInstance)
Specified by:
cloneFor in interface Rtti
See Also:
Rtti.cloneFor(java.lang.Object, java.lang.Object)


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