|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.commons.nabla.forward.trimming.BytecodeTrimmer
public abstract class BytecodeTrimmer
Base class for code trimmers.
Constructor Summary | |
---|---|
protected |
BytecodeTrimmer(int lookahead)
Simple constructor. |
Method Summary | |
---|---|
void |
trim(org.objectweb.asm.tree.InsnList instructions)
Trim a list of instructions. |
protected abstract boolean |
trimWindow(org.objectweb.asm.tree.InsnList instructions,
org.objectweb.asm.tree.AbstractInsnNode[] window)
Trim the current window of lookahead instructions. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected BytecodeTrimmer(int lookahead)
lookahead
- number of lookahead instructionsMethod Detail |
---|
public void trim(org.objectweb.asm.tree.InsnList instructions)
instructions
- list of instructions to optimizeprotected abstract boolean trimWindow(org.objectweb.asm.tree.InsnList instructions, org.objectweb.asm.tree.AbstractInsnNode[] window)
instructions
- complete instructions list of instructions to trimwindow
- current instructions window (belongs to the list)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |