public class JRClassGenerator extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,JRField> |
fieldsMap |
protected Map<String,? extends JRParameter> |
parametersMap |
protected static String |
SOURCE_EXPRESSION_ID_END |
protected static String |
SOURCE_EXPRESSION_ID_START |
protected static int |
SOURCE_EXPRESSION_ID_START_LENGTH |
protected JRSourceCompileTask |
sourceTask |
protected JRVariable[] |
variables |
protected Map<String,JRVariable> |
variablesMap |
| Modifier | Constructor and Description |
|---|---|
protected |
JRClassGenerator(JRSourceCompileTask sourceTask) |
protected static final String SOURCE_EXPRESSION_ID_START
protected static final int SOURCE_EXPRESSION_ID_START_LENGTH
protected static final String SOURCE_EXPRESSION_ID_END
protected final JRSourceCompileTask sourceTask
protected Map<String,? extends JRParameter> parametersMap
protected Map<String,JRVariable> variablesMap
protected JRVariable[] variables
protected JRClassGenerator(JRSourceCompileTask sourceTask)
public static JRCompilationSourceCode generateClass(JRSourceCompileTask sourceTask) throws JRException
sourceTask - the source task containing data required to generate the source fileJRExceptionpublic static JRCompilationSourceCode modifySource(JRSourceCompileTask sourceTask, Set<Method> missingMethods, String sourceCode)
protected JRCompilationSourceCode generateClass() throws JRException
JRExceptionprotected final void generateClassStart(StringBuffer sb)
protected final void generateDeclarations(StringBuffer sb)
protected final void generateInitParamsMethod(StringBuffer sb) throws JRException
JRExceptionprotected final void generateInitFieldsMethod(StringBuffer sb) throws JRException
JRExceptionprotected final void generateInitVarsMethod(StringBuffer sb) throws JRException
JRExceptionprotected final String generateMethod(byte evaluationType, List<JRExpression> expressionsList) throws JRException
JRExceptionprotected void appendExpressionText(JRExpression expression, StringBuffer sb, String chunkText)
protected void appendExpressionComment(StringBuffer sb, JRExpression expression)
protected JRDefaultCompilationSourceCode parseSourceLines(String sourceCode)
protected JRExpression getLineExpression(String line)
protected JRCompilationSourceCode modifySource(Set<Method> missingMethods, String sourceCode)
protected void addMethod(StringBuffer methodBuffer, Method method)
Copyright © 2014. All rights reserved.