com.google.caja.plugin.stages
Class ValidateJavascriptStage

java.lang.Object
  extended by com.google.caja.plugin.stages.ValidateJavascriptStage
All Implemented Interfaces:
Pipeline.Stage<Jobs>

public final class ValidateJavascriptStage
extends java.lang.Object
implements Pipeline.Stage<Jobs>

Rewrite the javascript to prevent runtime sandbox violations.

Author:
mikesamuel@gmail.com

Field Summary
private  ModuleManager mgr
           
 
Constructor Summary
ValidateJavascriptStage(ModuleManager mgr)
           
 
Method Summary
 boolean apply(Jobs jobs)
          Operates on an input and returns true iff processing should proceed to the next stage.
private static UncajoledModule uncajoledModule(ParseTreeNode node)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mgr

private final ModuleManager mgr
Constructor Detail

ValidateJavascriptStage

public ValidateJavascriptStage(ModuleManager mgr)
Method Detail

apply

public boolean apply(Jobs jobs)
Description copied from interface: Pipeline.Stage
Operates on an input and returns true iff processing should proceed to the next stage.

Specified by:
apply in interface Pipeline.Stage<Jobs>

uncajoledModule

private static UncajoledModule uncajoledModule(ParseTreeNode node)


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