public class WrapReservedJavaWords extends Object implements StringProcessor
| Constructor and Description | 
|---|
| WrapReservedJavaWords() | 
| Modifier and Type | Method and Description | 
|---|---|
| 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. | 
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.Copyright © 2000–2020 The Apache Software Foundation. All rights reserved.