|
Mirror API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.sun.mirror.util.DeclarationVisitors
public class DeclarationVisitors
Utilities to create specialized DeclarationVisitor instances.
Field Summary | |
---|---|
static DeclarationVisitor |
NO_OP
A visitor that has no side effects and keeps no state. |
Method Summary | |
---|---|
static DeclarationVisitor |
getDeclarationScanner(DeclarationVisitor pre,
DeclarationVisitor post)
Return a DeclarationVisitor that will scan the declaration structure, visiting declarations contained in another declaration. |
static DeclarationVisitor |
getSourceOrderDeclarationScanner(DeclarationVisitor pre,
DeclarationVisitor post)
Return a DeclarationVisitor that will scan the declaration structure, visiting declarations contained in another declaration in source code order. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final DeclarationVisitor NO_OP
Method Detail |
---|
public static DeclarationVisitor getDeclarationScanner(DeclarationVisitor pre, DeclarationVisitor post)
The pre and post
DeclarationVisitor parameters specify,
respectively, the processing the scanner will do before or
after visiting the contained declarations. If only one of pre
and post processing is needed, use DeclarationVisitors.NO_OP
for the
other parameter.
pre
- visitor representing processing to do before
visiting contained declarations.post
- visitor representing processing to do after
visiting contained declarations.public static DeclarationVisitor getSourceOrderDeclarationScanner(DeclarationVisitor pre, DeclarationVisitor post)
The pre and post
DeclarationVisitor parameters specify,
respectively, the processing the scanner will do before or
after visiting the contained declarations. If only one of pre
and post processing is needed, use DeclarationVisitors.NO_OP
for the other parameter.
pre
- visitor representing processing to do before
visiting contained declarations.post
- visitor representing processing to do after
visiting contained declarations.
|
Mirror API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |