ISpoofaxAnalyzeUnit

public interface ISpoofaxAnalyzeUnit extends IAnalyzeUnit

Spoofax-specific extension of an IAnalyzeUnit that adds an IStrategoTerm AST.

Methods

ast

IStrategoTerm ast()
Returns:Analyzed AST, or null if valid() or hasAst() returns false. If success() returns false, this AST may still represent an error recovered AST.

hasAst

boolean hasAst()
Returns:True if the analyzer that created this unit attempted to make an AST. False otherwise.