public class SystemInputs extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SystemInputs.Located<T>
Associates a system input element with its location.
|
static class |
SystemInputs.ProcessingException
Reports an error processing a system input definition.
|
Constructor and Description |
---|
SystemInputs(String... startLocation)
Creates a new SystemInputs instance.
|
Modifier and Type | Method and Description |
---|---|
static VarValueDefBuilder |
failureValue(Object name)
Returns a builder for a new failure
VarValueDef with the given name. |
static FunctionInputDefBuilder |
function(String name)
Returns a builder for a new
FunctionInputDef with the given name. |
Map<SystemInputs.Located<IConditional>,Set<String>> |
getPropertiesUndefined(FunctionInputDef function)
For every conditional element in the given function input definition that references an undefined property,
maps the element to the undefined properties that it references.
|
Map<SystemInputs.Located<VarValueDef>,Set<String>> |
getPropertiesUnused(FunctionInputDef function)
For every variable value in the given function input definition that defines an unused
property, maps the value to the unused properties it defines.
|
Map<String,Set<SystemInputs.Located<IConditional>>> |
getPropertyReferences(FunctionInputDef function)
Maps every property in the given FunctionInputDef to the conditional elements that reference it.
|
Map<String,Set<SystemInputs.Located<VarValueDef>>> |
getPropertySources(FunctionInputDef function)
Maps every property in the given function input definition to the variable value definitions that contribute it.
|
static VarValueDefBuilder |
onceValue(Object name)
Returns a builder for a new once
VarValueDef with the given name. |
static SchemaBuilder |
schema()
Returns a builder for a new generic
Schema . |
static SchemaBuilder |
schema(DataValue.Type type)
Returns a builder for a new
Schema with the given type. |
static SystemInputDefBuilder |
system(String name)
Returns a builder for a new
SystemInputDef with the given name. |
static VarValueDefBuilder |
value(Object name)
Returns a builder for a new
VarValueDef with the given name. |
static VarDefBuilder |
var(String name)
Returns a builder for a new
VarDef with the given name. |
static VarSetBuilder |
varSet(String name)
Returns a builder for a new
VarSet with the given name. |
public SystemInputs(String... startLocation)
public static SystemInputDefBuilder system(String name)
SystemInputDef
with the given name.public static FunctionInputDefBuilder function(String name)
FunctionInputDef
with the given name.public static VarSetBuilder varSet(String name)
VarSet
with the given name.public static VarDefBuilder var(String name)
VarDef
with the given name.public static VarValueDefBuilder value(Object name)
VarValueDef
with the given name.public static VarValueDefBuilder failureValue(Object name)
VarValueDef
with the given name.public static VarValueDefBuilder onceValue(Object name)
VarValueDef
with the given name.public static SchemaBuilder schema(DataValue.Type type)
Schema
with the given type.public static SchemaBuilder schema()
Schema
.public Map<String,Set<SystemInputs.Located<VarValueDef>>> getPropertySources(FunctionInputDef function)
public Map<String,Set<SystemInputs.Located<IConditional>>> getPropertyReferences(FunctionInputDef function)
public Map<SystemInputs.Located<VarValueDef>,Set<String>> getPropertiesUnused(FunctionInputDef function)
public Map<SystemInputs.Located<IConditional>,Set<String>> getPropertiesUndefined(FunctionInputDef function)
Copyright © 2024 The Cornutum Project. All rights reserved.