Package net.sf.jasperreports.groovy
Class JRGroovyGenerator
java.lang.Object
net.sf.jasperreports.groovy.JRGroovyGenerator
- Author:
- Teodor Danciu (teodord@users.sourceforge.net), Peter Severin (peter_p_s@users.sourceforge.net)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Map<String, ? extends JRParameter> static final StringProperty that determines the maximum size of a generated groovy methodprotected final JRSourceCompileTaskprotected JRVariable[]protected Map<String, JRVariable> -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedJRGroovyGenerator(JRSourceCompileTask sourceTask, ReportClassFilter classFilter) -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringstatic StringgenerateClass(JRSourceCompileTask sourceTask) static StringgenerateClass(JRSourceCompileTask sourceTask, ReportClassFilter classFilter) protected final voidprotected final voidprotected final voidprotected final voidprotected final voidprotected final StringgenerateMethod(byte evaluationType, List<JRExpression> expressionsList) protected voidwriteExpression(StringBuilder expressionBuffer, JRExpression expression, byte evaluationType) protected voidprotected voidwriteMethodHeader(StringBuilder sb, byte evaluationType, int methodIndex) protected voidwriteNextMethodCall(StringBuilder sb, byte evaluationType, int methodIndex, int startId)
-
Field Details
-
PROPERTY_MAX_METHOD_SIZE
Property that determines the maximum size of a generated groovy method- See Also:
-
sourceTask
-
parametersMap
-
fieldsMap
-
variablesMap
-
variables
-
-
Constructor Details
-
JRGroovyGenerator
-
-
Method Details
-
generateClass
- Throws:
JRException
-
generateClass
public static String generateClass(JRSourceCompileTask sourceTask, ReportClassFilter classFilter) throws JRException - Throws:
JRException
-
generateClass
- Throws:
JRException
-
generateClassStart
-
generateDeclarations
-
generateInitParamsMethod
- Throws:
JRException
-
generateInitFieldsMethod
- Throws:
JRException
-
generateInitVarsMethod
- Throws:
JRException
-
generateMethod
protected final String generateMethod(byte evaluationType, List<JRExpression> expressionsList) throws JRException - Throws:
JRException
-
writeMethodHeader
-
writeMethodEnd
-
writeNextMethodCall
protected void writeNextMethodCall(StringBuilder sb, byte evaluationType, int methodIndex, int startId) -
writeExpression
protected void writeExpression(StringBuilder expressionBuffer, JRExpression expression, byte evaluationType)
-