InterruptedException when
some conditions are met.
| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final String | |
| protected boolean | |
| protected boolean | |
| protected static final String | |
| protected boolean | |
| protected SourceUnit | |
| protected static final String | |
| protected ClassNode |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected abstract Expression | createCondition()
Subclasses should implement this method to set the condition of the interruption statement |
| protected Statement | |
| protected static boolean | |
| protected static ClassNode | |
| protected abstract String | |
| protected SourceUnit | |
| protected static void | |
| protected void | |
| protected abstract ClassNode | |
| public void | visit(ASTNode[]
The ASTnodes when the call was triggered. Element 0 is the AnnotationNode that triggered this
annotation to be activated. Element 1 is the AnnotatedNode decorated, such as a MethodNode or ClassNode. For
global transformations it is usually safe to ignore this parameter. nodes, SourceUnit The source unit being compiled. The source unit may contain several classes. For global transformations,
information about the AST can be retrieved from this object. source)Implements org. |
| public final void | visitDoWhileLoop(DoWhileStatement doWhileStatement)
Overrides org. Implements org. |
| public final void | visitForLoop(ForStatement forStatement)
Overrides org. Implements org. |
| private void | visitLoop(LoopingStatement loopStatement)
Shortcut method which avoids duplicating code for every type of loop. |
| public final void | visitWhileLoop(WhileStatement whileStatement)
Overrides org. Implements org. |
| protected final Statement | Returns: ablock statement which first element is for checking interruption, and the
second one the statement to be wrapped.the statement to be wrapped statement)Takes a statement and wraps it into a block statement which first element is the interruption check statement. |
| APPLY_TO_ALL_CLASSES | back to summary |
|---|---|
| private static final String APPLY_TO_ALL_CLASSES | |
| APPLY_TO_ALL_MEMBERS | back to summary |
|---|---|
| private static final String APPLY_TO_ALL_MEMBERS | |
| applyToAllClasses | back to summary |
|---|---|
| protected boolean applyToAllClasses | |
| applyToAllMembers | back to summary |
|---|---|
| protected boolean applyToAllMembers | |
| CHECK_METHOD_START_MEMBER | back to summary |
|---|---|
| protected static final String CHECK_METHOD_START_MEMBER | |
| checkOnMethodStart | back to summary |
|---|---|
| protected boolean checkOnMethodStart | |
| source | back to summary |
|---|---|
| protected SourceUnit source | |
| THROWN_EXCEPTION_TYPE | back to summary |
|---|---|
| protected static final String THROWN_EXCEPTION_TYPE | |
| thrownExceptionType | back to summary |
|---|---|
| protected ClassNode thrownExceptionType | |
| AbstractInterruptibleASTTransformation | back to summary |
|---|---|
| public AbstractInterruptibleASTTransformation() | |
| createCondition | back to summary |
|---|---|
| protected abstract Expression createCondition() Subclasses should implement this method to set the condition of the interruption statement | |
| createInterruptStatement | back to summary |
|---|---|
protected Statement createInterruptStatement()
| |
| getBooleanAnnotationParameter | back to summary |
|---|---|
| protected static boolean getBooleanAnnotationParameter(AnnotationNode node, String parameterName, boolean defaultValue) | |
| getClassAnnotationParameter | back to summary |
|---|---|
| protected static ClassNode getClassAnnotationParameter(AnnotationNode node, String parameterName, ClassNode defaultValue) | |
| getErrorMessage | back to summary |
|---|---|
| protected abstract String getErrorMessage() Subclasses should implement this method to provide good error resolution. | |
| getSourceUnit | back to summary |
|---|---|
| protected SourceUnit getSourceUnit() Implements abstract org. | |
| internalError | back to summary |
|---|---|
| protected static void internalError(String message) | |
| setupTransform | back to summary |
|---|---|
| protected void setupTransform(AnnotationNode node) | |
| type | back to summary |
|---|---|
| protected abstract ClassNode type() | |
| visit | back to summary |
|---|---|
| public void visit(ASTNode[] nodes, SourceUnit source) Implements org. Doc from org. The method is invoked when an AST Transformation is active. For local transformations, it is invoked once each time the local annotation is encountered. For global transformations, it is invoked once for every source unit, which is typically a source file.
| |
| visitDoWhileLoop | back to summary |
|---|---|
| public final void visitDoWhileLoop(DoWhileStatement doWhileStatement) Overrides org. Implements org.
| |
| visitForLoop | back to summary |
|---|---|
| public final void visitForLoop(ForStatement forStatement) Overrides org. Implements org.
| |
| visitLoop | back to summary |
|---|---|
| private void visitLoop(LoopingStatement loopStatement) Shortcut method which avoids duplicating code for every type of loop. Actually wraps the loopBlock of different types of loop statements. | |
| visitWhileLoop | back to summary |
|---|---|
| public final void visitWhileLoop(WhileStatement whileStatement) Overrides org. Implements org.
| |
| wrapBlock | back to summary |
|---|---|
| protected final Statement wrapBlock(Statement statement) Takes a statement and wraps it into a block statement which first element is the interruption check statement.
| |