@CompileStatic
class HistoryRecord
extends Object
Captures the editor state and execution outcome for a console history entry.
| Type | Name and description |
|---|---|
String |
allTextFull editor contents captured for this history entry. |
Throwable |
exceptionExecution failure, when evaluation did not complete successfully. |
Object |
resultExecution result, when evaluation completed successfully. |
String |
scriptNameGenerated script name used during execution. |
int |
selectionEndEnd offset of the selected text. |
int |
selectionStartStart offset of the selected text. |
| Constructor and description |
|---|
HistoryRecord() |
| Type Params | Return Type | Name and description |
|---|---|---|
|
String |
getTextToRun(boolean useSelection)Returns the text that should be executed for this history entry. |
|
Object |
getValue()Returns the execution result or captured exception. |
Full editor contents captured for this history entry.
Execution failure, when evaluation did not complete successfully.
Execution result, when evaluation completed successfully.
Generated script name used during execution.
End offset of the selected text.
Start offset of the selected text.
Returns the text that should be executed for this history entry.
useSelection - whether to execute only the current selectionReturns the execution result or captured exception.
Copyright © 2003-2026 The Apache Software Foundation. All rights reserved.