public class Variable extends AbstractToken<Object>
Token.TokenType| Modifier and Type | Field and 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 |
USE |
static Variable |
WHILE
while keyword
|
lexeme| Constructor and Description |
|---|
Variable(String name,
int lineNo,
int startIndex) |
| Modifier and Type | Method and Description |
|---|---|
Token.TokenType |
getType() |
Object |
getValue(Map<String,Object> env) |
boolean |
isQuote() |
void |
setLexeme(String lexeme) |
void |
setQuote(boolean special) |
String |
toString() |
equals, getEndIndex, getLexeme, getLineNo, getMeta, 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 static final Variable USE
public Variable(String name, int lineNo, int startIndex)
public boolean isQuote()
public void setQuote(boolean special)
public Token.TokenType getType()
public void setLexeme(String lexeme)
public String toString()
toString in class AbstractToken<Object>Copyright © 2010–2022. All rights reserved.