org.jboss.jdeparser.fmt
Class JStaticJavaFile.ChainFilter
java.lang.Object
org.jboss.jdeparser.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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JStaticJavaFile.ChainFilter
public JStaticJavaFile.ChainFilter(JStaticJavaFile.LineFilter first,
JStaticJavaFile.LineFilter second)
process
public String process(String line)
throws ParseException
- Specified by:
process
in interface JStaticJavaFile.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.
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.