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()
JRCompilationSourceCode
getCode
in interface JRCompilationSourceCode
public JRExpression getExpressionAtLine(int line)
JRCompilationSourceCode
getExpressionAtLine
in interface JRCompilationSourceCode
line
- the line numberCopyright © 2016. All rights reserved.