Package nl.rrd.wool.parser
Class WoolBodyToken
- java.lang.Object
-
- nl.rrd.wool.parser.WoolBodyToken
-
public class WoolBodyToken extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classWoolBodyToken.Type
-
Constructor Summary
Constructors Constructor Description WoolBodyToken()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetColNum()intgetLineNum()StringgetText()WoolBodyToken.TypegetType()ObjectgetValue()static voidremoveLeadingWhitespace(List<WoolBodyToken> tokens)static voidremoveTrailingWhitespace(List<WoolBodyToken> tokens)voidsetColNum(int colNum)voidsetLineNum(int lineNum)voidsetText(String text)voidsetType(WoolBodyToken.Type type)voidsetValue(Object value)static List<WoolBodyToken>skipWhitespace(CurrentIterator<WoolBodyToken> tokens)Moves to the next token that is not a text token with only whitespace.static voidtrimWhitespace(List<WoolBodyToken> tokens)
-
-
-
Method Detail
-
getType
public WoolBodyToken.Type getType()
-
setType
public void setType(WoolBodyToken.Type type)
-
getLineNum
public int getLineNum()
-
setLineNum
public void setLineNum(int lineNum)
-
getColNum
public int getColNum()
-
setColNum
public void setColNum(int colNum)
-
getText
public String getText()
-
setText
public void setText(String text)
-
getValue
public Object getValue()
-
setValue
public void setValue(Object value)
-
trimWhitespace
public static void trimWhitespace(List<WoolBodyToken> tokens)
-
removeLeadingWhitespace
public static void removeLeadingWhitespace(List<WoolBodyToken> tokens)
-
removeTrailingWhitespace
public static void removeTrailingWhitespace(List<WoolBodyToken> tokens)
-
skipWhitespace
public static List<WoolBodyToken> skipWhitespace(CurrentIterator<WoolBodyToken> tokens)
Moves to the next token that is not a text token with only whitespace.- Parameters:
tokens- the tokens- Returns:
- the skipped tokens
-
-