Class PeepholeRule


public class PeepholeRule
extends java.lang.Object

Definition of a peephole rule. A match rule is a set of lines that may contain wildcard markers such as %1, %2, %3 etc up to %9. A wildcard will match anything, but a rule will only match if the wildcard maps to the same value in each line. The replacement rules are run if the match rules match, and may also contain wildcards that evaluate to the original matched value.

See Also:
for an example.

Constructor Summary
PeepholeRule(java.lang.String[] match, java.lang.String[] replace)
Method Summary
 java.lang.String[] getMatch()
 java.lang.String[] getReplace()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public PeepholeRule(java.lang.String[] match,
                    java.lang.String[] replace)
Method Detail


public java.lang.String[] getMatch()


public java.lang.String[] getReplace()