Class VisualStudioRegion

java.lang.Object
org.wurbelizer.wurbel.AbstractSourceRegion
org.wurbelizer.wurbel.VisualStudioRegion
All Implemented Interfaces:
SourceRegion

public class VisualStudioRegion extends AbstractSourceRegion
Visual Studio style source region.
  • Constructor Details

    • VisualStudioRegion

      public VisualStudioRegion()
  • Method Details

    • type

      public String type()
      Description copied from interface: SourceRegion
      Gets the unique name of the region type.
      Returns:
      the type name
    • createBegin

      public String createBegin(SourceRegion.FoldType foldType, String guardName, SourceWurbletSubElement wurbletElement)
      Description copied from interface: SourceRegion
      Creates the start comment.
      Parameters:
      foldType - the fold type, null if none
      guardName - the name of the guarded section
      wurbletElement - the wurblet element
      Returns:
      the comment
    • createEnd

      public String createEnd(SourceRegion.FoldType foldType, String guardName, SourceWurbletSubElement wurbletElement)
      Description copied from interface: SourceRegion
      Creates the end comment.
      Parameters:
      foldType - the fold type, null if none
      guardName - the name of the guarded section
      wurbletElement - the wurblet element
      Returns:
      the comment
    • getBeginName

      public String getBeginName(String comment)
      Description copied from interface: SourceRegion
      Gets the region's name (wurblet tag) if this is the start comment is of this region type.
      Parameters:
      comment - the comment string
      Returns:
      the region's name if is of this type
    • getEndName

      public String getEndName(String comment)
      Description copied from interface: SourceRegion
      Gets the region's name (wurblet tag) if this is the end comment is of this region type.
      Parameters:
      comment - the comment string
      Returns:
      the region's name if is of this type
    • isEnd

      public boolean isEnd(String comment, String name)
      Description copied from interface: SourceRegion
      Returns whether this is the end comment for the given region's name.
      Parameters:
      comment - the comment string
      name - the region's name
      Returns:
      true if matching end comment