Package com.sun.codemodel.fmt
Interface JStaticJavaFile.LineFilter
-
- All Known Implementing Classes:
JStaticJavaFile.ChainFilter
- Enclosing class:
- JStaticJavaFile
public static interface JStaticJavaFile.LineFilter
Filter that alters the Java source code.By implementing this interface, derived classes can modify the Java source file before it's written out.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
process(java.lang.String line)
-
-
-
Method Detail
-
process
java.lang.String process(java.lang.String line) throws java.text.ParseException
- 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:
java.text.ParseException
- when for some reason there's an error in the line.
-
-