Enum SyntacticNode.NodeType

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<SyntacticNode.NodeType>
    Enclosing class:
    SyntacticNode

    public static enum SyntacticNode.NodeType
    extends java.lang.Enum<SyntacticNode.NodeType>
    Internal enum representing the types of nodes and how they are ordered, compared, and categorized.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getOrder()
      Sort order of type.
      boolean isExterior()
      Decide whether type is an input or output.
      boolean isFeedback()
      Decide whether type is feedback in or out.
      boolean isIncoming()
      Decide whether type is incoming.
      boolean isMediator()
      Decide whether type is a mediator.
      boolean isOutgoing()
      Decide whether type is outgoing.
      boolean isPure()
      Decide whether type is a purely syntactic one.
      boolean isUnknown()
      Decide whether type is unknown.
      static SyntacticNode.NodeType valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static SyntacticNode.NodeType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • values

        public static SyntacticNode.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 (SyntacticNode.NodeType c : SyntacticNode.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 SyntacticNode.NodeType valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • isUnknown

        public boolean isUnknown()
        Decide whether type is unknown.
        Returns:
        whether type is unknown.
      • isExterior

        public boolean isExterior()
        Decide whether type is an input or output.
        Returns:
        whether type is input or output.
      • isFeedback

        public boolean isFeedback()
        Decide whether type is feedback in or out.
        Returns:
        whether type is feedback in or out.
      • isPure

        public boolean isPure()
        Decide whether type is a purely syntactic one.
        Returns:
        whether type is a purely syntactic one.
      • isMediator

        public boolean isMediator()
        Decide whether type is a mediator.
        Returns:
        whether type is a mediator.
      • isIncoming

        public boolean isIncoming()
        Decide whether type is incoming. True if an input or feedback input.
        Returns:
        whether type is incoming.
      • isOutgoing

        public boolean isOutgoing()
        Decide whether type is outgoing. True if an output or feedback output.
        Returns:
        whether type is outgoing.
      • getOrder

        public int getOrder()
        Sort order of type.
        Returns:
        sort order of type.