public class VarSetBuilder extends VarBuilder<VarSetBuilder>
VarSet
instances.Constructor and Description |
---|
VarSetBuilder()
Creates a new VarSetBuilder object.
|
VarSetBuilder(VarSet varSet)
Creates a new VarSetBuilder object.
|
Modifier and Type | Method and Description |
---|---|
VarSetBuilder |
add(VarBuilder<?>... members)
Adds variable set members.
|
VarSet |
build()
Returns the current VarSet definition.
|
protected Annotated |
getAnnotated()
Returns the
Annotated instance for this builder. |
IVarDef |
getVarDef()
Returns the
IVarDef instance for this builder. |
VarSetBuilder |
members(Iterable<IVarDef> members)
Adds variable set members.
|
VarSetBuilder |
members(IVarDef... members)
Adds variable set members.
|
VarSetBuilder |
members(Stream<IVarDef> members)
Adds variable set members.
|
VarSetBuilder |
name(String name)
Changes the variable set name.
|
VarSetBuilder |
start()
Starts building a new VarSet definition.
|
VarSetBuilder |
start(VarSet varSet)
Starts building a VarSet definition.
|
VarSetBuilder |
type(String type)
Changes the variable set type.
|
VarDefBuilder |
varDefAtPath(String pathName)
Adds a new
VarDef with the given path name and returns a builder
for the new VarDef . |
VarDefBuilder |
varDefAtPath(String[] path)
Adds a new
VarDef with the given path name and returns a builder
for the new VarDef . |
VarSetBuilder |
varSetAtPath(String pathName)
Adds a new
VarSet with the given path name and returns a builder
for the new VarSet . |
VarSetBuilder |
varSetAtPath(String[] path)
Adds a new
VarSet with the given path name and returns a builder
for the new VarSet . |
VarSetBuilder |
when(ICondition condition)
Changes the variable set condition.
|
VarSetBuilder |
when(Optional<ICondition> condition)
Changes the variable set condition.
|
static VarSetBuilder |
with(String name)
Creates a new builder for a VarSet with the given name.
|
static VarSetBuilder |
with(VarSet varSet)
Creates a new builder for the given VarSet.
|
annotations, has, has, has, has, hasIf, hasIf, hasIf, hasIf
public VarSetBuilder()
public VarSetBuilder(VarSet varSet)
public static VarSetBuilder with(String name)
public static VarSetBuilder with(VarSet varSet)
public VarSet build()
public VarSetBuilder start()
public VarSetBuilder start(VarSet varSet)
public VarSetBuilder name(String name)
public VarSetBuilder type(String type)
public VarSetBuilder when(ICondition condition)
public VarSetBuilder when(Optional<ICondition> condition)
public VarSetBuilder add(VarBuilder<?>... members)
public VarSetBuilder members(IVarDef... members)
public VarSetBuilder members(Iterable<IVarDef> members)
public VarSetBuilder members(Stream<IVarDef> members)
public VarSetBuilder varSetAtPath(String pathName)
VarSet
with the given path name and returns a builder
for the new VarSet
.public VarSetBuilder varSetAtPath(String[] path)
VarSet
with the given path name and returns a builder
for the new VarSet
.public VarDefBuilder varDefAtPath(String pathName)
VarDef
with the given path name and returns a builder
for the new VarDef
.public VarDefBuilder varDefAtPath(String[] path)
VarDef
with the given path name and returns a builder
for the new VarDef
.protected Annotated getAnnotated()
Annotated
instance for this builder.getAnnotated
in class AnnotatedBuilder<VarSetBuilder>
public IVarDef getVarDef()
IVarDef
instance for this builder.getVarDef
in class VarBuilder<VarSetBuilder>
Copyright © 2024 The Cornutum Project. All rights reserved.