3 * Please visit http://radeox.org/ for updates and contact.
5 * --LICENSE NOTICE-- This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser
6 * General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any
9 * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
12 * You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free
13 * Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA --LICENSE NOTICE--
16 package org.plog4u.wiki.macro.code;
18 import java.util.HashMap;
19 import java.util.HashSet;
21 import org.radeox.macro.code.SourceCodeFormatter;
24 * Java CodeFilter colourizes C# source code
27 public class JavaCodeFilter extends AbstractCPPBasedCodeFilter implements SourceCodeFormatter {
29 private static HashMap KEYWORD_SET = new HashMap();
31 private static final String[] KEYWORDS =
86 private static final String[] OBJECT_WORDS =
123 private static HashSet OBJECT_SET = new HashSet();
126 for (int i = 0; i < KEYWORDS.length; i++) {
127 //KEYWORD_SET.put(KEYWORDS[i], ""+KEYWORDS[i]+"");
128 createHashMap(KEYWORD_SET, KEYWORDS[i]);
130 for (int i = 0; i < OBJECT_WORDS.length; i++) {
131 OBJECT_SET.add(OBJECT_WORDS[i]);
135 public JavaCodeFilter() {
139 * @return Returns the KEYWORD_SET.
141 public HashMap getKeywordSet() {
145 public String getName() {
150 * @return Returns the OBJECT_SET.
152 public HashSet getObjectSet() {