Package nz.org.riskscape.pipeline.ast
Class StepDefinition
java.lang.Object
nz.org.riskscape.pipeline.ast.StepDeclaration
nz.org.riskscape.pipeline.ast.StepDefinition
- All Implemented Interfaces:
PipelineExpression
Defines a step. May optionally include parameter defaults and name for the step.
-
Field Summary
Fields inherited from class nz.org.riskscape.pipeline.ast.StepDeclaration
identToken, namedInputToken
-
Constructor Summary
ConstructorDescriptionStepDefinition
(String id) StepDefinition
(FunctionCall fc, Optional<Token> nameToken, Optional<Token> namedInputToken) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
appendSource
(StringBuilder appendTo) protected void
appendString
(StringBuilder appendTo) protected boolean
boolean
getName()
getStep()
int
hashCode()
final String
toSource()
final String
toString()
Returns a simplified view of the ast in a source-like fashion, but with a lot of details left out for concisenessMethods inherited from class nz.org.riskscape.pipeline.ast.StepDeclaration
getIdent, getIdentToken, getNamedInput, getNamedInputToken, isA
-
Constructor Details
-
StepDefinition
-
StepDefinition
-
-
Method Details
-
getStepId
- Returns:
- an identifier used to link the step definition to a
Step
that the engine provides for pipeline processing
-
getName
- Returns:
- a name that the user assigned to this step definition, or empty if the step is anonymous
-
getStepParameters
-
getStepIdToken
- Returns:
- the ast token for the identifier used to link the step definition to a
Step
that the engine provides for pipeline processing
-
getBoundary
-
appendSource
-
appendString
-
equals
- Overrides:
equals
in classStepDeclaration
-
canEqual
- Overrides:
canEqual
in classStepDeclaration
-
hashCode
public int hashCode()- Overrides:
hashCode
in classStepDeclaration
-
getStep
-
getNameToken
-
toString
Returns a simplified view of the ast in a source-like fashion, but with a lot of details left out for conciseness
-
toSource
- Specified by:
toSource
in interfacePipelineExpression
- Returns:
- a string that can be parsed back in to the same ast as this one. It might not be whitespace-faithful...
-