Package io.github.qishr.cascara.common.lang.ast
Interface MapEntryAstNode
java.lang.Object
io.github.qishr.cascara.common.lang.ast.MapEntryAstNode
All Implemented Interfaces:
AstNode
All Known Implementing Classes:
ReferenceMapEntryNode, JsonMapEntryNode, YamlMapEntryNode
public interface MapEntryAstNode
Represents the structural pairing of a key and a value in a Map.K The type of the key (usually String/ScalarAstNode) V The type of the value node
Method Summary
| Modifier and Type | Method | Description |
|---|---|---|
| public abstract T | getKey() | Returns the key corresponding to this entry. |
| public abstract T | getValue() | Returns the value corresponding to this entry. |
| public abstract void | setRaw(T value) | Replaces the value corresponding to this entry with the specified value (optional operation). |
| public default List |
getChildren() |
Method Details
getKey
public abstract T getKey()
Returns the key corresponding to this entry.
getValue
public abstract T getValue()
Returns the value corresponding to this entry.
setRaw
public abstract void setRaw(T value)
Replaces the value corresponding to this entry with the specified value (optional operation).
getChildren
public default List
Specified By: