Commit 7f80e122 authored by Lubomir Bulej's avatar Lubomir Bulej

Extended InvocationStaticContext

Added getOwnerName() and getOwnerSimpleName() which return the
fully qualified class name and just the class name, respectively.
parent 6cf1d712
......@@ -90,6 +90,23 @@ public class InvocationStaticContext extends AbstractStaticContext {
//
/**
* @return The type name of the class owning the method being invoked, i.e.,
* a fully qualified class name, with packages delimited by the '.'
* character.
*/
public String getOwnerName () {
return JavaNames.internalToType (__methodOwner ());
}
/**
* @return The simple name of the class owning the method being invoked,
* i.e., a class name without the package part of the name.
*/
public String getOwnerSimpleName () {
return JavaNames.simpleClassName (__methodOwner ());
}
/**
* @return The internal name of the class owning the method being invoked.
*/
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment