org.acm.seguin.pretty
Class PrintSpecialNewline

java.lang.Object
  extended by org.acm.seguin.pretty.PrintSpecial
      extended by org.acm.seguin.pretty.PrintSpecialNewline

public class PrintSpecialNewline
extends PrintSpecial

Consume newline (whitespace) special tokens

Author:
Chris Seguin

Constructor Summary
PrintSpecialNewline()
           
 
Method Summary
 boolean isAcceptable(SpecialTokenData spec)
          Determines if this print special can handle the current object
 boolean process(net.sourceforge.jrefactory.ast.Node node, SpecialTokenData spec)
          Processes the special token
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintSpecialNewline

public PrintSpecialNewline()
Method Detail

isAcceptable

public boolean isAcceptable(SpecialTokenData spec)
Determines if this print special can handle the current object

Specified by:
isAcceptable in class PrintSpecial
Parameters:
spec - Description of Parameter
Returns:
true if this one should process the input

process

public boolean process(net.sourceforge.jrefactory.ast.Node node,
                       SpecialTokenData spec)
Processes the special token

Specified by:
process in class PrintSpecial
Parameters:
node - the type of node this special is being processed for
spec - the special token data
Returns:
Description of the Returned Value