Token<Object>, Serializablepublic class Variable extends AbstractToken<Object>
Token.TokenType| Modifier and Type | Field | Description |
|---|---|---|
static Variable |
BREAK |
return keyword
|
static Variable |
CATCH |
|
static Variable |
CONTINUE |
return keyword
|
static Variable |
ELSE |
else keyword
|
static Variable |
ELSIF |
elsif keyword
|
static Variable |
END |
end keyword
|
static Variable |
FALSE |
Boolean value false
|
static Variable |
FINALLY |
|
static Variable |
FN |
fn keyword
|
static Variable |
FOR |
for keyword
|
static Variable |
IF |
if keyword
|
static Variable |
IN |
in keyword
|
static Variable |
LAMBDA |
Lambda keyword
|
static Variable |
LET |
let keyword
|
static Variable |
NEW |
|
static Variable |
NIL |
Boolean value false
|
static Variable |
RETURN |
return keyword
|
static Variable |
THROW |
|
static Variable |
TRUE |
Boolean value true
|
static Variable |
TRY |
elsif keyword
|
static Variable |
WHILE |
while keyword
|
lexeme| Modifier and Type | Method | Description |
|---|---|---|
Token.TokenType |
getType() |
|
Object |
getValue(Map<String,Object> env) |
|
boolean |
isQuote() |
|
void |
setQuote(boolean special) |
|
String |
toString() |
equals, getLexeme, getMeta, getMetaMap, getStartIndex, hashCode, setMetaMap, withMetapublic static final Variable TRUE
public static final Variable FALSE
public static final Variable NIL
public static final Variable LAMBDA
public static final Variable END
public static final Variable IF
public static final Variable ELSE
public static final Variable FOR
public static final Variable IN
public static final Variable RETURN
public static final Variable BREAK
public static final Variable CONTINUE
public static final Variable LET
public static final Variable WHILE
public static final Variable FN
public static final Variable ELSIF
public static final Variable TRY
public static final Variable CATCH
public static final Variable FINALLY
public static final Variable THROW
public static final Variable NEW
public Variable(String name, int startIndex)
public boolean isQuote()
public void setQuote(boolean special)
public Token.TokenType getType()
public String toString()
toString in class AbstractToken<Object>Copyright © 2022–2023. All rights reserved.