org.acm.seguin.pretty
Class PrintSpecial

java.lang.Object
  extended by org.acm.seguin.pretty.PrintSpecial
Direct Known Subclasses:
PrintSpecialCategoryComment, PrintSpecialDefault, PrintSpecialJavadocComment, PrintSpecialMultiLineComment, PrintSpecialNewline, PrintSpecialSingleLineComment

public abstract class PrintSpecial
extends java.lang.Object

Consume unknonwn special tokens

Author:
Chris Seguin

Constructor Summary
PrintSpecial()
           
 
Method Summary
abstract  boolean isAcceptable(SpecialTokenData spec)
          Determines if this print special can handle the current object
abstract  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

PrintSpecial

public PrintSpecial()
Method Detail

isAcceptable

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

Parameters:
spec - Description of Parameter
Returns:
true if this one should process the input

process

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

Parameters:
node - the type of node this special is being processed for
spec - the special token data
Returns:
Description of the Returned Value