Module org.mal_lang.langspec
Class StepAttackStepBuilder
- java.lang.Object
-
- org.mal_lang.langspec.builders.step.StepExpressionBuilder
-
- org.mal_lang.langspec.builders.step.StepReferenceBuilder
-
- org.mal_lang.langspec.builders.step.StepAttackStepBuilder
-
public final class StepAttackStepBuilder extends StepReferenceBuilder
A builder for creatingStepAttackStepobjects.- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description StepAttackStepBuilder(String name)Constructs a newStepAttackStepBuilderobject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AssetgetTarget(Asset sourceAsset, Map<String,Asset> assets, List<AssetBuilder> assetBuilders)Returns the target asset of thisStepExpressionBuilder.-
Methods inherited from class org.mal_lang.langspec.builders.step.StepReferenceBuilder
fromJson, getName
-
-
-
-
Constructor Detail
-
StepAttackStepBuilder
public StepAttackStepBuilder(String name)
Constructs a newStepAttackStepBuilderobject.- Parameters:
name- the name of the attack step- Throws:
NullPointerException- ifnameisnullIllegalArgumentException- ifnameis not a valid identifier- Since:
- 1.0.0
-
-
Method Detail
-
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
-
-