Class CommentBlockPartitioner

java.lang.Object
org.eclipse.epsilon.egl.merge.partition.CommentBlockPartitioner
All Implemented Interfaces:
Partitioner

public class CommentBlockPartitioner extends Object implements Partitioner
  • Constructor Details

    • CommentBlockPartitioner

      public CommentBlockPartitioner(String startComment, String endComment)
  • Method Details

    • initPattern

      protected Pattern initPattern()
      Computes the regular expression used to match protected region start/end markers. When editing this method, please maintain the GROUP_* constants up to date.
      See Also:
      • GROUP_REGION_ID
      • GROUP_REGION_TYPE
      • GROUP_END_OR_BEGIN
      • GROUP_ON_OR_OFF
    • getStartComment

      public String getStartComment()
    • getEndComment

      public String getEndComment()
    • getFirstLine

      public String getFirstLine(String id, boolean enabled, RegionType regionType)
    • regionTypeToString

      protected String regionTypeToString(RegionType regionType)
    • regionTypeFromString

      protected RegionType regionTypeFromString(String regionType)
    • getLastLine

      public String getLastLine(String id, RegionType regionType)
    • partition

      public Output partition(String text)
      Specified by:
      partition in interface Partitioner
    • partition

      public Output partition(String text, int offset)
      Specified by:
      partition in interface Partitioner
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object