Module org.mal_lang.langspec
Class StepTransitiveBuilder
- java.lang.Object
-
- org.mal_lang.langspec.builders.step.StepExpressionBuilder
-
- org.mal_lang.langspec.builders.step.StepTransitiveBuilder
-
public final class StepTransitiveBuilder extends StepExpressionBuilder
A builder for creatingStepTransitive
objects.- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description StepTransitiveBuilder(StepExpressionBuilder stepExpression)
Constructs a newStepTransitiveBuilder
object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StepTransitiveBuilder
fromJson(JsonObject jsonStepTransitive)
Creates a newStepTransitiveBuilder
from aJsonObject
.StepExpressionBuilder
getStepExpression()
Returns the step expression of thisStepTransitiveBuilder
object.Asset
getTarget(Asset sourceAsset, Map<String,Asset> assets, List<AssetBuilder> assetBuilders)
Returns the target asset of thisStepExpressionBuilder
.
-
-
-
Constructor Detail
-
StepTransitiveBuilder
public StepTransitiveBuilder(StepExpressionBuilder stepExpression)
Constructs a newStepTransitiveBuilder
object.- Parameters:
stepExpression
- the step expression of the transitive step- Throws:
NullPointerException
- ifstepExpression
isnull
- Since:
- 1.0.0
-
-
Method Detail
-
getStepExpression
public StepExpressionBuilder getStepExpression()
Returns the step expression of thisStepTransitiveBuilder
object.- Returns:
- the step expression of this
StepTransitiveBuilder
object - Since:
- 1.0.0
-
getTarget
public Asset getTarget(Asset sourceAsset, Map<String,Asset> assets, List<AssetBuilder> assetBuilders)
Description copied from class:StepExpressionBuilder
Returns the target asset of thisStepExpressionBuilder
.- Specified by:
getTarget
in classStepExpressionBuilder
- Parameters:
sourceAsset
- the source assetassets
- all assets of the languageassetBuilders
- all asset builders of the language- Returns:
- the target asset of this
StepExpressionBuilder
-
fromJson
public static StepTransitiveBuilder fromJson(JsonObject jsonStepTransitive)
Creates a newStepTransitiveBuilder
from aJsonObject
.- Parameters:
jsonStepTransitive
- theJsonObject
- Returns:
- a new
StepTransitiveBuilder
- Throws:
NullPointerException
- ifjsonStepTransitive
isnull
- Since:
- 1.0.0
-
-