public class Rule
extends java.lang.Object
implements java.lang.Comparable
Rules can have wildcards.
Rules are ordered according to their precedence.
| Constructor and Description |
|---|
Rule(java.lang.String rule)
Creates a rule used used by InstrumentationDescriptor to
determine whether a particular class needs to be instrumented.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(java.lang.Object o)
The precedence determines the order of Rules.
|
boolean |
equals(java.lang.Object o)
Two rules are equal if the strings which represent them equals.
|
double |
getPrecedence()
Get a precedence of this Rule.
|
int |
hashCode() |
boolean |
isMoreSignificant(Rule other)
Checks whether this Rule is more significant than the given Rule.
|
boolean |
match(java.lang.String s)
Check if a given String matches this Rule.
|
java.lang.String |
toString() |
public Rule(java.lang.String rule)
throws JiapiException
rule - a rule can be a classname and it can contain wildcardsJiapiExceptionpublic int compareTo(java.lang.Object o)
compareTo in interface java.lang.Comparableo - other Rulepublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - other Rulepublic double getPrecedence()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean isMoreSignificant(Rule other)
other - other Rulepublic boolean match(java.lang.String s)
s - String to matchpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2001. Documenation generated January 12 2013.