Package org.wurbelizer.wurbel
Class VisualStudioRegion
java.lang.Object
org.wurbelizer.wurbel.AbstractSourceRegion
org.wurbelizer.wurbel.VisualStudioRegion
- All Implemented Interfaces:
SourceRegion
Visual Studio style source region.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.wurbelizer.wurbel.SourceRegion
SourceRegion.FoldType
-
Field Summary
Fields inherited from class org.wurbelizer.wurbel.AbstractSourceRegion
GUARD_BEGIN, GUARD_END
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateBegin
(SourceRegion.FoldType foldType, String guardName, SourceWurbletSubElement wurbletElement) Creates the start comment.createEnd
(SourceRegion.FoldType foldType, String guardName, SourceWurbletSubElement wurbletElement) Creates the end comment.getBeginName
(String comment) Gets the region's name (wurblet tag) if this is the start comment is of this region type.getEndName
(String comment) Gets the region's name (wurblet tag) if this is the end comment is of this region type.boolean
Returns whether this is the end comment for the given region's name.type()
Gets the unique name of the region type.Methods inherited from class org.wurbelizer.wurbel.AbstractSourceRegion
createCommentGeneratedBy, matches, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.wurbelizer.wurbel.SourceRegion
isDefault
-
Constructor Details
-
VisualStudioRegion
public VisualStudioRegion()
-
-
Method Details
-
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 noneguardName
- the name of the guarded sectionwurbletElement
- 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 noneguardName
- the name of the guarded sectionwurbletElement
- the wurblet element- Returns:
- the comment
-
getBeginName
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
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
Description copied from interface:SourceRegion
Returns whether this is the end comment for the given region's name.- Parameters:
comment
- the comment stringname
- the region's name- Returns:
- true if matching end comment
-