abc.weaving.aspectinfo
Class MethodSig

java.lang.Object
  extended by abc.weaving.aspectinfo.Syntax
      extended by abc.weaving.aspectinfo.Sig
          extended by abc.weaving.aspectinfo.MethodSig

public class MethodSig
extends Sig

A method signature.

Author:
Aske Simon Christensen, Oege de Moor

Constructor Summary
MethodSig(int mod, AbcClass cl, AbcType rtype, java.lang.String name, java.util.List formals, java.util.List exc, Position pos)
          Create a method signature.
 
Method Summary
 boolean equals(java.lang.Object other)
          Checks whether the two method signatures refer to the same method.
 AbcClass getDeclaringClass()
           
 java.util.List getExceptions()
          Get the exceptions thrown by the method.
 java.util.List getFormals()
          Get the formals of the method.
 int getModifiers()
           
 java.lang.String getName()
           
 AbcType getReturnType()
           
 java.util.List getSootExceptions()
          Get the exceptions thrown by the method.
 ClassMember getSootMember()
           
 SootMethod getSootMethod()
           
 SootMethodRef getSootMethodRef()
           
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class abc.weaving.aspectinfo.Syntax
getPosition
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MethodSig

public MethodSig(int mod,
                 AbcClass cl,
                 AbcType rtype,
                 java.lang.String name,
                 java.util.List formals,
                 java.util.List exc,
                 Position pos)
Create a method signature.

Parameters:
formals - a list of Formal objects
exc - a list of AbcClass objects
Method Detail

getModifiers

public int getModifiers()
Specified by:
getModifiers in class Sig

getDeclaringClass

public AbcClass getDeclaringClass()
Specified by:
getDeclaringClass in class Sig

getReturnType

public AbcType getReturnType()

getName

public java.lang.String getName()
Specified by:
getName in class Sig

getFormals

public java.util.List getFormals()
Get the formals of the method.

Returns:
a list of Formal objects.

getExceptions

public java.util.List getExceptions()
Get the exceptions thrown by the method.

Returns:
a list of AbcClass objects.

getSootExceptions

public java.util.List getSootExceptions()
Get the exceptions thrown by the method.

Returns:
a list of soot.SootClass objects.

getSootMember

public ClassMember getSootMember()
Specified by:
getSootMember in class Sig

getSootMethod

public SootMethod getSootMethod()

getSootMethodRef

public SootMethodRef getSootMethodRef()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object other)
Checks whether the two method signatures refer to the same method.

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object