Top Description Fields Constructors Methods
com.sun.tools.xjc.writer

public Class SignatureWriter

extends Object
Class Inheritance
Imports
java.io.IOException, .Writer, java.util.Collection, .Comparator, .HashMap, .Iterator, .Map, .Set, .TreeSet, com.sun.codemodel.JClass, .JClassContainer, .JDefinedClass, .JPackage, .JType, com.sun.tools.xjc.outline.ClassOutline, .FieldOutline, .Outline

Dumps an annotated grammar in a simple format that makes signature check easy.
Author
Kohsuke Kawaguchi ([email protected])

Field Summary

Modifier and TypeField and Description
private final Collection<? extends ClassOutline>
classes

All the ClassItems in this grammar.

private final Map<JDefinedClass, ClassOutline>
classSet

Map from content interfaces to ClassItem.

private int
private final Writer

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private void
dump()

private void
private void
private void
private void
private void
private String
printName(JType t)

Get the display name of a type.

public static void
write(Outline model, Writer out)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

classesback to summary
private final Collection<? extends ClassOutline> classes

All the ClassItems in this grammar.

classSetback to summary
private final Map<JDefinedClass, ClassOutline> classSet

Map from content interfaces to ClassItem.

indentback to summary
private int indent
outback to summary
private final Writer out

Constructor Detail

SignatureWriterback to summary
private SignatureWriter(Outline model, Writer out)

Method Detail

dumpback to summary
private void dump() throws IOException
dumpback to summary
private void dump(JPackage pkg) throws IOException
dumpback to summary
private void dump(ClassOutline ci) throws IOException
dumpChildrenback to summary
private void dumpChildren(JClassContainer cont) throws IOException
printIndentback to summary
private void printIndent() throws IOException
printlnback to summary
private void println(String s) throws IOException
printNameback to summary
private String printName(JType t)

Get the display name of a type.

writeback to summary
public static void write(Outline model, Writer out) throws IOException