Package io.github.qishr.cascara.common.lang.reference
Class ReferenceScalarNode
java.lang.Object
io.github.qishr.cascara.common.lang.reference.ReferenceNode
io.github.qishr.cascara.common.lang.reference.ReferenceScalarNode
All Implemented Interfaces:
ScalarAstNode<ReferenceNode>
public final class ReferenceScalarNode
extends ReferenceNode
Constructor Summary
| Constructor | Description |
|---|---|
| ReferenceScalarNode(Object value) |
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
| public void | setQuoteStyle(QuoteStyle style) | |
| public String | getRaw() | |
| public String | asString() | |
| public int | asInteger() | |
| public int | asInteger(int defaultValue) | |
| public double | asDouble() | |
| public double | asDouble(double defaultValue) | |
| public boolean | asBoolean() | |
| public boolean | asBoolean(boolean defaultValue) | |
| public Object | getPrimitive() | |
| public void | setPrimitive(Object value) | |
| public List<? extends AstNode> | getChildren() | |
| public List<CommentAstNode> | getComments() | |
| public QuoteStyle | getQuoteStyle() |
Methods inherited from ReferenceNode
getEndColumn, getEndLine, getStartColumn, getToken, getStartLine
Method Details
setQuoteStyle
public void setQuoteStyle(QuoteStyle style)
Specified By:
getRaw
public String getRaw()
Specified By:
asString
public String asString()
Specified By:
asInteger
public int asInteger()
Specified By:
asInteger
public int asInteger(int defaultValue)
Specified By:
asDouble
public double asDouble()
Specified By:
asDouble
public double asDouble(double defaultValue)
Specified By:
asBoolean
public boolean asBoolean()
Specified By:
asBoolean
public boolean asBoolean(boolean defaultValue)
Specified By:
getPrimitive
public Object getPrimitive()
Specified By:
setPrimitive
public void setPrimitive(Object value)
Specified By:
getChildren
public List<? extends AstNode> getChildren()
getComments
public List<CommentAstNode> getComments()
getQuoteStyle
public QuoteStyle getQuoteStyle()
Specified By: