Module org.mal_lang.langspec
Class StepExpressionBuilder
- java.lang.Object
-
- org.mal_lang.langspec.builders.step.StepExpressionBuilder
-
- Direct Known Subclasses:
StepBinaryOperationBuilder,StepReferenceBuilder,StepSubTypeBuilder,StepTransitiveBuilder
public abstract class StepExpressionBuilder extends Object
A builder for creatingStepExpressionobjects.- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedStepExpressionBuilder()Constructs a newStepExpressionBuilderobject.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static StepExpressionBuilderfromJson(JsonObject jsonStepExpression)Creates a newStepExpressionBuilderfrom aJsonObject.abstract AssetgetTarget(Asset sourceAsset, Map<String,Asset> assets, List<AssetBuilder> assetBuilders)Returns the target asset of thisStepExpressionBuilder.
-
-
-
Method Detail
-
getTarget
public abstract Asset getTarget(Asset sourceAsset, Map<String,Asset> assets, List<AssetBuilder> assetBuilders)
Returns the target asset of thisStepExpressionBuilder.- Parameters:
sourceAsset- the source assetassets- all assets of the languageassetBuilders- all asset builders of the language- Returns:
- the target asset of this
StepExpressionBuilder - Since:
- 1.0.0
-
fromJson
public static StepExpressionBuilder fromJson(JsonObject jsonStepExpression)
Creates a newStepExpressionBuilderfrom aJsonObject.- Parameters:
jsonStepExpression- theJsonObject- Returns:
- a new
StepExpressionBuilder - Throws:
NullPointerException- ifjsonStepExpressionisnull- Since:
- 1.0.0
-
-