com.sun.tools.xjc.generator.util
public abstract class WhitespaceNormalizer extends Object
| Field Summary | |
|---|---|
| static WhitespaceNormalizer | COLLAPSE |
| static WhitespaceNormalizer | PRESERVE |
| static WhitespaceNormalizer | REPLACE |
| Method Summary | |
|---|---|
| abstract JExpression | generate(JCodeModel codeModel, JExpression literal)
Generates the expression that normalizes
the given expression (which evaluates to java.lang.String).
|
| static WhitespaceNormalizer | parse(String method)
Parses "preserve","replace" or "collapse" into
the corresponding WhitespaceNormalizer object.
|
Parameters: codeModel The owner code model object under which a new expression will be created.
Parameters: method Either "preserve", "replace", or "collapse"
Throws: IllegalArgumentException when the specified method is invalid.