JavaDoq 1.0 API

com.javadoq.jjtree.ast
Class TokenTransformVisitor

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

public abstract class TokenTransformVisitor
extends TokenVisitor

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

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

Constructor Summary
TokenTransformVisitor()
           
 
Method Summary
protected abstract  void close(Token t)
          Visits a token after transformation.
protected abstract  void start(Token t)
          Visits a token before transformation.
protected  void visit(Token t)
          Visits a token.
protected  void visitSpecial(Token t)
          Transforms a special token.
protected  void visitToken(Token t)
          Transforms a token.
protected abstract  void write(java.lang.String s)
          Transforms a string.
protected abstract  void write(Token t)
          Transforms a token.
 
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

TokenTransformVisitor

public TokenTransformVisitor()
Method Detail

start

protected abstract void start(Token t)

Visits a token before transformation.

Parameters:
t - The JJTree token to visit.
Since:
1.0

close

protected abstract void close(Token t)

Visits a token after transformation.

Parameters:
t - The JJTree token to visit.
Since:
1.0

write

protected abstract void write(Token t)

Transforms a token.

Parameters:
t - The JJTree token to output.
Since:
1.0

write

protected abstract void write(java.lang.String s)

Transforms a string.

Parameters:
s - The string to output.
Since:
1.0

visit

protected void visit(Token t)

Visits a token.

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

visitSpecial

protected void visitSpecial(Token t)

Transforms a special token.

Parameters:
t - The JJTree special token to transform.
Since:
1.0

visitToken

protected void visitToken(Token t)

Transforms a token.

Parameters:
t - The JJTree token to transform.
Since:
1.0

JavaDoq 1.0 API

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