public class TransitionNode extends AstNode
STATE->TARGET
". If STATE is
unquoted it is considered a reference to the exit code of the preceding app (where
* means 'any exit code'). If STATE is quoted it is considered a
reference to the exit status of the preceding app (where '*' means 'any exit
status'). TARGET can be either a reference to a label, :foo, or a single app
name Foo.Modifier and Type | Method and Description |
---|---|
void |
accept(TaskVisitor visitor) |
String |
getStatusToCheck()
Return the status that should trigger the transition.
|
String |
getStatusToCheckInDSLForm()
Return the status that should trigger the transition as it would occur in the DSL.
|
TaskAppNode |
getTargetApp() |
String |
getTargetDslText() |
String |
getTargetLabel() |
boolean |
isEndTransition() |
boolean |
isExitCodeCheck() |
boolean |
isFailTransition() |
boolean |
isSpecialTransition()
Some target names for a transition are 'well known' like $FAIL and $END - these do
not indicate a following job step, they instead indicate a termination state.
|
boolean |
isTargetApp()
The target is either an app or a reference.
|
String |
stringify(boolean includePositionInfo) |
getEndPos, getStartPos, stringify
public static final String FAIL
public static final String END
public String stringify(boolean includePositionInfo)
public String getStatusToCheck()
public String getStatusToCheckInDSLForm()
public boolean isTargetApp()
public String getTargetLabel()
public TaskAppNode getTargetApp()
public boolean isSpecialTransition()
public boolean isFailTransition()
public boolean isEndTransition()
public boolean isExitCodeCheck()
public String getTargetDslText()
public void accept(TaskVisitor visitor)
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.