Class InputToken
java.lang.Object
com.pnfsoftware.jeb.util.interpreter.InputToken
An input token used in a command.
-
Constructor Summary
ConstructorsConstructorDescriptionInputToken(String value) Create an input token that does not need unescaping.InputToken(String value, boolean needsUnescaping) Create an input token. -
Method Summary
-
Constructor Details
-
InputToken
Create an input token.- Parameters:
value- token valueneedsUnescaping- true if escape sequences should be decoded bygetBytes()
-
InputToken
Create an input token that does not need unescaping.- Parameters:
value- token value
-
-
Method Details
-
getValue
Get the token value.- Returns:
- token value
-
toString
-
needsUnespaping
public boolean needsUnespaping()Determine whether this token should be unescaped when converted to bytes.- Returns:
- true if escape sequences should be decoded by
getBytes()
-
getBytes
Convert this token to bytes.- Returns:
- token bytes
- Throws:
UnsupportedEncodingException- if the token contains unsupported escaped content
-