01: /*
02: * Author: Chris Seguin
03: *
04: * This software has been developed under the copyleft
05: * rules of the GNU General Public License. Please
06: * consult the GNU General Public License for more
07: * details about use and distribution of this software.
08: */
09: package org.acm.seguin.pretty;
10:
11: import net.sourceforge.jrefactory.ast.Node;
12:
13: /**
14: * Consume unknonwn special tokens
15: *
16: *@author Chris Seguin
17: *@created October 14, 1999
18: *@date April 10, 1999
19: */
20: public abstract class PrintSpecial {
21: /**
22: * Determines if this print special can handle the current object
23: *
24: *@param spec Description of Parameter
25: *@return true if this one should process the input
26: */
27: public abstract boolean isAcceptable(SpecialTokenData spec);
28:
29: /**
30: * Processes the special token
31: *
32: *@param node the type of node this special is being processed for
33: *@param spec the special token data
34: *@return Description of the Returned Value
35: */
36: public abstract boolean process(Node node, SpecialTokenData spec);
37: }
|