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 creatingStepExpression
objects.- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
StepExpressionBuilder()
Constructs a newStepExpressionBuilder
object.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static StepExpressionBuilder
fromJson(JsonObject jsonStepExpression)
Creates a newStepExpressionBuilder
from aJsonObject
.abstract Asset
getTarget(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 newStepExpressionBuilder
from aJsonObject
.- Parameters:
jsonStepExpression
- theJsonObject
- Returns:
- a new
StepExpressionBuilder
- Throws:
NullPointerException
- ifjsonStepExpression
isnull
- Since:
- 1.0.0
-
-