|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectalt.jiapi.Rule
public class Rule
Implements a Rule in an InstrumentationDescriptor. Rules determine if a given class matches a certain InstrumentationDescriptor.
Rules can have wildcards.
Rules are ordered according to their precedence.
Constructor Summary | |
---|---|
Rule(java.lang.String rule)
Creates a rule used used by InstrumentationDescriptor to determine whether a particular class needs to be instrumented. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Rule(java.lang.String rule) throws JiapiException
rule
- a rule can be a classname and it can contain wildcards
JiapiException
Method Detail |
---|
public int compareTo(java.lang.Object o)
compareTo
in interface java.lang.Comparable
o
- other Rulepublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- other Rulepublic double getPrecedence()
public int hashCode()
hashCode
in class java.lang.Object
public boolean isMoreSignificant(Rule other)
other
- other Rule
public boolean match(java.lang.String s)
s
- String to match
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |