Class AbstractSourceRegion
java.lang.Object
org.wurbelizer.wurbel.AbstractSourceRegion
- All Implemented Interfaces:
SourceRegion
- Direct Known Subclasses:
CoffeeBytesRegion, NetbeansRegion, VisualStudioRegion
Holds common code for source regions.
-
Nested Class Summary
Nested classes/interfaces inherited from interface SourceRegion
SourceRegion.FoldType -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringcreateCommentGeneratedBy(String guardName, SourceWurbletSubElement wurbletElement) Creates the text for the generated by comment.protected booleanChecks for the token and assert it's not a region name.toString()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface SourceRegion
createBegin, createEnd, getBeginName, getEndName, isDefault, isEnd, type
-
Field Details
-
GUARD_BEGIN
Tag to start a named region.
Immediately followed by the guarded region's name.- See Also:
-
GUARD_END
Tag to end a named region.
Immediately followed by the guarded region's name.- See Also:
-
-
Constructor Details
-
AbstractSourceRegion
public AbstractSourceRegion()
-
-
Method Details
-
createCommentGeneratedBy
Creates the text for the generated by comment.- Parameters:
guardName- the name of the guarded sectionwurbletElement- the wurblet element- Returns:
- the comment part
-
matches
-
toString
-