sofya.ed.semantic
Class EventListener.CallData

java.lang.Object
  extended by sofya.ed.semantic.EventListener.CallData
Enclosing interface:
EventListener

public static class EventListener.CallData
extends java.lang.Object

Provides information about a method call.


Method Summary
 boolean canGetArguments()
          Reports whether the values of the arguments to the call can be retrieved; this is true only for calls witnessed using an interceptor.
 EventListener.Arguments getArguments()
          Gets the arguments to the called method.
 MethodSignature getCalledSignature()
          Gets the signature of the called method.
 java.lang.String getClassName()
          Gets the name of the class in which the method call occurred.
 int getLineNumber()
           
 java.lang.String getMethod()
          Gets the name of the method in which the method call occurred.
 java.lang.String getMethodSignature()
          Gets the signature of the method in which the method call occurred.
 java.lang.String getRawCalledSignature()
          Gets the signature string recorded by the probe for the called method.
 java.lang.String getSourceFile()
           
 boolean isNative()
          Reports whether the called method is a native method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCalledSignature

public MethodSignature getCalledSignature()
Gets the signature of the called method.

Returns:
The signature of the called method.

getRawCalledSignature

public java.lang.String getRawCalledSignature()
Gets the signature string recorded by the probe for the called method.

Returns:
The raw signature string for the called method.

getClassName

public java.lang.String getClassName()
Gets the name of the class in which the method call occurred.

Returns:
The name of the class in which the call was made.

getMethod

public java.lang.String getMethod()
Gets the name of the method in which the method call occurred.

Returns:
The name of the method in which the call was made.

getMethodSignature

public java.lang.String getMethodSignature()
Gets the signature of the method in which the method call occurred.

Returns:
The JNI-style signature of the method in which the call was made.

isNative

public boolean isNative()
Reports whether the called method is a native method.

Returns:
true if the called method is a native method.

canGetArguments

public boolean canGetArguments()
Reports whether the values of the arguments to the call can be retrieved; this is true only for calls witnessed using an interceptor.

Returns:
true if the values of the arguments to the method call can be obtained.

getArguments

public EventListener.Arguments getArguments()
Gets the arguments to the called method.

This method is only available if the method call was witnessed using an interceptor.

Returns:
An object that provides access to information about the actual parameters to the called method.
Throws:
java.lang.IllegalStateException - If the method call is not witnessed using an interceptor.

getSourceFile

public java.lang.String getSourceFile()

getLineNumber

public int getLineNumber()