Class BslHiddenRegionReplacer

java.lang.Object
org.eclipse.xtext.formatting2.internal.HiddenRegionReplacer
com.e1c.g5.v8.dt.formatter.bsl.BslHiddenRegionReplacer
All Implemented Interfaces:
org.eclipse.xtext.formatting2.ITextReplacer

public class BslHiddenRegionReplacer extends org.eclipse.xtext.formatting2.internal.HiddenRegionReplacer
This class is extension of HiddenRegionReplacer that does not format comment subregions or any subregions of hidden region that are previous to comment subregions. Also contains information about wrap groups(wrap group is group of regions that are wrapped entirely or not wrapped at all)
  • Field Summary

    Fields inherited from interface org.eclipse.xtext.formatting2.ITextReplacer

    GET_REGION
  • Constructor Summary

    Constructors
    Constructor
    Description
    BslHiddenRegionReplacer(org.eclipse.xtext.formatting2.regionaccess.IHiddenRegion region, org.eclipse.xtext.formatting2.IHiddenRegionFormatting formatting)
    Creates new instance by calling super's constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    org.eclipse.xtext.formatting2.ITextReplacerContext
    createReplacements(org.eclipse.xtext.formatting2.ITextReplacerContext context)
     
    int
    Gets the groupID value
    void
    setGroupID(int groupID)
    Set's the groupID field
     

    Methods inherited from class org.eclipse.xtext.formatting2.internal.HiddenRegionReplacer

    applyHiddenRegionFormatting, applyIndentation, applyPriorityAndDefaultFormatting, applySeparatorConfiguration, createReplacers, findWhitespaceThatSeparatesSemanticRegions, getFormatting, getRegion, introduceNewlinesAroundMLComments

    Methods inherited from class java.lang.Object

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

    • BslHiddenRegionReplacer

      public BslHiddenRegionReplacer(org.eclipse.xtext.formatting2.regionaccess.IHiddenRegion region, org.eclipse.xtext.formatting2.IHiddenRegionFormatting formatting)
      Creates new instance by calling super's constructor
      Parameters:
      region - The region to perform on, cannot be null
      formatting - The formatting that provides formatting information, cannot be null
  • Method Details

    • createReplacements

      public org.eclipse.xtext.formatting2.ITextReplacerContext createReplacements(org.eclipse.xtext.formatting2.ITextReplacerContext context)
      Specified by:
      createReplacements in interface org.eclipse.xtext.formatting2.ITextReplacer
      Overrides:
      createReplacements in class org.eclipse.xtext.formatting2.internal.HiddenRegionReplacer
    • getGroupID

      public int getGroupID()
      Gets the groupID value
      Returns:
      The value of the groupID field
    • setGroupID

      public void setGroupID(int groupID)
      Set's the groupID field
      Parameters:
      groupID - The value to set
    • toString

      public String toString()
      Overrides:
      toString in class org.eclipse.xtext.formatting2.internal.HiddenRegionReplacer