public class TypePrinter extends Visitor
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
isInstantiated
The flag for instantiated types.
|
protected Printer |
printer
The printer utility.
|
protected java.util.Map<java.lang.Object,java.lang.Object> |
visited
The set of visited, complex types.
|
| Constructor and Description |
|---|
TypePrinter(Printer printer)
Create a new type printer.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
printAnnotations(Type t)
Print the specified type's annotations.
|
void |
printBody(ClassOrInterfaceT t)
Print the interfaces, fields, and methods of the specified class
or interface type.
|
void |
printSignature(FunctionOrMethodT t)
Print the specified function or method type's signature.
|
void |
printTagged(java.lang.String kind,
Tagged tag)
Print the specified tagged type.
|
void |
reset()
Reset this type printer.
|
void |
visit(AliasT t)
Print the specified type alias.
|
void |
visit(AnnotatedT t)
Print the specified annotated type.
|
void |
visit(ArrayT t)
Print the specified array type.
|
void |
visit(BooleanT t)
Print the specified boolean type.
|
void |
visit(ClassT t)
Print the specified class type.
|
void |
visit(EnumeratorT t)
Print the specified enumerator.
|
void |
visit(EnumT t)
Print the specified enum type.
|
void |
visit(ErrorT t)
Print the specified error type.
|
void |
visit(FunctionT t)
Print the specified function type.
|
void |
visit(InstantiatedT t)
Print the specified instantiated type.
|
void |
visit(InterfaceT t)
Print the specified interface type.
|
void |
visit(InternalT t)
Print the specified internal type.
|
void |
visit(LabelT t)
Print the specified label type.
|
void |
visit(MethodT t)
Print the specified method type.
|
void |
visit(NumberT t)
Print the specified number type.
|
void |
visit(PackageT t)
Print the specified package type.
|
void |
visit(Parameter t)
Print the specified type parameter.
|
void |
visit(ParameterizedT t)
Print the specified parameterized type.
|
void |
visit(PointerT t)
Print the specified pointer type.
|
void |
visit(StructT t)
Print the specified struct type.
|
void |
visit(TupleT t)
Print the specified tuple type.
|
void |
visit(UnionT t)
Print the specified union type.
|
void |
visit(UnitT t)
Print the specified unit type.
|
void |
visit(VariableT t)
Print the specified variable type.
|
void |
visit(VariantT t)
Print the specified variant typee.
|
void |
visit(VoidT t)
Print the specified void type.
|
dispatch, equals, hashCode, iterate, map, mapInPlace, unableToVisit, visitprotected final Printer printer
protected final java.util.Map<java.lang.Object,java.lang.Object> visited
protected boolean isInstantiated
public void reset()
public boolean printAnnotations(Type t)
t - The type.true if anything was printed.public void visit(BooleanT t)
public void visit(ErrorT t)
public void visit(InternalT t)
public void visit(LabelT t)
public void visit(NumberT t)
public void visit(PackageT t)
public void visit(Parameter t)
public void visit(UnitT t)
public void visit(VoidT t)
public void visit(ArrayT t)
public void printBody(ClassOrInterfaceT t)
t - The class or interface type.public void visit(ClassT t)
public void visit(InterfaceT t)
public void printSignature(FunctionOrMethodT t)
t - The function or method type.public void visit(FunctionT t)
public void visit(MethodT t)
public void visit(PointerT t)
public void printTagged(java.lang.String kind,
Tagged tag)
kind - The kind.tag - The tagged type.public void visit(StructT t)
public void visit(UnionT t)
public void visit(TupleT t)
public void visit(VariantT t)
public void visit(AliasT t)
public void visit(AnnotatedT t)
public void visit(EnumeratorT t)
public void visit(EnumT t)
public void visit(InstantiatedT t)
public void visit(ParameterizedT t)
public void visit(VariableT t)
Copyright © 2014. All Rights Reserved.