1 18 package org.apache.batik.script.rhino; 19 20 import org.mozilla.javascript.ClassShutter; 21 22 30 public class RhinoClassShutter implements ClassShutter { 31 32 public RhinoClassShutter() { 33 } 37 38 54 55 public boolean visibleToScripts(String fullClassName) { 56 if (fullClassName.startsWith("org.mozilla.javascript")) 58 return false; 59 60 if (fullClassName.startsWith("org.apache.batik.")) { 61 String batikPkg = fullClassName.substring(17); 63 64 if (batikPkg.startsWith("script")) 66 return false; 67 68 if (batikPkg.startsWith("apps")) 70 return false; 71 72 if (batikPkg.startsWith("bridge.")) { 74 75 if (batikPkg.indexOf(".BaseScriptingEnvironment")!=-1) 76 return false; 77 if (batikPkg.indexOf(".ScriptingEnvironment")!=-1) 78 return false; 79 } 80 } 81 82 return true; 83 } 84 85 }; 86 | Popular Tags |