objectivehtml.ohtmlc
Class ObjectiveHtmlCompiler

java.lang.Object
  |
  +--objectivehtml.ohtmlc.ObjectiveHtmlCompiler

public class ObjectiveHtmlCompiler
extends java.lang.Object

This is the main class for the Objective Html Comp;iler (ohtmlc) compiler tool. It contains the main execution method and also has methods for writing out the OHtml code.


Field Summary
static java.lang.String DEFAULT_CHARSET
          The default output character encoding
static int TAB_CLASS_DECL
          The tabbing for class declaration
static int TAB_CONSTRUCTOR_DECL
          The tabbing for constructor declaration
static int TAB_CONSTRUCTOR_PROPERTIES
          The tabbing for constructor properties
static int TAB_HTMLWIDGET_INST
          The tabbing for htmlwidget instantiation
static int TAB_HTMLWIDGET_PROPERTIES
          The tabbing for htmlwidget properties
static int TAB_MEMBER_DECL
          The tabbing for member declarations
 
Constructor Summary
ObjectiveHtmlCompiler()
           
 
Method Summary
static java.lang.String generateTabs(int nTabSpace)
          Generates tabbing space.
static java.lang.String getClassName(HtmlWidget objHtmlWidget)
          Gets the class name of the HtmlWidget.
 java.lang.String getObjectRef()
          Gets a new unique object name for a temporary variable.
 java.util.Set getUnicodes()
          Gets the set of unicode characters that need to be escaped.
static void main(java.lang.String[] asOptions)
           
static void printUsageInfo()
           
 void setUnicodes(java.util.Set stUnicodes)
          Sets the set of unicode characters that need to be escaped.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CHARSET

public static final java.lang.String DEFAULT_CHARSET
The default output character encoding

TAB_CLASS_DECL

public static final int TAB_CLASS_DECL
The tabbing for class declaration

TAB_MEMBER_DECL

public static final int TAB_MEMBER_DECL
The tabbing for member declarations

TAB_CONSTRUCTOR_DECL

public static final int TAB_CONSTRUCTOR_DECL
The tabbing for constructor declaration

TAB_CONSTRUCTOR_PROPERTIES

public static final int TAB_CONSTRUCTOR_PROPERTIES
The tabbing for constructor properties

TAB_HTMLWIDGET_INST

public static final int TAB_HTMLWIDGET_INST
The tabbing for htmlwidget instantiation

TAB_HTMLWIDGET_PROPERTIES

public static final int TAB_HTMLWIDGET_PROPERTIES
The tabbing for htmlwidget properties
Constructor Detail

ObjectiveHtmlCompiler

public ObjectiveHtmlCompiler()
Method Detail

main

public static void main(java.lang.String[] asOptions)

printUsageInfo

public static final void printUsageInfo()

getObjectRef

public java.lang.String getObjectRef()
Gets a new unique object name for a temporary variable.
Returns:
a new unique object name

getClassName

public static final java.lang.String getClassName(HtmlWidget objHtmlWidget)
Gets the class name of the HtmlWidget.
Parameters:
objHtmlWidget - the HtmlWidget object
Returns:
the class name

generateTabs

public static final java.lang.String generateTabs(int nTabSpace)
Generates tabbing space.
Parameters:
nTabSpace - the number of tabs to generate
Returns:
a String object with the tabs specified

setUnicodes

public void setUnicodes(java.util.Set stUnicodes)
Sets the set of unicode characters that need to be escaped.
Parameters:
stUnicodes - the unicode characters to be escaped
See Also:
getUnicodes()

getUnicodes

public java.util.Set getUnicodes()
Gets the set of unicode characters that need to be escaped.
Returns:
the set of unicode characters that need to be escaped
See Also:
setUnicodes(Set)