|
Jode 1.90-CVS Build Aug 6, 2004 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jode.obfuscator.modules.MultiIdentifierMatcher
Field Summary | |
static boolean |
AND
Useful constant for giving to the constructor. |
static boolean |
OR
Useful constant for giving to the constructor. |
Constructor Summary | |
MultiIdentifierMatcher()
Create an empty MultiIdentifierMatcher. |
|
MultiIdentifierMatcher(boolean isOr,
IdentifierMatcher[] matchers)
Create an IdentifierMatcher out of other matchers. |
Method Summary | |
java.lang.String |
getNextComponent(Identifier ident)
Returns the unique name of the single sub item, for which matches or matchesSub returns true. |
boolean |
matches(Identifier ident)
Returns true, if the ident is matched by this matcher. |
boolean |
matchesSub(Identifier ident,
java.lang.String name)
Returns true, if there may be a sub ident, that is matched by this matcher. |
void |
setOption(java.lang.String option,
java.util.Collection values)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static boolean OR
public static boolean AND
Constructor Detail |
public MultiIdentifierMatcher()
public MultiIdentifierMatcher(boolean isOr, IdentifierMatcher[] matchers)
isOr
- if true, match should return the logical (shortcut)
or of the underlying matchers, if false it returns the logical and.matchers
- the underlying matchersMethod Detail |
public void setOption(java.lang.String option, java.util.Collection values)
setOption
in interface OptionHandler
public boolean matches(Identifier ident)
IdentifierMatcher
matches
in interface IdentifierMatcher
public boolean matchesSub(Identifier ident, java.lang.String name)
IdentifierMatcher
matchesSub
in interface IdentifierMatcher
name
- the name of the sub ident, or null if every
name is okay.public java.lang.String getNextComponent(Identifier ident)
IdentifierMatcher
getNextComponent
in interface IdentifierMatcher
|
Jode 1.90-CVS Build Aug 6, 2004 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |