public class JRDefaultCompilationSourceCode extends java.lang.Object implements JRCompilationSourceCode
JRCompilationSourceCode
implementation that can receive
a list of expressions corresponding to lines in the code.Constructor and Description |
---|
JRDefaultCompilationSourceCode(java.lang.String sourceCode,
JRExpression[] lineExpressions)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCode()
Returns the source code.
|
JRExpression |
getExpressionAtLine(int line)
Determines whether a line of code corresponds to a report expression.
|
public JRDefaultCompilationSourceCode(java.lang.String sourceCode, JRExpression[] lineExpressions)
sourceCode
- the source code.lineExpressions
- an array of expressions corresponding to line numbers.
Can be null.public java.lang.String getCode()
JRCompilationSourceCode
getCode
in interface JRCompilationSourceCode
public JRExpression getExpressionAtLine(int line)
JRCompilationSourceCode
getExpressionAtLine
in interface JRCompilationSourceCode
line
- the line number© 2001-2014 TIBCO Software Inc. www.jaspersoft.com