public class Variable extends AbstractToken<Object>
Token.TokenType| Modifier and Type | Field and Description |
|---|---|
static String |
ENV_VAR |
static Variable |
FALSE
Boolean value false
|
static String |
INSTANCE_VAR |
static Variable |
LAMBDA
Lambda keyword
|
static Variable |
NIL
Boolean value false
|
static Variable |
TRUE
Boolean value true
|
lexeme| Modifier and Type | Method and Description |
|---|---|
Token.TokenType |
getType() |
Object |
getValue(Map<String,Object> env) |
boolean |
isQuote() |
void |
setQuote(boolean special) |
String |
toString() |
equals, getLexeme, getStartIndex, hashCodepublic static final String INSTANCE_VAR
public static final String ENV_VAR
public static final Variable TRUE
public static final Variable FALSE
public static final Variable NIL
public static final Variable LAMBDA
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 © 2019. All rights reserved.