Enum ArgType

  • All Implemented Interfaces:
    Serializable, Comparable<ArgType>

    public enum ArgType
    extends Enum<ArgType>
    An enum specifying a function argument type.

    Module: equations-api

    To use this in your app, include the following dependency in your POM:

    <dependency>
        <groupId>org.cytoscape</groupId>
        <artifactId>equations-api</artifactId>
    </dependency>

    Cytoscape Backwards Compatibility (Enum): This class is an enum therefore can't be extended by users. This means that we may add methods or enum values for minor version updates. Methods or enum values will only be removed for major version updates.
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ANY
      Any scalar argument.
      ANY_LIST
      One or more lists with arbitrary member element types and/or one or more scalars.
      BOOL
      An argument that can be converted to a boolean.
      BOOLS
      An non-empty sequence of arguments that consist of lists of booleans and scalars that can be converted to a boolean.
      FLOAT
      An argument that can be converted to a floating point value.
      FLOATS
      An non-empty sequence of arguments that consist of lists of floating point numbers and scalars that can be converted to a floating point number.
      INT
      An argument that can be converted to an integer.
      INTS
      An non-empty sequence of arguments that consist of lists of integers and scalars that can be converted to an integer.
      OPT_ANY_LIST
      Zero or more lists with arbitrary member element types and/or zero or more scalars.
      OPT_BOOL
      An optional boolean argument.
      OPT_BOOLS
      Zero or more arguments that consist of lists of booleans and scalars that can be converted to a boolean.
      OPT_FLOAT
      An optional floating point argument.
      OPT_FLOATS
      Zero or more arguments that consist of lists of floating point numbers and scalars that can be converted to a floating point number.
      OPT_INT
      An optional integer argument.
      OPT_INTS
      Zero or more arguments that consist of lists of integers and scalars that can be converted to an integer.
      OPT_STRICT_BOOL
      An optional boolean argument.
      OPT_STRICT_FLOAT
      An optional floating point number argument.
      OPT_STRICT_INT
      An optional integer argument.
      OPT_STRICT_STRING
      An optional string argument.
      OPT_STRING
      An optional string argument.
      OPT_STRINGS
      Zero or more arguments that consist of lists of strings and scalars that can be converted to a string.
      STRICT_ANY_LIST
      A list with arbitrary member element types.
      STRICT_BOOL
      A single boolean argument.
      STRICT_FLOAT
      A single floating point number argument.
      STRICT_INT
      A singke integer argument.
      STRICT_STRING
      A single string argument.
      STRING
      An argument that can be converted to a string.
      STRINGS
      An non-empty sequence of arguments that consist of lists of strings and scalars that can be converted to a string.
    • Enum Constant Detail

      • INT

        public static final ArgType INT
        An argument that can be converted to an integer.
      • FLOAT

        public static final ArgType FLOAT
        An argument that can be converted to a floating point value.
      • STRING

        public static final ArgType STRING
        An argument that can be converted to a string.
      • BOOL

        public static final ArgType BOOL
        An argument that can be converted to a boolean.
      • ANY

        public static final ArgType ANY
        Any scalar argument.
      • INTS

        public static final ArgType INTS
        An non-empty sequence of arguments that consist of lists of integers and scalars that can be converted to an integer.
      • FLOATS

        public static final ArgType FLOATS
        An non-empty sequence of arguments that consist of lists of floating point numbers and scalars that can be converted to a floating point number.
      • STRINGS

        public static final ArgType STRINGS
        An non-empty sequence of arguments that consist of lists of strings and scalars that can be converted to a string.
      • BOOLS

        public static final ArgType BOOLS
        An non-empty sequence of arguments that consist of lists of booleans and scalars that can be converted to a boolean.
      • STRICT_INT

        public static final ArgType STRICT_INT
        A singke integer argument.
      • STRICT_FLOAT

        public static final ArgType STRICT_FLOAT
        A single floating point number argument.
      • STRICT_STRING

        public static final ArgType STRICT_STRING
        A single string argument.
      • STRICT_BOOL

        public static final ArgType STRICT_BOOL
        A single boolean argument.
      • OPT_INT

        public static final ArgType OPT_INT
        An optional integer argument.
      • OPT_FLOAT

        public static final ArgType OPT_FLOAT
        An optional floating point argument.
      • OPT_STRING

        public static final ArgType OPT_STRING
        An optional string argument.
      • OPT_BOOL

        public static final ArgType OPT_BOOL
        An optional boolean argument.
      • OPT_INTS

        public static final ArgType OPT_INTS
        Zero or more arguments that consist of lists of integers and scalars that can be converted to an integer.
      • OPT_FLOATS

        public static final ArgType OPT_FLOATS
        Zero or more arguments that consist of lists of floating point numbers and scalars that can be converted to a floating point number.
      • OPT_STRINGS

        public static final ArgType OPT_STRINGS
        Zero or more arguments that consist of lists of strings and scalars that can be converted to a string.
      • OPT_BOOLS

        public static final ArgType OPT_BOOLS
        Zero or more arguments that consist of lists of booleans and scalars that can be converted to a boolean.
      • OPT_STRICT_INT

        public static final ArgType OPT_STRICT_INT
        An optional integer argument.
      • OPT_STRICT_FLOAT

        public static final ArgType OPT_STRICT_FLOAT
        An optional floating point number argument.
      • OPT_STRICT_STRING

        public static final ArgType OPT_STRICT_STRING
        An optional string argument.
      • OPT_STRICT_BOOL

        public static final ArgType OPT_STRICT_BOOL
        An optional boolean argument.
      • ANY_LIST

        public static final ArgType ANY_LIST
        One or more lists with arbitrary member element types and/or one or more scalars.
      • STRICT_ANY_LIST

        public static final ArgType STRICT_ANY_LIST
        A list with arbitrary member element types.
      • OPT_ANY_LIST

        public static final ArgType OPT_ANY_LIST
        Zero or more lists with arbitrary member element types and/or zero or more scalars.
    • Method Detail

      • values

        public static ArgType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ArgType c : ArgType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ArgType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • isOptional

        public boolean isOptional()
        Returns true if this type is optional.
        Returns:
        true if this type is optional.
      • acceptsMultipleArgs

        public boolean acceptsMultipleArgs()
        Returns true if this type accepts multiple args.
        Returns:
        true if this type accepts multiple args.
      • getCompatibleTypes

        public Class[] getCompatibleTypes()
        Returns an array of compatible Class types.
        Returns:
        an array of compatible Class types.