- java.lang.Object
-
- org.praxislive.core.Info
-
public class Info extends Object
Builder utilities for creatingComponentInfoand related classes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInfo.ActionInfoBuilderBuilder for ControlInfo of action controls.static classInfo.ArgumentInfoBuilder<T extends Info.ArgumentInfoBuilder<T>>Abstract base class for ArgumentInfoBuilders.static classInfo.ArgumentInfoChooserHelper class for choosing an ArgumentInfoBuilder type.static classInfo.ComponentInfoBuilderComponentInfoBuilder classstatic classInfo.ControlInfoBuilder<T extends Info.ControlInfoBuilder<T>>Abstract base class for ControlInfo builders.static classInfo.ControlInfoChooserHelper class for choosing a ControlInfoBuilder type.static classInfo.FunctionInfoBuilderBuilder for ControlInfo for function controls.static classInfo.NumberInfoBuilderBuilder for ArgumentInfo of PNumber.static classInfo.PortInfoBuilderPortInfoBuilderstatic classInfo.PortInfoChooserHelper class to choose a PortInfoBuilder type.static classInfo.PropertyInfoBuilderBuilder for ControlInfo of property controls.static classInfo.ReadOnlyPropertyInfoBuilderBuilder for ControlInfo of read-only properties.static classInfo.StringInfoBuilderBuilder for ArgumentInfo of PString.static classInfo.ValueInfoBuilderBuilder for ArgumentInfo of any Value type.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Info.ArgumentInfoChooserargument()Get an ArgumentInfoChooser to choose an ArgumentInfoBuilder.static ArgumentInfoargument(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.ComponentInfoBuildercomponent()Create a ComponentInfoBuilderstatic ComponentInfocomponent(UnaryOperator<Info.ComponentInfoBuilder> cmp)Apply the provided function to a new ComponentInfoBuilder and return the resulting ComponentInfo.static Info.ControlInfoChoosercontrol()Get a ControlInfoChooser to choose a ControlInfoBuilderstatic ControlInfocontrol(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.PortInfoChooserport()Get a PortInfoChooser to choose a PortInfoBuilderstatic PortInfoport(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
-
-