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: * Copyright 1999
15: *
16: * Chris Seguin
17: */
18:
19: /**
20: * Consume unknonwn special tokens
21: *
22: *@author Chris Seguin
23: *@created October 14, 1999
24: *@date April 10, 1999
25: */
26: public class PrintSpecialDefault extends PrintSpecial {
27: /**
28: * Determines if this print special can handle the current object
29: *
30: *@param spec Description of Parameter
31: *@return true if this one should process the input
32: */
33: public boolean isAcceptable(SpecialTokenData spec) {
34: return true;
35: }
36:
37: /**
38: * Processes the special token
39: *
40: *@param node the type of node this special is being processed for
41: *@param spec the special token data
42: *@return Description of the Returned Value
43: */
44: public boolean process(Node node, SpecialTokenData spec) {
45: System.err.println("Unknown special token of type: "
46: + spec.getTokenType());
47: return false;
48: }
49: }
|