public class ParseResult extends Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
length
The length of the content.
|
protected int |
offset
The start position of the content.
|
protected List<String> |
styleKeys
The style keys of the content.
|
| Constructor and Description |
|---|
ParseResult(int offset,
int length,
List<String> styleKeys)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addStyleKey(String styleKey)
The style keys of the content.
|
void |
clearStyleKeys()
The style keys of the content.
|
int |
getLength()
The length of the content.
|
int |
getOffset()
The start position of the content.
|
List<String> |
getStyleKeys()
The style keys for this matched result, see
syntaxhighlighter.theme. |
String |
getStyleKeysString()
Get the style keys represented by one string key, see
Theme.getStylesAttributeSet(String). |
boolean |
removeStyleKey(String styleKey)
The style keys of the content.
|
void |
setLength(int length)
The length of the content.
|
void |
setOffset(int offset)
The start position of the content.
|
void |
setStyleKeys(List<String> styleKeys)
The style keys of the content.
|
String |
toString() |
protected int offset
protected int length
public int getOffset()
public void setOffset(int offset)
offset - the start position of the contentpublic int getLength()
public void setLength(int length)
length - the length of the contentpublic String getStyleKeysString()
Theme.getStylesAttributeSet(String).public void setStyleKeys(List<String> styleKeys)
styleKeys - the style keys of the contentpublic boolean addStyleKey(String styleKey)
styleKey - the style keyList.add(Object)public boolean removeStyleKey(String styleKey)
styleKey - the style keyList.remove(Object)public void clearStyleKeys()
public List<String> getStyleKeys()
syntaxhighlighter.theme.Copyright © 2015. All rights reserved.