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