Package net.sf.jasperreports.javascript
Class JavaScriptCompiledData
- java.lang.Object
-
- net.sf.jasperreports.javascript.JavaScriptCompiledData
-
- All Implemented Interfaces:
Serializable
public class JavaScriptCompiledData extends Object implements Serializable
Compiled Java code for reports that use JavaScript as expression language.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
JavaScriptClassCompiler
, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
JavaScriptCompiledData.CompiledClass
protected static class
JavaScriptCompiledData.ExpressionIndexes
-
Field Summary
Fields Modifier and Type Field Description static String
EXCEPTION_MESSAGE_KEY_TOO_MANY_EXPRESSIONs
-
Constructor Summary
Constructors Constructor Description JavaScriptCompiledData()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addClass(String className, byte[] data)
void
addExpression(int expressionId, int defaultExpressionIdx, int oldExpressionIdx, int estimatedExpressionIdx)
protected static int
expressionId(int expressionIndex)
JavaScriptCompiledData.CompiledClass
getCompiledClass(int classIndex)
JavaScriptCompiledData.ExpressionIndexes
getExpression(int id)
protected static int
makeExpressionIndex(int scriptIndex, int expressionId)
protected static int
scriptIndex(int expressionIndex)
-
-
-
Field Detail
-
EXCEPTION_MESSAGE_KEY_TOO_MANY_EXPRESSIONs
public static final String EXCEPTION_MESSAGE_KEY_TOO_MANY_EXPRESSIONs
- See Also:
- Constant Field Values
-
-
Method Detail
-
makeExpressionIndex
protected static int makeExpressionIndex(int scriptIndex, int expressionId)
-
scriptIndex
protected static int scriptIndex(int expressionIndex)
-
expressionId
protected static int expressionId(int expressionIndex)
-
addExpression
public void addExpression(int expressionId, int defaultExpressionIdx, int oldExpressionIdx, int estimatedExpressionIdx)
-
getExpression
public JavaScriptCompiledData.ExpressionIndexes getExpression(int id)
-
addClass
public void addClass(String className, byte[] data)
-
getCompiledClass
public JavaScriptCompiledData.CompiledClass getCompiledClass(int classIndex)
-
-