public class ContextMatcher extends java.lang.Object implements ClassMatcher
This class needs to perform quite a bit of computations in order to gather the network of class releationships, so you are allowed to reuse it should you
| Constructor and Description |
|---|
ContextMatcher(RootDoc root,
java.util.regex.Pattern pattern,
Options options,
boolean keepParentHide)
Builds the context matcher
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(ClassDoc cd)
Returns the options for the specified class.
|
void |
setContextCenter(java.util.regex.Pattern pattern)
Can be used to setup a different pattern for this context matcher.
|
public ContextMatcher(RootDoc root,
java.util.regex.Pattern pattern,
Options options,
boolean keepParentHide)
throws java.io.IOException
root - The root doc returned by JavaDocpattern - The pattern that will match the "center" of this
contextkeepParentHide - If true, parent option hide patterns will be
preserved, so that classes hidden by the options won't
be shown in the contextjava.io.IOExceptionpublic void setContextCenter(java.util.regex.Pattern pattern)
This can be used to speed up subsequent matching with the same global options, since the class network informations will be reused.
pattern - public boolean matches(ClassDoc cd)
ClassMatchermatches in interface ClassMatcherorg.umlgraph.doclet.ClassMatcher#matches(com.sun.javadoc.ClassDoc)