Package io.ryos.rhino.sdk.dsl.impl
Class SomeDslImpl
- java.lang.Object
-
- io.ryos.rhino.sdk.dsl.impl.AbstractDSLItem
-
- io.ryos.rhino.sdk.dsl.impl.AbstractMeasurableDsl
-
- io.ryos.rhino.sdk.dsl.impl.SomeDslImpl
-
- All Implemented Interfaces:
DslItem
,MaterializableDsl
,MaterializableDslItem
,MeasurableDsl
,SomeDsl
public class SomeDslImpl extends AbstractMeasurableDsl implements SomeDsl
MaterializableDslItem implementation for arbitrary code execution.- Author:
- Erhan Bagdemir
-
-
Constructor Summary
Constructors Constructor Description SomeDslImpl(java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MaterializableDslItem
exec(java.util.function.Function<UserSession,java.lang.String> function)
Method to add a spec function into the DSL.java.util.List<MaterializableDslItem>
getChildren()
java.util.function.Function<UserSession,java.lang.String>
getFunction()
Function contains the code snippet to be applied.DslMaterializer
materializer()
Create materializer instance for this spec instance.-
Methods inherited from class io.ryos.rhino.sdk.dsl.impl.AbstractMeasurableDsl
cumulative, getMeasurementPoint, isCumulative, isMeasurementEnabled, noMeasurement
-
Methods inherited from class io.ryos.rhino.sdk.dsl.impl.AbstractDSLItem
getName, getParent, getParentName, hasParent, setName, setParent
-
-
-
-
Method Detail
-
exec
public MaterializableDslItem exec(java.util.function.Function<UserSession,java.lang.String> function)
Description copied from interface:SomeDsl
Method to add a spec function into the DSL.
-
getFunction
public java.util.function.Function<UserSession,java.lang.String> getFunction()
Description copied from interface:SomeDsl
Function contains the code snippet to be applied.- Specified by:
getFunction
in interfaceSomeDsl
- Returns:
- MaterializableDslItem function.
-
materializer
public DslMaterializer materializer()
Description copied from interface:MaterializableDsl
Create materializer instance for this spec instance.- Specified by:
materializer
in interfaceMaterializableDsl
- Returns:
DslMaterializer
instance.
-
getChildren
public java.util.List<MaterializableDslItem> getChildren()
- Specified by:
getChildren
in interfaceDslItem
-
-