public class JRDefaultCompilationSourceCode extends Object implements JRCompilationSourceCode
JRCompilationSourceCode implementation that can receive
a list of expressions corresponding to lines in the code.| Constructor and Description |
|---|
JRDefaultCompilationSourceCode(String sourceCode,
JRExpression[] lineExpressions)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCode()
Returns the source code.
|
JRExpression |
getExpressionAtLine(int line)
Determines whether a line of code corresponds to a report expression.
|
public JRDefaultCompilationSourceCode(String sourceCode, JRExpression[] lineExpressions)
sourceCode - the source code.lineExpressions - an array of expressions corresponding to line numbers.
Can be null.public String getCode()
JRCompilationSourceCodegetCode in interface JRCompilationSourceCodepublic JRExpression getExpressionAtLine(int line)
JRCompilationSourceCodegetExpressionAtLine in interface JRCompilationSourceCodeline - the line numberCopyright © 2017. All rights reserved.