JavaDoq 1.0 API

com.javadoq.jjtree.ast
Class HTMLColorizeVisitor

java.lang.Object
  extended by com.javadoq.jjtree.ast.TokenVisitor
      extended by com.javadoq.jjtree.ast.TokenTransformVisitor
          extended by com.javadoq.jjtree.ast.HTMLColorizeVisitor
All Implemented Interfaces:
JJTreeParserConstants, JJTreeParserVisitor
Direct Known Subclasses:
HTMLConversionVisitor

public abstract class HTMLColorizeVisitor
extends TokenTransformVisitor
implements JJTreeParserConstants

An abstract base class for JJTree visitors to colorize JJTree node at token level.

Author:
J.J.Liu (Jianjun Liu) at http://www.javadoq.com

Field Summary
 
Fields inherited from interface com.javadoq.jjtree.JJTreeParserConstants
_DEFAULT, _EOF, _IGNORE_CASE, _JAVACODE, _LOOKAHEAD, _MORE, _PARSER_BEGIN, _PARSER_END, _SKIP, _SPECIAL_TOKEN, _TOKEN, _TOKEN_MGR_DECLS, ABSTRACT, ANDASSIGN, ASSIGN, AT, BANG, BIT_AND, BIT_OR, BOOLEAN, BREAK, BYTE, CASE, CATCH, CHAR, CHARACTER_LITERAL, CLASS, COLON, COMMA, CONST, CONTINUE, DECIMAL_EXPONENT, DECIMAL_FLOATING_POINT_LITERAL, DECIMAL_LITERAL, DECR, DEFAULT, DO, DOT, DOUBLE, ELLIPSIS, ELSE, EOF, EQ, EXTENDS, FALSE, FINAL, FINALLY, FLOAT, FLOATING_POINT_LITERAL, FOR, FORMAL_COMMENT, GE, GOTO, GT, HEX_LITERAL, HEXADECIMAL_EXPONENT, HEXADECIMAL_FLOATING_POINT_LITERAL, HOOK, IDENTIFIER, IF, IMPLEMENTS, IMPORT, IN_FORMAL_COMMENT, IN_MULTI_LINE_COMMENT, IN_SINGLE_LINE_COMMENT, INCR, INSTANCEOF, INT, INTEGER_LITERAL, INTERFACE, LBRACE, LBRACKET, LE, LETTER, LONG, LPAREN, LT, MINUS, MINUSASSIGN, MULTI_LINE_COMMENT, NATIVE, NE, NEW, NULL, OCTAL_LITERAL, ORASSIGN, PACKAGE, PART_LETTER, PLUS, PLUSASSIGN, PRIVATE, PROTECTED, PUBLIC, RBRACE, RBRACKET, REM, REMASSIGN, RETURN, RPAREN, RSIGNEDSHIFT, RUNSIGNEDSHIFT, SC_AND, SC_OR, SEMICOLON, SHORT, SINGLE_LINE_COMMENT, SLASH, SLASHASSIGN, STAR, STARASSIGN, STATIC, STRICTFP, STRING_LITERAL, SUPER, SWITCH, SYNCHRONIZED, THIS, THROW, THROWS, TILDE, tokenImage, TRANSIENT, TRUE, TRY, VOID, VOLATILE, WHILE, XOR, XORASSIGN
 
Constructor Summary
HTMLColorizeVisitor()
           
 
Method Summary
protected  void close(Token t)
          Visits a token after transformation.
protected  void start(Token t)
          Visits a token before transformation.
 
Methods inherited from class com.javadoq.jjtree.ast.TokenTransformVisitor
visit, visitSpecial, visitToken, write, write
 
Methods inherited from class com.javadoq.jjtree.ast.TokenVisitor
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visitChildren
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLColorizeVisitor

public HTMLColorizeVisitor()
Method Detail

start

protected void start(Token t)

Visits a token before transformation.

Specified by:
start in class TokenTransformVisitor
Parameters:
t - The JJTree token to visit.
Since:
1.0

close

protected void close(Token t)

Visits a token after transformation.

Specified by:
close in class TokenTransformVisitor
Parameters:
t - The JJTree token to visit.
Since:
1.0

JavaDoq 1.0 API

Copyright © 2008-2011 J.J.Liu (www.javadoq.com). All Rights Reserved.