|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.brains2b.typewriter.Literal
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
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 |
public Literal(java.lang.String value)
value
- String, the value which should be represented Literallypublic Literal(char c)
c
- char, the char which should be represented LiterallyMethod Detail |
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |