Class RuleNameDirective

java.lang.Object
application.model.rules.ruleloader.Directive
application.model.rules.ruleloader.RuleNameDirective
All Implemented Interfaces:
Exportable

public class RuleNameDirective
extends Directive
implements Exportable
  • Field Summary

    Fields inherited from class application.model.rules.ruleloader.Directive

    directiveName
  • Constructor Summary

    Constructors 
    Constructor Description
    RuleNameDirective​(java.lang.String content)  
  • Method Summary

    Modifier and Type Method Description
    java.lang.Object clone()
    Deep copies the directive
    java.lang.String export()
    Exports the directive to Golly / Lifelib
    java.lang.String getName()  
    void parseContent​(java.lang.String content)
    Parses the content of the directive

    Methods inherited from class application.model.rules.ruleloader.Directive

    getDirectiveName

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • parseContent

      public void parseContent​(java.lang.String content)
      Description copied from class: Directive
      Parses the content of the directive
      Specified by:
      parseContent in class Directive
      Parameters:
      content - The content of the directive
    • clone

      public java.lang.Object clone()
      Description copied from class: Directive
      Deep copies the directive
      Specified by:
      clone in class Directive
      Returns:
      Return a deepcopy of the directive
    • getName

      public java.lang.String getName()
    • export

      public java.lang.String export()
      Description copied from interface: Exportable
      Exports the directive to Golly / Lifelib
      Specified by:
      export in interface Exportable
      Returns:
      The exported directive to be parsed by Golly or Lifelib