Package nz.org.riskscape.rl.ast
Class StepDefinition.Argument
- All Implemented Interfaces:
AST
- Enclosing class:
- StepDefinition
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static voidappendSource(AST ast, StringBuilder appendTo) Helper method for appending the source of another ast element to a string builder, efficiently if possible.protected voidappendString(StringBuilder appendTo) Append a simplified string representation to the builder.booleanvoidswitchArgument(Consumer<Expression> ifExpression, Consumer<InputChain> ifInput) final StringtoSource()final StringtoString()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.rl.ast.GenericArgument
appendSource, equals, getBoundary, getName, getNameToken, getValue, hashCode, isKeywordArgumentMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface nz.org.riskscape.rl.ast.AST
isA, switchType
-
Constructor Details
-
Argument
-
-
Method Details
-
switchArgument
-
isInputChain
public boolean isInputChain()- Returns:
- true if this argument's value is an input chain a.k.a pipeline argument.
-
appendSource
Helper method for appending the source of another ast element to a string builder, efficiently if possible.
-
toString
Returns a simplified view of the ast in a source-like fashion, but with a lot of details left out for conciseness
-
appendString
Append a simplified string representation to the builder. Default implementation uses appendSource. Subclasses can override to provide a more concise representation.
-
toSource
-