|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.mylar.internal.tasks.core.HtmlStreamTokenizer.Token
public static class HtmlStreamTokenizer.Token
Class for current token.
Nested Class Summary | |
---|---|
private static class |
HtmlStreamTokenizer.Token.Type
Private enum class for token type. |
Field Summary | |
---|---|
static HtmlStreamTokenizer.Token.Type |
COMMENT
|
static HtmlStreamTokenizer.Token.Type |
EOF
|
static HtmlStreamTokenizer.Token.Type |
TAG
|
static HtmlStreamTokenizer.Token.Type |
TEXT
|
private HtmlStreamTokenizer.Token.Type |
type
token's type |
private java.lang.Object |
value
token's value |
private java.lang.StringBuffer |
whitespace
whitespace preceding the token |
Constructor Summary | |
---|---|
protected |
HtmlStreamTokenizer.Token()
Constructor for the EOF token. |
protected |
HtmlStreamTokenizer.Token(HtmlTag tag,
java.lang.StringBuffer whitespace)
Constructor for the HTML tag tokens. |
protected |
HtmlStreamTokenizer.Token(java.lang.StringBuffer text,
java.lang.StringBuffer whitespace,
boolean comment)
Constructor for regular text and comments. |
Method Summary | |
---|---|
HtmlStreamTokenizer.Token.Type |
getType()
Returns the token's type. |
java.lang.Object |
getValue()
Returns the token's value. |
java.lang.StringBuffer |
getWhitespace()
Returns the whitespace preceding the token. |
java.lang.String |
toString()
Returns the string representation of the token, including the preceding whitespace. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final HtmlStreamTokenizer.Token.Type EOF
public static final HtmlStreamTokenizer.Token.Type TEXT
public static final HtmlStreamTokenizer.Token.Type TAG
public static final HtmlStreamTokenizer.Token.Type COMMENT
private HtmlStreamTokenizer.Token.Type type
private java.lang.Object value
private java.lang.StringBuffer whitespace
Constructor Detail |
---|
protected HtmlStreamTokenizer.Token()
protected HtmlStreamTokenizer.Token(HtmlTag tag, java.lang.StringBuffer whitespace)
protected HtmlStreamTokenizer.Token(java.lang.StringBuffer text, java.lang.StringBuffer whitespace, boolean comment)
Method Detail |
---|
public HtmlStreamTokenizer.Token.Type getType()
public java.lang.StringBuffer getWhitespace()
public java.lang.Object getValue()
TAG
and a StringBuffer for tokens of type
TEXT
and COMMENT
. For tokens of type
EOF
, the value is null
.
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |