com.sun.codemodel.fmt
Class JStaticJavaFile.ChainFilter

java.lang.Object
  extended by com.sun.codemodel.fmt.JStaticJavaFile.ChainFilter
All Implemented Interfaces:
JStaticJavaFile.LineFilter
Enclosing class:
JStaticJavaFile

public static final class JStaticJavaFile.ChainFilter
extends java.lang.Object
implements JStaticJavaFile.LineFilter

A JStaticJavaFile.LineFilter that combines two JStaticJavaFile.LineFilters.


Constructor Summary
JStaticJavaFile.ChainFilter(JStaticJavaFile.LineFilter first, JStaticJavaFile.LineFilter second)
           
 
Method Summary
 java.lang.String process(java.lang.String line)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JStaticJavaFile.ChainFilter

public JStaticJavaFile.ChainFilter(JStaticJavaFile.LineFilter first,
                                   JStaticJavaFile.LineFilter second)
Method Detail

process

public java.lang.String process(java.lang.String line)
                         throws java.text.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:
java.text.ParseException - when for some reason there's an error in the line.


Copyright © 2005-2009 Sun Microsystems. All Rights Reserved.