Overview | Package | Class | Tree | Deprecated | Index | Help | |||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--DE.fub.inf.JVM.ClassGen.FindPattern
Constructor Summary | |
FindPattern(InstructionList il)
|
Method Summary | |
InstructionList | getInstructionList()
|
InstructionHandle[] | getMatch()
|
int | getMatchLength()
|
void | reread()
Rereads the instruction list, e.g. |
InstructionHandle | search(java.lang.String pattern,
InstructionHandle from,
CodeConstraint constraint)
Search for the given pattern in the InstructionList. |
InstructionHandle | search(java.lang.String pattern)
Start search beginning from the start of the given instruction list. |
InstructionHandle | search(java.lang.String pattern,
InstructionHandle from)
Start search beginning from `from'. |
InstructionHandle | search(java.lang.String pattern,
CodeConstraint constraint)
Start search beginning from the start of the given instruction list. |
void | setInstructionList(InstructionList il)
Defines a new instruction list. |
Methods inherited from class java.lang.Object | |
clone, equals, finalize, getClass, hashCode, notifyAll, notify, toString, wait, wait, wait |
Constructor Detail |
public FindPattern(InstructionList il)
il
- instruction list to search for given patternsMethod Detail |
public final void reread()
public final InstructionHandle search(java.lang.String pattern, InstructionHandle from, CodeConstraint constraint)
Example pattern:
search("(`BranchInstruction')`NOP'((`IF_ICMP__'|`GOTO')+`ISTORE__'`Instruction')*");
pattern
- the instruction pattern to search for, case is ignored
from
- where to start the search in the instruction list
constraint
- optional CodeConstraint to check the found code pattern for
given constraintspublic final InstructionHandle search(java.lang.String pattern)
pattern
- the instruction pattern to search for, case is ignoredpublic final InstructionHandle search(java.lang.String pattern, InstructionHandle from)
pattern
- the instruction pattern to search for, case is ignored
from
- where to start the search in the instruction listpublic final InstructionHandle search(java.lang.String pattern, CodeConstraint constraint)
pattern
- the instruction pattern to search for, case is ignored
constraint
- constraints to be checked on matching codepublic final int getMatchLength()
public final InstructionHandle[] getMatch()
public final void setInstructionList(InstructionList il)
il
- the new instuction listpublic final InstructionList getInstructionList()
Overview | Package | Class | Tree | Deprecated | Index | Help | |||
PREV CLASS | NEXT CLASS | FRAMES | NO FRAMES | ||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |