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 creatingStepTransitiveobjects.- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description StepTransitiveBuilder(StepExpressionBuilder stepExpression)Constructs a newStepTransitiveBuilderobject.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StepTransitiveBuilderfromJson(JsonObject jsonStepTransitive)Creates a newStepTransitiveBuilderfrom aJsonObject.StepExpressionBuildergetStepExpression()Returns the step expression of thisStepTransitiveBuilderobject.AssetgetTarget(Asset sourceAsset, Map<String,Asset> assets, List<AssetBuilder> assetBuilders)Returns the target asset of thisStepExpressionBuilder.
-
-
-
Constructor Detail
-
StepTransitiveBuilder
public StepTransitiveBuilder(StepExpressionBuilder stepExpression)
Constructs a newStepTransitiveBuilderobject.- Parameters:
stepExpression- the step expression of the transitive step- Throws:
NullPointerException- ifstepExpressionisnull- Since:
- 1.0.0
-
-
Method Detail
-
getStepExpression
public StepExpressionBuilder getStepExpression()
Returns the step expression of thisStepTransitiveBuilderobject.- Returns:
- the step expression of this
StepTransitiveBuilderobject - Since:
- 1.0.0
-
getTarget
public Asset getTarget(Asset sourceAsset, Map<String,Asset> assets, List<AssetBuilder> assetBuilders)
Description copied from class:StepExpressionBuilderReturns the target asset of thisStepExpressionBuilder.- Specified by:
getTargetin 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 newStepTransitiveBuilderfrom aJsonObject.- Parameters:
jsonStepTransitive- theJsonObject- Returns:
- a new
StepTransitiveBuilder - Throws:
NullPointerException- ifjsonStepTransitiveisnull- Since:
- 1.0.0
-
-