Skip to content

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, AstNode

All Known Implementing Classes:
    GenericAstMapEntry, 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 io.github.qishr.cascara.common.lang.ast.@io.github.qishr.cascara.common.annotation.Experimental 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

@io.github.qishr.cascara.common.annotation.Experimental
public abstract io.github.qishr.cascara.common.lang.ast.@io.github.qishr.cascara.common.annotation.Experimental MapEntryAstNode setRaw(V value)

Replaces the value corresponding to this entry with the specified value (optional operation).


getChildren

public default List getChildren()