- java.lang.Object
-
- org.praxislive.core.Info
-
public class Info extends Object
Builder utilities for creatingComponentInfo
and related classes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Info.ActionInfoBuilder
Builder for ControlInfo of action controls.static class
Info.ArgumentInfoBuilder<T extends Info.ArgumentInfoBuilder<T>>
Abstract base class for ArgumentInfoBuilders.static class
Info.ArgumentInfoChooser
Helper class for choosing an ArgumentInfoBuilder type.static class
Info.ComponentInfoBuilder
ComponentInfoBuilder classstatic class
Info.ControlInfoBuilder<T extends Info.ControlInfoBuilder<T>>
Abstract base class for ControlInfo builders.static class
Info.ControlInfoChooser
Helper class for choosing a ControlInfoBuilder type.static class
Info.FunctionInfoBuilder
Builder for ControlInfo for function controls.static class
Info.NumberInfoBuilder
Builder for ArgumentInfo of PNumber.static class
Info.PortInfoBuilder
PortInfoBuilderstatic class
Info.PortInfoChooser
Helper class to choose a PortInfoBuilder type.static class
Info.PropertyInfoBuilder
Builder for ControlInfo of property controls.static class
Info.ReadOnlyPropertyInfoBuilder
Builder for ControlInfo of read-only properties.static class
Info.StringInfoBuilder
Builder for ArgumentInfo of PString.static class
Info.ValueInfoBuilder
Builder for ArgumentInfo of any Value type.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Info.ArgumentInfoChooser
argument()
Get an ArgumentInfoChooser to choose an ArgumentInfoBuilder.static ArgumentInfo
argument(Function<Info.ArgumentInfoChooser,Info.ArgumentInfoBuilder<?>> a)
Apply the provided function to an ArgumentInfoChooser to choose and configure an ArgumentInfoBuilder and return the resulting ArgumentInfo.static Info.ComponentInfoBuilder
component()
Create a ComponentInfoBuilderstatic ComponentInfo
component(UnaryOperator<Info.ComponentInfoBuilder> cmp)
Apply the provided function to a new ComponentInfoBuilder and return the resulting ComponentInfo.static Info.ControlInfoChooser
control()
Get a ControlInfoChooser to choose a ControlInfoBuilderstatic ControlInfo
control(Function<Info.ControlInfoChooser,Info.ControlInfoBuilder<?>> c)
Apply the provided function to a ControlInfoChooser to choose and customize a ControlInfoBuilder and return the resulting ControlInfo.static Info.PortInfoChooser
port()
Get a PortInfoChooser to choose a PortInfoBuilderstatic PortInfo
port(Function<Info.PortInfoChooser,Info.PortInfoBuilder> p)
Apply the provided function to a PortInfoChooser to choose and customize a PortInfoBuilder and return the resulting PortInfo.
-
-
-
Method Detail
-
component
public static Info.ComponentInfoBuilder component()
Create a ComponentInfoBuilder- Returns:
- builder
-
component
public static ComponentInfo component(UnaryOperator<Info.ComponentInfoBuilder> cmp)
Apply the provided function to a new ComponentInfoBuilder and return the resulting ComponentInfo.- Parameters:
cmp
- function to modify builder- Returns:
- ComponentInfo from builder
-
port
public static Info.PortInfoChooser port()
Get a PortInfoChooser to choose a PortInfoBuilder- Returns:
- builder chooser
-
port
public static PortInfo port(Function<Info.PortInfoChooser,Info.PortInfoBuilder> p)
Apply the provided function to a PortInfoChooser to choose and customize a PortInfoBuilder and return the resulting PortInfo.- Parameters:
p
- function to choose and configure builder- Returns:
- PortInfo from builder
-
control
public static Info.ControlInfoChooser control()
Get a ControlInfoChooser to choose a ControlInfoBuilder- Returns:
- builder chooser
-
control
public static ControlInfo control(Function<Info.ControlInfoChooser,Info.ControlInfoBuilder<?>> c)
Apply the provided function to a ControlInfoChooser to choose and customize a ControlInfoBuilder and return the resulting ControlInfo.- Parameters:
c
- function to choose and configure builder- Returns:
- ControlInfo from builder
-
argument
public static Info.ArgumentInfoChooser argument()
Get an ArgumentInfoChooser to choose an ArgumentInfoBuilder.- Returns:
- builder chooser
-
argument
public static ArgumentInfo argument(Function<Info.ArgumentInfoChooser,Info.ArgumentInfoBuilder<?>> a)
Apply the provided function to an ArgumentInfoChooser to choose and configure an ArgumentInfoBuilder and return the resulting ArgumentInfo.- Parameters:
a
- function to choose and configure builder- Returns:
- ArgumentInfo from builder
-
-