Enum NodeType

    • Enum Constant Detail

      • Config

        public static final NodeType Config
      • Defines

        public static final NodeType Defines
      • Table

        public static final NodeType Table
      • Code

        public static final NodeType Code
      • Unknown

        public static final NodeType Unknown
    • Method Detail

      • values

        public static NodeType[] 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 (NodeType c : NodeType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static NodeType 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
      • getNodeType

        public static NodeType getNodeType​(Object unknownObject)
        Gets the type of node by object.
        Parameters:
        unknownObject - The object loaded by YAML
        Returns:
        The matched type of node