public static interface SnapshotMaker.MethodBodyCallback
Modifier and Type | Method and Description |
---|---|
Statement |
generateMethodBody(MetaMethod method,
Object o,
ClassStructureBuilder<?> containingClass)
Optionally returns the statement that should be used as the body of the
given method for the given object's snapshot.
|
Statement generateMethodBody(MetaMethod method, Object o, ClassStructureBuilder<?> containingClass)
method
- The method to provide the body for.o
- The instance object that we are taking the snapshot of. You can
use this reference if you need to invoke method
.containingClass
- The class that will contain the generated method. During the
callback, you can generate additional methods and fields within
this class if you like.method
's return type), or null if the
snapshot maker should generate the method body by invoking method
on o
and returning a Literal of its value.Copyright © 2013-2015 JBoss, a division of Red Hat. All Rights Reserved.