org.codehaus.aspectwerkz.joinpoint.impl
Class CatchClauseSignatureImpl

java.lang.Object
  extended byorg.codehaus.aspectwerkz.joinpoint.impl.CatchClauseSignatureImpl
All Implemented Interfaces:
CatchClauseSignature, Serializable, Signature

public class CatchClauseSignatureImpl
extends Object
implements CatchClauseSignature

Implementation for the catch clause signature.

Author:
Jonas Bonér
See Also:
Serialized Form

Constructor Summary
CatchClauseSignatureImpl(Class exceptionClass, Class declaringClass, String joinPointSignature)
          Creates a new catch clause signature.
 
Method Summary
 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).
 Class getParameterType()
          Returns the parameter type.
 Signature newInstance()
          Creates a deep copy of the signature.
 String toString()
          Returns a string representation of the signature.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CatchClauseSignatureImpl

public CatchClauseSignatureImpl(Class exceptionClass,
                                Class declaringClass,
                                String joinPointSignature)
Creates a new catch clause signature.

Parameters:
exceptionClass -
declaringClass -
joinPointSignature -
Method Detail

getDeclaringType

public Class getDeclaringType()
Returns the declaring class.

Specified by:
getDeclaringType in interface Signature
Returns:
the declaring class

getModifiers

public int getModifiers()
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 Signature
Returns:
the mofifiers

getName

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

Specified by:
getName in interface Signature
Returns:

getParameterType

public Class getParameterType()
Returns the parameter type.

Specified by:
getParameterType in interface CatchClauseSignature
Returns:
the parameter type

toString

public String toString()
Returns a string representation of the signature.

Returns:
a string representation

newInstance

public Signature newInstance()
Creates a deep copy of the signature.

Returns:
a deep copy of the signature


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