Skip to content

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

Class GenericAstConverter

java.lang.Object
        io.github.qishr.cascara.common.lang.generic.GenericAstConverter

All Implemented Interfaces:
    AstConverter<GenericAstNode>


@io.github.qishr.cascara.common.annotation.Experimental
public class GenericAstConverter

Constructor Summary

Constructor Description
GenericAstConverter()

Method Summary

Modifier and Type Method Description
public GenericAstNode fromAst(AstNode ast)
public GenericAstNode toGenericAst(AstNode node)
public GenericAstConverter setReporter(Reporter reporter)
public GenericAstConverter setOptions(LanguageOptions<?> options)
public ContentType getContentType()
public String toString(AstNode ast)

Method Details

fromAst

@io.github.qishr.cascara.common.annotation.Nullable
public GenericAstNode fromAst(AstNode ast)

Specified By:

AstConverter


toGenericAst

@io.github.qishr.cascara.common.annotation.Nullable
public GenericAstNode toGenericAst(AstNode node)


setReporter

public GenericAstConverter setReporter(Reporter reporter)


setOptions

public GenericAstConverter setOptions(LanguageOptions<?> options)


getContentType

public ContentType getContentType()


toString

public String toString(AstNode ast)

Specified By:

AstConverter