|
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.ModifierMatcher
Field Summary | |
static ModifierMatcher |
allowAll
|
static ModifierMatcher |
denyAll
|
Constructor Summary | |
ModifierMatcher()
|
|
ModifierMatcher(int and,
int xor)
|
Method Summary | |
ModifierMatcher |
and(ModifierMatcher mm)
|
java.lang.Object |
clone()
|
ModifierMatcher |
forbidAccess(int accessModif,
boolean andAbove)
|
ModifierMatcher |
forbidModifier(int modifier)
|
ModifierMatcher |
forceAccess(int accessModif,
boolean andAbove)
Creates a new ModifierMatcher, that matches only modifiers, we also match and also forces the access rights, to be accessModif (or less restrictive). |
ModifierMatcher |
forceModifier(int modifier)
|
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 |
matches(int modifiers)
|
boolean |
matchesSub(Identifier ident,
java.lang.String name)
Returns true, if there may be a sub ident, that is matched by this matcher. |
ModifierMatcher |
or(ModifierMatcher mm)
|
void |
setOption(java.lang.String option,
java.util.Collection values)
|
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static ModifierMatcher denyAll
public static ModifierMatcher allowAll
Constructor Detail |
public ModifierMatcher()
public ModifierMatcher(int and, int xor)
Method Detail |
public void setOption(java.lang.String option, java.util.Collection values)
setOption
in interface OptionHandler
public ModifierMatcher and(ModifierMatcher mm)
public ModifierMatcher or(ModifierMatcher mm)
public ModifierMatcher forceAccess(int accessModif, boolean andAbove)
accessModif
- the access modifier. Use 0 for package access,
or Modifier.PRIVATE/PROTECTED/PUBLIC.andAbove
- allow to be less restrictive.
public ModifierMatcher forbidAccess(int accessModif, boolean andAbove)
public final ModifierMatcher forceModifier(int modifier)
public final ModifierMatcher forbidModifier(int modifier)
public final boolean matches(int modifiers)
public final boolean matches(Identifier ident)
IdentifierMatcher
matches
in interface IdentifierMatcher
public final 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 final java.lang.String getNextComponent(Identifier ident)
IdentifierMatcher
getNextComponent
in interface IdentifierMatcher
public java.lang.Object clone()
|
Jode 1.90-CVS Build Aug 6, 2004 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |