|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.lang.model.util.AbstractElementVisitor6<R,P>
javax.lang.model.util.SimpleElementVisitor6<PrintingProcessor.PrintingElementVisitor,java.lang.Boolean>
com.sun.tools.javac.processing.PrintingProcessor.PrintingElementVisitor
public static class PrintingProcessor.PrintingElementVisitor
Used for the -Xprint option and called by Elements.printElements
| Field Summary | |
|---|---|
(package private) Elements |
elementUtils
|
(package private) int |
indentation
|
private static java.lang.String[] |
spaces
|
(package private) java.io.PrintWriter |
writer
|
| Fields inherited from class javax.lang.model.util.SimpleElementVisitor6 |
|---|
DEFAULT_VALUE |
| Constructor Summary | |
|---|---|
PrintingProcessor.PrintingElementVisitor(java.io.Writer w,
Elements elementUtils)
|
|
| Method Summary | |
|---|---|
protected PrintingProcessor.PrintingElementVisitor |
defaultAction(Element e,
java.lang.Boolean newLine)
The default action for visit methods. |
void |
flush()
|
private void |
indent()
|
private void |
printAnnotations(Element e)
|
private void |
printAnnotationsInline(Element e)
|
private void |
printDocComment(Element e)
|
private void |
printFormalTypeParameters(ExecutableElement executable)
|
private void |
printFormalTypeParameters(java.util.List<? extends TypeParameterElement> typeParams,
boolean pad)
|
private void |
printFormalTypeParameters(TypeElement type)
|
private void |
printInterfaces(TypeElement e)
|
private void |
printModifiers(Element e)
|
private void |
printParameters(ExecutableElement e)
|
private void |
printThrows(ExecutableElement e)
|
PrintingProcessor.PrintingElementVisitor |
visitExecutable(ExecutableElement e,
java.lang.Boolean p)
Visits an executable element. This implementation calls defaultAction. |
PrintingProcessor.PrintingElementVisitor |
visitPackage(PackageElement e,
java.lang.Boolean p)
Visits a package element. This implementation calls defaultAction. |
PrintingProcessor.PrintingElementVisitor |
visitType(TypeElement e,
java.lang.Boolean p)
Visits a type element. This implementation calls defaultAction. |
PrintingProcessor.PrintingElementVisitor |
visitTypeParameter(TypeParameterElement e,
java.lang.Boolean p)
Visits a type parameter element. This implementation calls defaultAction. |
PrintingProcessor.PrintingElementVisitor |
visitVariable(VariableElement e,
java.lang.Boolean newLine)
Visits a variable element. This implementation calls defaultAction. |
| Methods inherited from class javax.lang.model.util.AbstractElementVisitor6 |
|---|
visit, visit, visitUnknown |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
int indentation
final java.io.PrintWriter writer
final Elements elementUtils
private static final java.lang.String[] spaces
| Constructor Detail |
|---|
public PrintingProcessor.PrintingElementVisitor(java.io.Writer w,
Elements elementUtils)
| Method Detail |
|---|
protected PrintingProcessor.PrintingElementVisitor defaultAction(Element e,
java.lang.Boolean newLine)
SimpleElementVisitor6SimpleElementVisitor6.DEFAULT_VALUE; subclasses will
commonly override this method.
defaultAction in class SimpleElementVisitor6<PrintingProcessor.PrintingElementVisitor,java.lang.Boolean>e - the element to processnewLine - a visitor-specified parameter
DEFAULT_VALUE unless overridden
public PrintingProcessor.PrintingElementVisitor visitExecutable(ExecutableElement e,
java.lang.Boolean p)
SimpleElementVisitor6defaultAction.
visitExecutable in interface ElementVisitor<PrintingProcessor.PrintingElementVisitor,java.lang.Boolean>visitExecutable in class SimpleElementVisitor6<PrintingProcessor.PrintingElementVisitor,java.lang.Boolean>e - the element to visitp - a visitor-specified parameter
defaultAction
public PrintingProcessor.PrintingElementVisitor visitType(TypeElement e,
java.lang.Boolean p)
SimpleElementVisitor6defaultAction.
visitType in interface ElementVisitor<PrintingProcessor.PrintingElementVisitor,java.lang.Boolean>visitType in class SimpleElementVisitor6<PrintingProcessor.PrintingElementVisitor,java.lang.Boolean>e - the element to visitp - a visitor-specified parameter
defaultAction
public PrintingProcessor.PrintingElementVisitor visitVariable(VariableElement e,
java.lang.Boolean newLine)
SimpleElementVisitor6defaultAction.
visitVariable in interface ElementVisitor<PrintingProcessor.PrintingElementVisitor,java.lang.Boolean>visitVariable in class SimpleElementVisitor6<PrintingProcessor.PrintingElementVisitor,java.lang.Boolean>e - the element to visitnewLine - a visitor-specified parameter
defaultAction
public PrintingProcessor.PrintingElementVisitor visitTypeParameter(TypeParameterElement e,
java.lang.Boolean p)
SimpleElementVisitor6defaultAction.
visitTypeParameter in interface ElementVisitor<PrintingProcessor.PrintingElementVisitor,java.lang.Boolean>visitTypeParameter in class SimpleElementVisitor6<PrintingProcessor.PrintingElementVisitor,java.lang.Boolean>e - the element to visitp - a visitor-specified parameter
defaultAction
public PrintingProcessor.PrintingElementVisitor visitPackage(PackageElement e,
java.lang.Boolean p)
SimpleElementVisitor6defaultAction.
visitPackage in interface ElementVisitor<PrintingProcessor.PrintingElementVisitor,java.lang.Boolean>visitPackage in class SimpleElementVisitor6<PrintingProcessor.PrintingElementVisitor,java.lang.Boolean>e - the element to visitp - a visitor-specified parameter
defaultActionpublic void flush()
private void printDocComment(Element e)
private void printModifiers(Element e)
private void printFormalTypeParameters(ExecutableElement executable)
private void printFormalTypeParameters(TypeElement type)
private void printFormalTypeParameters(java.util.List<? extends TypeParameterElement> typeParams,
boolean pad)
private void printAnnotationsInline(Element e)
private void printAnnotations(Element e)
private void printParameters(ExecutableElement e)
private void printInterfaces(TypeElement e)
private void printThrows(ExecutableElement e)
private void indent()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||