Skip to content

Package io.github.qishr.cascara.common.lang.token

Interface Token

java.lang.Object
        io.github.qishr.cascara.common.lang.token.Token

All Known Implementing Classes:
    JsonToken, XmlToken, YamlToken


public interface Token

Method Summary

Modifier and Type Method Description
public abstract TokenType getType()
public abstract String getLexeme() Returns the exact literal characters scanned from the source file, including any surrounding quotes or syntax indicators.
public abstract String getContent() Returns the unescaped, processed string content within the token boundaries.
public abstract int getOffset()
public abstract int getStartLine()
public abstract int getStartColumn()
public abstract String toString()

Method Details

getType

public abstract TokenType getType()


getLexeme

public abstract String getLexeme()

Returns the exact literal characters scanned from the source file, including any surrounding quotes or syntax indicators.


getContent

public abstract String getContent()

Returns the unescaped, processed string content within the token boundaries.


getOffset

public abstract int getOffset()


getStartLine

public abstract int getStartLine()


getStartColumn

public abstract int getStartColumn()


toString

public abstract String toString()