Package io.github.qishr.cascara.common.lang.ast
Interface MapEntryAstNode
java.lang.Object
io.github.qishr.cascara.common.lang.ast.MapEntryAstNode
All Implemented Interfaces:
Entry
All Known Implementing Classes:
ReferenceMapEntryNode, JsonProperty, YamlMapEntry
public interface MapEntryAstNode
Represents the structural pairing of a key and a value in a Map.
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
| public abstract K | getKey() | Returns the key corresponding to this entry. |
| public default String | getKeyString() | |
| public abstract V | getValue() | Returns the value corresponding to this entry. |
| public abstract MapEntryAstNode |
setRaw(V value) | Replaces the value corresponding to this entry with the specified value (optional operation). |
| public default List |
getChildren() |
Method Details
getKey
public abstract K getKey()
Returns the key corresponding to this entry.
getKeyString
public default String getKeyString()
getValue
public abstract V getValue()
Returns the value corresponding to this entry.
setRaw
public abstract MapEntryAstNode
Replaces the value corresponding to this entry with the specified value (optional operation).
getChildren
public default List