Package com.sun.codemodel.fmt
Class JStaticJavaFile.ChainFilter
java.lang.Object
com.sun.codemodel.fmt.JStaticJavaFile.ChainFilter
- All Implemented Interfaces:
JStaticJavaFile.LineFilter
- Enclosing class:
JStaticJavaFile
public static final class JStaticJavaFile.ChainFilter
extends Object
implements JStaticJavaFile.LineFilter
A
JStaticJavaFile.LineFilter
that combines two JStaticJavaFile.LineFilter
s.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final JStaticJavaFile.LineFilter
private final JStaticJavaFile.LineFilter
-
Constructor Summary
ConstructorsConstructorDescriptionChainFilter
(JStaticJavaFile.LineFilter first, JStaticJavaFile.LineFilter second) -
Method Summary
-
Field Details
-
first
-
second
-
-
Constructor Details
-
ChainFilter
-
-
Method Details
-
process
- Specified by:
process
in interfaceJStaticJavaFile.LineFilter
- Parameters:
line
- a non-null valid String that corresponds to one line. No '\n' included.- Returns:
- null to strip the line off. Otherwise the returned String will be written out. Do not add '\n' at the end of this string.
- Throws:
ParseException
- when for some reason there's an error in the line.
-