| java.lang.Object org.codehaus.groovy.antlr.treewalker.VisitorAdapter org.codehaus.groovy.antlr.treewalker.NodePrinter
NodePrinter | public class NodePrinter extends VisitorAdapter (Code) | | A simple antlr AST visitor that outputs the tokenName of each node in a pseudo xml style.
author: Jeremy Rayner version: $Revision: 4032 $ |
NodePrinter | public NodePrinter(PrintStream out, String[] tokenNames)(Code) | | A visitor that prints a pseudo xml output to the supplied PrintStream
Parameters: out - supplied PrintStream to output nodes to Parameters: tokenNames - an array of token names to use |
Methods inherited from org.codehaus.groovy.antlr.treewalker.VisitorAdapter | public GroovySourceAST pop()(Code)(Java Doc) public void push(GroovySourceAST t)(Code)(Java Doc) public void setUp()(Code)(Java Doc) public void tearDown()(Code)(Java Doc) public void visitAbstract(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitAnnotation(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitAnnotationArrayInit(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitAnnotationDef(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitAnnotationFieldDef(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitAnnotationMemberValuePair(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitAnnotations(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitArrayDeclarator(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitAssign(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitAt(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitBand(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitBandAssign(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitBigSuffix(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitBlock(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitBnot(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitBor(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitBorAssign(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitBsr(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitBsrAssign(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitBxor(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitBxorAssign(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitCaseGroup(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitClassDef(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitClosedBlock(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitClosureOp(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitColon(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitComma(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitCompareTo(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitCtorCall(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitCtorIdent(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitDec(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitDefault(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitDigit(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitDiv(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitDivAssign(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitDollar(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitDot(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitDynamicMember(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitElist(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitEmptyStat(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitEnumConstantDef(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitEnumDef(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitEof(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitEqual(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitEsc(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitExponent(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitExpr(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitExtendsClause(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitFinal(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitFloatSuffix(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitForCondition(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitForEachClause(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitForInIterable(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitForInit(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitForIterator(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitGe(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitGt(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitHexDigit(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitIdent(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitImplementsClause(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitImplicitParameters(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitImport(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitInc(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitIndexOp(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitInstanceInit(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitInterfaceDef(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLabeledArg(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLabeledStat(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLand(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLbrack(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLcurly(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLe(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLetter(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitListConstructor(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLiteralAny(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLiteralAs(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLiteralAssert(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLiteralBoolean(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLiteralBreak(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLiteralByte(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLiteralCase(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLiteralCatch(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLiteralChar(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLiteralClass(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLiteralContinue(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLiteralDef(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLiteralDefault(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLiteralDouble(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLiteralElse(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLiteralEnum(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLiteralExtends(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLiteralFalse(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLiteralFinally(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLiteralFloat(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLiteralFor(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLiteralIf(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLiteralImplements(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLiteralImport(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLiteralIn(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLiteralInstanceof(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLiteralInt(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLiteralInterface(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLiteralLong(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLiteralNative(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLiteralNew(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLiteralNull(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLiteralPackage(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLiteralPrivate(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLiteralProtected(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLiteralPublic(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLiteralReturn(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLiteralShort(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLiteralStatic(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLiteralSuper(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLiteralSwitch(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLiteralSynchronized(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLiteralThis(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLiteralThreadsafe(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLiteralThrow(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLiteralThrows(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLiteralTransient(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLiteralTrue(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLiteralTry(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLiteralVoid(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLiteralVolatile(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLiteralWhile(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLiteralWith(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLnot(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLor(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLparen(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitLt(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitMapConstructor(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitMemberPointer(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitMethodCall(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitMethodDef(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitMinus(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitMinusAssign(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitMlComment(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitMod(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitModAssign(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitModifiers(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitNls(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitNotEqual(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitNullTreeLookahead(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitNumBigDecimal(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitNumBigInt(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitNumDouble(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitNumFloat(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitNumInt(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitNumLong(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitObjblock(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitOneNl(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitOptionalDot(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitPackageDef(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitParameterDef(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitParameters(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitPlus(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitPlusAssign(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitPostDec(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitPostInc(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitQuestion(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitRangeExclusive(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitRangeInclusive(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitRbrack(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitRcurly(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitRegexFind(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitRegexMatch(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitRegexpCtorEnd(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitRegexpLiteral(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitRegexpSymbol(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitRparen(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitScopeEscape(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitSelectSlot(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitSemi(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitShComment(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitSl(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitSlAssign(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitSlComment(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitSlist(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitSpreadArg(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitSpreadDot(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitSpreadMapArg(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitSr(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitSrAssign(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitStar(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitStarAssign(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitStarStar(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitStarStarAssign(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitStaticImport(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitStaticInit(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitStrictfp(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitStringCh(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitStringConstructor(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitStringCtorEnd(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitStringCtorMiddle(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitStringCtorStart(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitStringLiteral(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitStringNl(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitSuperCtorCall(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitTripleDot(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitType(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitTypeArgument(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitTypeArguments(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitTypeLowerBounds(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitTypeParameter(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitTypeParameters(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitTypeUpperBounds(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitTypecast(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitUnaryMinus(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitUnaryPlus(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitUnusedConst(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitUnusedDo(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitUnusedGoto(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitVariableDef(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitVariableParameterDef(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitVocab(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitWildcardType(GroovySourceAST t, int visit)(Code)(Java Doc) public void visitWs(GroovySourceAST t, int visit)(Code)(Java Doc)
|
|
|