|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.upb.hni.vmagic.output.VhdlOutput
public class VhdlOutput
Collection of functions to generate VHDL output.
This class provides methods to convert an instance of a meta class to VHDL code. The generated
VHDL code can be converted to a String
, printed to System.out
or
can be written directly to a file or a Writer
.
Method Summary | |
---|---|
static void |
print(VhdlElement element)
Prints the VHDL representation of a VhdlElement to System.out . |
static void |
print(VhdlElement element,
VhdlCodeFormat format)
Prints the VHDL representation of a VhdlElement to System.out using
a custom code format. |
static void |
toFile(VhdlElement element,
java.lang.String fileName)
Writes the VHDL representation of a VhdlElement to a file. |
static void |
toFile(VhdlElement element,
VhdlCodeFormat format,
java.lang.String fileName)
Writes the VHDL representation of a VhdlElement to a file using a custom
code format. |
static java.lang.String |
toVhdlString(VhdlElement element)
Converts a VhdlElement to a string using the default code format. |
static java.lang.String |
toVhdlString(VhdlElement element,
VhdlCodeFormat format)
Converts a VhdlElement to a string using a custom code format. |
static void |
toWriter(VhdlElement element,
VhdlCodeFormat format,
java.io.Writer writer)
Outputs the VHDL representation of a VhdlElement to a Writer using
a custom code format. |
static void |
toWriter(VhdlElement element,
java.io.Writer writer)
Outputs the VHDL representation of a VhdlElement to a Writer . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.String toVhdlString(VhdlElement element)
VhdlElement
to a string using the default code format.
element
- the VHDL element
public static java.lang.String toVhdlString(VhdlElement element, VhdlCodeFormat format)
VhdlElement
to a string using a custom code format.
element
- the VHDL elementformat
- the custom code format
public static void toFile(VhdlElement element, java.lang.String fileName) throws java.io.IOException
VhdlElement
to a file.
The default code format is used to convert the VhdlElement
to VHDL code.
element
- the VHDL elementfileName
- the name of the file
java.io.IOException
- if an error occured while accessing the filepublic static void toFile(VhdlElement element, VhdlCodeFormat format, java.lang.String fileName) throws java.io.IOException
VhdlElement
to a file using a custom
code format.
element
- the VHDL elementformat
- the custom code formatfileName
- the name of the file
java.io.IOException
- if an error occured while accessing the filepublic static void toWriter(VhdlElement element, java.io.Writer writer) throws java.io.IOException
VhdlElement
to a Writer
.
The default code format is used to generate the VHDL output.
element
- the VHDL elementwriter
- the Writer
java.io.IOException
- if an error occured during writingpublic static void toWriter(VhdlElement element, VhdlCodeFormat format, java.io.Writer writer) throws java.io.IOException
VhdlElement
to a Writer
using
a custom code format.
element
- the VHDL elementformat
- the custom code formatwriter
- the Writer
java.io.IOException
- if an error occured during writingpublic static void print(VhdlElement element)
VhdlElement
to System.out
.
The default code format is used to convert the VhdlElement
to the string that
is printed.
element
- the VHDL elementpublic static void print(VhdlElement element, VhdlCodeFormat format)
VhdlElement
to System.out
using
a custom code format.
element
- the VHDL elementformat
- the custom code format
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |