|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.simantics.databoard.parser.unparsing.DataTypePrinter
public class DataTypePrinter
Converts abstract syntax tree of data type to string.
Constructor Summary | |
---|---|
DataTypePrinter(java.lang.StringBuilder stringBuilder)
|
Method Summary | |
---|---|
DataTypeRepository |
getDataTypeRepository()
|
java.lang.StringBuilder |
getStringBuilder()
|
void |
print(DataType type)
Print type |
void |
printDefinitions(DataType type)
Print type definitions and definitions of referred types |
void |
setDataTypeRepository(DataTypeRepository repo)
|
void |
setLinedeed(boolean linefeed)
|
void |
setStringBuilder(java.lang.StringBuilder stringBuilder)
|
java.lang.String |
toString()
|
static java.lang.String |
toString(DataType dataType,
boolean linefeed)
Converts a data type to string. |
void |
visit(AstArrayType type)
|
void |
visit(AstAttribute attribute)
|
void |
visit(AstComponent component)
|
void |
visit(AstRecordType type)
|
void |
visit(AstTupleType type)
|
void |
visit(AstType type)
|
void |
visit(AstTypeDefinition definition)
|
void |
visit(AstTypeReference type)
|
void |
visit(AstUnionType type)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DataTypePrinter(java.lang.StringBuilder stringBuilder)
Method Detail |
---|
public DataTypeRepository getDataTypeRepository()
public void setDataTypeRepository(DataTypeRepository repo)
public java.lang.StringBuilder getStringBuilder()
public void setStringBuilder(java.lang.StringBuilder stringBuilder)
public void setLinedeed(boolean linefeed)
public void visit(AstTypeDefinition definition)
public void visit(AstType type)
public void visit(AstArrayType type)
public void visit(AstAttribute attribute)
public void visit(AstComponent component)
public void visit(AstRecordType type)
public void visit(AstTupleType type)
public void visit(AstTypeReference type)
public void visit(AstUnionType type)
public void print(DataType type)
type
- public void printDefinitions(DataType type)
type
- public java.lang.String toString()
toString
in class java.lang.Object
public static java.lang.String toString(DataType dataType, boolean linefeed)
dataType
- linefeed
- if true add line feed
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |