public class MethodStaticContext extends AbstractStaticContext
Constructor and Description |
---|
MethodStaticContext() |
Modifier and Type | Method and Description |
---|---|
boolean |
isClassAbstract()
Returns
true if the instrumented class is abstract. |
boolean |
isClassAnnotation()
Returns
true if the instrumented class is an annotation. |
boolean |
isClassEnum()
Returns
true if the instrumented class is an enum. |
boolean |
isClassFinal()
Returns
true if the instrumented class is final. |
boolean |
isClassInterface()
Returns
true if the instrumented class is an interface. |
boolean |
isClassPrivate()
Returns
true if the instrumented class is private. |
boolean |
isClassProtected()
Returns
true if the instrumented class is protected. |
boolean |
isClassPublic()
Returns
true if the instrumented class is public. |
boolean |
isClassSynthetic()
Returns
true if the instrumented class is synthetic. |
boolean |
isMethodBridge()
Returns
true if the instrumented method is a bridge. |
boolean |
isMethodConstructor()
Returns
true if this method is a constructor. |
boolean |
isMethodFinal()
Returns
true if the instrumented method is final. |
boolean |
isMethodInitializer()
Returns
true if this method is a class initializer. |
boolean |
isMethodPrivate()
Returns
true if the instrumented method is private. |
boolean |
isMethodProtected()
Returns
true if the instrumented method is protected. |
boolean |
isMethodPublic()
Returns
true if the instrumented method is public. |
boolean |
isMethodStatic()
Returns
true if the instrumented method is static. |
boolean |
isMethodSynchronized()
Returns
true if the instrumented method is synchronized. |
boolean |
isMethodVarArgs()
Returns
true if the instrumented method accepts a variable number
of arguments. |
java.lang.String |
thisClassCanonicalName()
Returns the canonical name of the instrumented class, i.e., a fully
qualified class name, with packages delimited by the '.' character.
|
java.lang.String |
thisClassName()
Returns the internal name of the instrumented class, i.e., a fully
qualified class name, with packages delimited by the '/' character.
|
java.lang.String |
thisClassOuterClass()
Returns the internal name of the class enclosing the instrumented class,
or
null if the instrumented class is not enclosed in another
class. |
java.lang.String |
thisClassOuterMethod()
Returns the name of the method enclosing the instrumented class, or
null if the class is not enclosed in a method. |
java.lang.String |
thisClassOuterMethodDesc()
Returns outer method descriptor of the instrumented class.
|
java.lang.String |
thisClassSignature()
Returns the signature of the instrumented class, or
null if the
class is not a generic type. |
java.lang.String |
thisClassSimpleName()
Returns the simple name of the instrumented class, i.e., a class name
without the package part of the name.
|
java.lang.String |
thisClassSourceFile()
Returns the name of the source file containing the instrumented class.
|
java.lang.String |
thisClassSuperName()
Returns the internal name of the super class of the instrumented class,
i.e., a fully qualified class name, with package names delimited by the
'/' character.
|
int |
thisClassVersion()
Returns class version as (ASM) integer of the instrumented class.
|
java.lang.String |
thisMethodDescriptor()
Returns the descriptor of the instrumented method.
|
java.lang.String |
thisMethodFullName()
Returns the fully qualified (internal) name of the instrumented method,
i.e., including the (internal) name of the class containing the method.
|
java.lang.String |
thisMethodName()
Returns the name of the instrumented method.
|
java.lang.String |
thisMethodSignature()
Returns the signature of the instrumented method.
|
staticContextData
public java.lang.String thisClassName()
public java.lang.String thisClassSimpleName()
public java.lang.String thisClassCanonicalName()
public java.lang.String thisClassOuterClass()
null
if the instrumented class is not enclosed in another
class.public java.lang.String thisClassOuterMethod()
null
if the class is not enclosed in a method.public java.lang.String thisClassOuterMethodDesc()
public java.lang.String thisClassSignature()
null
if the
class is not a generic type.public java.lang.String thisClassSourceFile()
public java.lang.String thisClassSuperName()
public int thisClassVersion()
public boolean isClassAbstract()
true
if the instrumented class is abstract.public boolean isClassAnnotation()
true
if the instrumented class is an annotation.public boolean isClassEnum()
true
if the instrumented class is an enum.public boolean isClassFinal()
true
if the instrumented class is final.public boolean isClassInterface()
true
if the instrumented class is an interface.public boolean isClassPrivate()
true
if the instrumented class is private.public boolean isClassProtected()
true
if the instrumented class is protected.public boolean isClassPublic()
true
if the instrumented class is public.public boolean isClassSynthetic()
true
if the instrumented class is synthetic.public java.lang.String thisMethodName()
public java.lang.String thisMethodFullName()
public java.lang.String thisMethodDescriptor()
public java.lang.String thisMethodSignature()
public boolean isMethodConstructor()
true
if this method is a constructor.public boolean isMethodInitializer()
true
if this method is a class initializer.public boolean isMethodBridge()
true
if the instrumented method is a bridge.public boolean isMethodFinal()
true
if the instrumented method is final.public boolean isMethodPrivate()
true
if the instrumented method is private.public boolean isMethodProtected()
true
if the instrumented method is protected.public boolean isMethodPublic()
true
if the instrumented method is public.public boolean isMethodStatic()
true
if the instrumented method is static.public boolean isMethodSynchronized()
true
if the instrumented method is synchronized.public boolean isMethodVarArgs()
true
if the instrumented method accepts a variable number
of arguments.