public class SourceRegion extends Object
Modifier and Type | Field and Description |
---|---|
static int |
TYPE_COMMENT |
static int |
TYPE_DIRECTIVE |
static int |
TYPE_EMPTY_TAG |
static int |
TYPE_END_TAG |
static int |
TYPE_TAG |
static int |
TYPE_TEXT |
Constructor and Description |
---|
SourceRegion(String content,
int start,
int end,
int type) |
Modifier and Type | Method and Description |
---|---|
SourceRegion |
append(SourceRegion sr) |
boolean |
closes(SourceRegion region) |
boolean |
firstLineEntirelyWhitespace() |
HashMap<String,String> |
getAttributes() |
String |
getContent() |
int |
getEnd() |
int |
getStart() |
TagInfo |
getTagInfo() |
int |
getType() |
boolean |
isComment() |
boolean |
isControlTag() |
boolean |
isDirective() |
boolean |
isEmptyTag() |
boolean |
isEndTag() |
boolean |
isTag() |
boolean |
isText() |
boolean |
lastLineEntirelyWhitespace() |
void |
setStart(int linenum,
int col) |
void |
setTagInfo(TagInfo tagInfo) |
String |
toString() |
void |
truncateLeadingWhitespace() |
void |
truncateTrailingWhitespace() |
public static int TYPE_TEXT
public static int TYPE_TAG
public static int TYPE_END_TAG
public static int TYPE_EMPTY_TAG
public static int TYPE_DIRECTIVE
public static int TYPE_COMMENT
public SourceRegion(String content, int start, int end, int type)
public String getContent()
public int getStart()
public int getEnd()
public int getType()
public void setStart(int linenum, int col)
public HashMap<String,String> getAttributes() throws IllFormedTemplateException
IllFormedTemplateException
public boolean isText()
public boolean isTag()
public boolean isEndTag()
public boolean isEmptyTag()
public boolean isDirective()
public boolean isComment()
public boolean closes(SourceRegion region)
public SourceRegion append(SourceRegion sr)
public TagInfo getTagInfo()
public void setTagInfo(TagInfo tagInfo)
public boolean firstLineEntirelyWhitespace()
public boolean lastLineEntirelyWhitespace()
public boolean isControlTag()
public void truncateTrailingWhitespace()
public void truncateLeadingWhitespace()
Copyright © 2015. All rights reserved.