Class EnumEqualsNode

All Implemented Interfaces:
Comparable<NodeType>

public class EnumEqualsNode extends NodeTypeExtension
  • Constructor Details

    • EnumEqualsNode

      public EnumEqualsNode(Class<? extends Enum<?>> enumClass)
  • Method Details

    • getImports

      public Collection<io.ran.Clazz<?>> getImports()
      Overrides:
      getImports in class NodeTypeExtension
      Returns:
      the classes/packages to be imported for the node to work
    • getName

      public String getName()
      Description copied from class: NodeType
      Returns the JavaScript class name of the node, override to change the class name of the node.
      Overrides:
      getName in class NodeType
      Returns:
      The JavaScript class name of the node.
    • getNodeLabel

      public String getNodeLabel()
      Overrides:
      getNodeLabel in class NodeType
    • getMenuLabel

      public String getMenuLabel()
      Description copied from class: NodeType
      Override this method to change the name of the node displayed in the context menu.
      Overrides:
      getMenuLabel in class NodeType
      Returns:
      String that specifies the node name in the context menu.
    • getMenuGroup

      public List<String> getMenuGroup()
      Description copied from class: NodeType
      Override this method to change the group where the node will appear in the context menu.
      Overrides:
      getMenuGroup in class NodeType
      Returns:
      List of strings that organises the node in a hierarchy in the context menu.
    • isOutputMethodInline

      public boolean isOutputMethodInline(EditorNode node)
      Overrides:
      isOutputMethodInline in class NodeTypeExtension
    • writeInlineOutputMethod

      public String writeInlineOutputMethod(EditorNode node, String outputName)
      Overrides:
      writeInlineOutputMethod in class NodeTypeExtension