Package org.hotswap.agent.plugin.jvm
Class AnonymousClassInfo
- java.lang.Object
-
- org.hotswap.agent.plugin.jvm.AnonymousClassInfo
-
public class AnonymousClassInfo extends Object
Get signature for an anonymous class to compare two versions (before and after reload).- Author:
- Jiri Bubnik
-
-
Constructor Summary
Constructors Constructor Description AnonymousClassInfo(Class c)AnonymousClassInfo(String className)AnonymousClassInfo(CtClass c)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetClassName()StringgetClassSignature()StringgetEnclosingMethodSignature()StringgetFieldsSignature()StringgetMethodSignature()booleanmatchClassSignature(AnonymousClassInfo other)The least matching variant - same class signature can be still resolved by hotswap.booleanmatchExact(AnonymousClassInfo other)Exact match including enclosing method.booleanmatchSignatures(AnonymousClassInfo other)Exact match of class, interfaces, declared methods and fields.
-
-
-
Method Detail
-
getClassName
public String getClassName()
-
getClassSignature
public String getClassSignature()
-
getMethodSignature
public String getMethodSignature()
-
getFieldsSignature
public String getFieldsSignature()
-
getEnclosingMethodSignature
public String getEnclosingMethodSignature()
-
matchExact
public boolean matchExact(AnonymousClassInfo other)
Exact match including enclosing method.
-
matchSignatures
public boolean matchSignatures(AnonymousClassInfo other)
Exact match of class, interfaces, declared methods and fields. May be different enclosing method.
-
matchClassSignature
public boolean matchClassSignature(AnonymousClassInfo other)
The least matching variant - same class signature can be still resolved by hotswap.
-
-