Package io.github.qishr.cascara.common.lang.generic
Class GenericAstScalar
java.lang.Object
io.github.qishr.cascara.common.lang.generic.GenericAstNode
io.github.qishr.cascara.common.lang.generic.GenericAstScalar
All Implemented Interfaces:
ScalarAstNode<AstNode>
public final class GenericAstScalar
extends GenericAstNode
Constructor Summary
| Constructor | Description |
|---|---|
| GenericAstScalar(Object value) | |
| GenericAstScalar(Object value, QuoteStyle quoteStyle) |
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
| public GenericAstScalar | setQuoteStyle(QuoteStyle style) | |
| public String | getLexeme() | |
| public Object | getPrimitive() | |
| public List<? extends AstNode> | getChildren() | |
| public List<CommentAstNode> | getComments() | |
| public QuoteStyle | getQuoteStyle() | |
| public String | getContent() | |
| public boolean | equals(Object o) | |
| public int | hashCode() | |
| public PrimitiveType | getPrimitiveType() | |
| public ScalarAstNode<AstNode> | setPrimitive(Object jvmValue) |
Methods inherited from GenericAstNode
getEndColumn, getEndLine, getStartColumn, getToken, getStartLine
Method Details
setQuoteStyle
public GenericAstScalar setQuoteStyle(QuoteStyle style)
Specified By:
getLexeme
@io.github.qishr.cascara.common.annotation.Nullable
public String getLexeme()
Specified By:
getPrimitive
@io.github.qishr.cascara.common.annotation.Nullable
public Object getPrimitive()
Specified By:
getChildren
public List<? extends AstNode> getChildren()
getComments
public List<CommentAstNode> getComments()
getQuoteStyle
public QuoteStyle getQuoteStyle()
Specified By:
getContent
public String getContent()
Specified By:
equals
public boolean equals(Object o)
Overrides:
hashCode
public int hashCode()
Overrides:
getPrimitiveType
public PrimitiveType getPrimitiveType()
Specified By:
setPrimitive
public ScalarAstNode<AstNode> setPrimitive(Object jvmValue)
Specified By: