public class DefaultMethodBodyCreator extends Object implements MethodBodyCreator
MethodBodyCreator
that simply returns 0 or null depending on the methods return typeModifier and Type | Field and Description |
---|---|
static DefaultMethodBodyCreator |
INSTANCE
The singleton instance.
|
Modifier and Type | Method and Description |
---|---|
void |
overrideMethod(org.jboss.classfilewriter.ClassMethod method,
Method superclassMethod)
Generate an overridden method.
|
public static final DefaultMethodBodyCreator INSTANCE
public void overrideMethod(org.jboss.classfilewriter.ClassMethod method, Method superclassMethod)
overrideMethod
in interface MethodBodyCreator
method
- the method to populatesuperclassMethod
- the method to overrideCopyright © 2012 JBoss by Red Hat. All Rights Reserved.