- 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
AJStaticJavaFile.LineFilter
that combines twoJStaticJavaFile.LineFilter
s.
-
-
Constructor Summary
Constructors Constructor Description ChainFilter(JStaticJavaFile.LineFilter first, JStaticJavaFile.LineFilter second)
-
-
-
Constructor Detail
-
ChainFilter
public ChainFilter(JStaticJavaFile.LineFilter first, JStaticJavaFile.LineFilter second)
-
-
Method Detail
-
process
public String process(String line) throws ParseException
- 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.
-
-