com.google.caja.plugin.stages
Class CajaRuntimeDebuggingRewriter

java.lang.Object
  extended by com.google.caja.parser.quasiliteral.Rewriter
      extended by com.google.caja.plugin.stages.CajaRuntimeDebuggingRewriter

final class CajaRuntimeDebuggingRewriter
extends Rewriter

Modifies cajoled code to remove fasttrack branches, and add debugging info to the slow branches.

Author:
mikesamuel@gmail.com

Nested Class Summary
(package private)  class CajaRuntimeDebuggingRewriter.AddPositionParamRule
          Rewrites a ___ method call to add an extra parameter which is an index into DebuggingSymbols.
 
Field Summary
private  DebuggingSymbols symbols
           
 
Constructor Summary
CajaRuntimeDebuggingRewriter(DebuggingSymbols symbols, MessageQueue mq)
           
 
Method Summary
private  FilePosition spanningPos(ParseTreeNode node)
           
 
Methods inherited from class com.google.caja.parser.quasiliteral.Rewriter
addRule, addRules, expand, expand, getRules, noexpand, noexpand, noexpand, noexpand, noexpand, noexpand, noexpandParams, render
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

symbols

private final DebuggingSymbols symbols
Constructor Detail

CajaRuntimeDebuggingRewriter

CajaRuntimeDebuggingRewriter(DebuggingSymbols symbols,
                             MessageQueue mq)
Method Detail

spanningPos

private FilePosition spanningPos(ParseTreeNode node)


Copyright (C) 2008 Google Inc.
Licensed under the Apache License, Version 2.0