public abstract class NQOptimizationByteCodeTestCaseBase extends java.lang.Object implements TestLifeCycle, OptOutNoFileSystemData
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASSNAME |
protected LocalVariable |
DATA_VAR |
static int |
NO_MODIFIERS |
protected Label |
START_LABEL |
protected LocalVariable |
THIS_VAR |
| Constructor and Description |
|---|
NQOptimizationByteCodeTestCaseBase() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract void |
assertOptimization(Expression expression) |
protected MemberRef |
createFieldReference(Type parent,
java.lang.String name,
Type type) |
protected Label |
createLabel() |
protected Label |
createLabel(boolean startsBlock) |
protected MemberRef |
createMethodReference(Type parent,
java.lang.String name,
Type[] args,
Type ret) |
protected abstract void |
generateMethodBody(MethodEditor method) |
void |
setUp() |
void |
tearDown() |
void |
testOptimization() |
public static final int NO_MODIFIERS
public static final java.lang.String CLASSNAME
protected final LocalVariable THIS_VAR
protected final LocalVariable DATA_VAR
protected final Label START_LABEL
public void setUp()
throws java.lang.Exception
setUp in interface TestLifeCyclejava.lang.Exceptionpublic void tearDown()
throws java.lang.Exception
tearDown in interface TestLifeCyclejava.lang.Exceptionpublic void testOptimization()
throws java.lang.Exception
java.lang.Exceptionprotected MemberRef createMethodReference(Type parent, java.lang.String name, Type[] args, Type ret)
protected MemberRef createFieldReference(Type parent, java.lang.String name, Type type)
protected Label createLabel()
protected Label createLabel(boolean startsBlock)
protected abstract void generateMethodBody(MethodEditor method)
protected abstract void assertOptimization(Expression expression) throws java.lang.Exception
java.lang.Exception