de.upb.hni.vmagic.output
Class CustomCodeFormat

java.lang.Object
  extended by de.upb.hni.vmagic.output.CustomCodeFormat
All Implemented Interfaces:
VhdlCodeFormat

public class CustomCodeFormat
extends java.lang.Object
implements VhdlCodeFormat

Customizable VHDL code format.


Field Summary
 
Fields inherited from interface de.upb.hni.vmagic.output.VhdlCodeFormat
DEFAULT
 
Constructor Summary
CustomCodeFormat()
          Creates a custom code format.
 
Method Summary
 java.lang.String getIndentationString()
          Returns the indentation string.
 java.lang.String getLineSeparator()
          Returns the line separator.
 boolean isAlign()
          Returns if the output should be aligned.
 boolean isRepeatLabels()
          Returns if labels are repeated at the end of a block.
 boolean isUpperCaseKeywords()
          Returns if upper case keywords are used.
 void setAlign(boolean align)
          Sets if the output should be aligned.
 void setIndentationString(java.lang.String indentationString)
          Sets the indentation string.
 void setLineSeparator(java.lang.String lineSeparator)
          Sets the line separator.
 void setRepeatLabels(boolean repeatLabels)
          Sets if labels should be repeated at the end of a block.
 void setUpperCaseKeywords(boolean upperCaseKeywords)
          Sets if upper case keywords should be used.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomCodeFormat

public CustomCodeFormat()
Creates a custom code format.

Method Detail

getLineSeparator

public java.lang.String getLineSeparator()
Returns the line separator.

Specified by:
getLineSeparator in interface VhdlCodeFormat
Returns:
the line separator

setLineSeparator

public void setLineSeparator(java.lang.String lineSeparator)
Sets the line separator.

Parameters:
lineSeparator - the line separator

getIndentationString

public java.lang.String getIndentationString()
Returns the indentation string.

Specified by:
getIndentationString in interface VhdlCodeFormat
Returns:
the indentation string

setIndentationString

public void setIndentationString(java.lang.String indentationString)
Sets the indentation string.

Parameters:
indentationString - the indentation string

isAlign

public boolean isAlign()
Returns if the output should be aligned.

Specified by:
isAlign in interface VhdlCodeFormat
Returns:
true, if the code should be aligned

setAlign

public void setAlign(boolean align)
Sets if the output should be aligned.

Parameters:
align - true, if the code should be aligned

isRepeatLabels

public boolean isRepeatLabels()
Returns if labels are repeated at the end of a block.

Specified by:
isRepeatLabels in interface VhdlCodeFormat
Returns:
true, if labels should be repeated

setRepeatLabels

public void setRepeatLabels(boolean repeatLabels)
Sets if labels should be repeated at the end of a block.

Parameters:
repeatLabels - true, if labels should be repeated

isUpperCaseKeywords

public boolean isUpperCaseKeywords()
Returns if upper case keywords are used.

Specified by:
isUpperCaseKeywords in interface VhdlCodeFormat
Returns:
true, if upper case keywords are used

setUpperCaseKeywords

public void setUpperCaseKeywords(boolean upperCaseKeywords)
Sets if upper case keywords should be used.

Parameters:
upperCaseKeywords - true, if upper case keyword should be used