Package com.atlassian.jira.dev.resources
Class InstrumentScript
java.lang.Object
com.atlassian.jira.dev.resources.AbstractInstrumentResource
com.atlassian.jira.dev.resources.InstrumentScript
Utility class, which can instrument provided javascript source, instrumentation format is compatible with CriticalJS javascript module.
- Since:
- 7.1
-
Method Summary
Methods inherited from class com.atlassian.jira.dev.resources.AbstractInstrumentResource
getResourceName, instrumentBatch, instrumentResource
-
Method Details
-
instrumentResource
public String instrumentResource(String source, String resourceName, String requestUrl, boolean standalone) throws IOException - Specified by:
instrumentResourcein classAbstractInstrumentResource- Throws:
IOException
-
parse
public org.mozilla.javascript.ast.AstRoot parse(String source, String resourceName) throws IOException - Throws:
IOException
-