org.stjs.generator.sourcemap
Class JavascriptToJava

java.lang.Object
  extended by org.stjs.generator.sourcemap.JavascriptToJava

public class JavascriptToJava
extends Object


Constructor Summary
JavascriptToJava(ClassLoader testClassLoader)
           
 
Method Summary
 StackTraceElement[] buildStacktrace(String javascriptStacktrace, String lineSeparator)
          the string is in stacktrace.js format.
 int getJavaLine(String path, int lineNumber)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavascriptToJava

public JavascriptToJava(ClassLoader testClassLoader)
Method Detail

getJavaLine

public int getJavaLine(String path,
                       int lineNumber)

buildStacktrace

public StackTraceElement[] buildStacktrace(String javascriptStacktrace,
                                           String lineSeparator)
the string is in stacktrace.js format.
  at prototype.method (url)
  at prototype.method (url)
  at prototype.method (url)
 
where url is in the form of http://localhost:xxxx/org/stjs/TestClass.js:row:col

Parameters:
javascriptStacktrace -
Returns:


Copyright © 2014. All Rights Reserved.