public static interface AntStructure.StructurePrinter
printHead(java.io.PrintWriter, org.apache.tools.ant.Project, java.util.Hashtable<java.lang.String, java.lang.Class<?>>, java.util.Hashtable<java.lang.String, java.lang.Class<?>>)
, printTargetDecl(java.io.PrintWriter)
and printTail(java.io.PrintWriter)
are called exactly once, printElementDecl(java.io.PrintWriter, org.apache.tools.ant.Project, java.lang.String, java.lang.Class<?>)
once for
each declared task and type.
Modifier and Type | Method and Description |
---|---|
void |
printElementDecl(PrintWriter out,
Project p,
String name,
Class<?> element)
Print the definition for a given element.
|
void |
printHead(PrintWriter out,
Project p,
Hashtable<String,Class<?>> tasks,
Hashtable<String,Class<?>> types)
Prints the header of the generated output.
|
void |
printTail(PrintWriter out)
Prints the trailer.
|
void |
printTargetDecl(PrintWriter out)
Prints the definition for the target element.
|
void printElementDecl(PrintWriter out, Project p, String name, Class<?> element)
out
- PrintWriter to write to.p
- Project instance for the current taskname
- element name.element
- class of the defined element.void printHead(PrintWriter out, Project p, Hashtable<String,Class<?>> tasks, Hashtable<String,Class<?>> types)
out
- PrintWriter to write to.p
- Project instance for the current tasktasks
- map (name to implementing class)types
- map (name to implementing class)
data types.void printTail(PrintWriter out)
out
- PrintWriter to write to.void printTargetDecl(PrintWriter out)
out
- PrintWriter to write to.