org.brains2b.typewriter
Class Literal

java.lang.Object
  extended byorg.brains2b.typewriter.Literal

public class Literal
extends java.lang.Object

Literal is a simple wrapper class which makes sure that a value supplied is written into the template as is for both String and char.

A String passed to Literal would be used in the source as "String", a char passed to Literal would be used as 'c'har, All other Strings and characters will be threated as being part of the code in one way or another

Version:
0.20 [27-08-2004]
Author:
dennis@brains2b.nl

Constructor Summary
Literal(char c)
          Constructor
Literal(java.lang.String value)
          Constructor
 
Method Summary
 java.lang.String toString()
          Overwritten to represent a String between apostrofes and a char between quotes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Literal

public Literal(java.lang.String value)
Constructor

Parameters:
value - String, the value which should be represented Literally

Literal

public Literal(char c)
Constructor

Parameters:
c - char, the char which should be represented Literally
Method Detail

toString

public java.lang.String toString()
Overwritten to represent a String between apostrofes and a char between quotes