|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.torque.generator.processor.string.WrapReservedJavaWords
public class WrapReservedJavaWords
Processes an input String as follows: If the input String is a reserved word in java, a suffix and/or prefix is appended to the input String and the result is returned; otherwise the input string is returned unchanged.
| Constructor Summary | |
|---|---|
WrapReservedJavaWords()
|
|
| Method Summary | |
|---|---|
String |
process(String toProcess)
Checks whether the input is a reserved java word. |
void |
setAppendWhenReserved(String suffix)
Sets the suffix to be appended if the input is a reserved word. |
void |
setPrependWhenReserved(String prefix)
Sets the prefix to be prepended if the input is a reserved word. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WrapReservedJavaWords()
| Method Detail |
|---|
public void setPrependWhenReserved(String prefix)
prefix - the new prefix, not null.
NullPointerException - if prefix is null.public void setAppendWhenReserved(String suffix)
suffix - the new suffix, not null.
NullPointerException - if suffix is null.public String process(String toProcess)
process in interface StringProcessortoProcess - the input.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||