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 wildcardsJiapiException
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 Rulepublic boolean match(java.lang.String s)
s
- String to matchpublic java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2001. Documenation generated February 9 2016.