Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ASTFactory.setTokenTypeASTNodeType Method

Specify an "override" for the AST type created for the specified Token type.

[Visual Basic]
Public Sub setTokenTypeASTNodeType( _
   ByVal tokenType As Integer, _
   ByVal NodeTypeName As String _
public void setTokenTypeASTNodeType(
   int tokenType,
   string NodeTypeName


Token type to override.
Fully qualified AST typename (or null to specify the factory's default AST type).


This method is useful for situations that ANTLR cannot oridinarily deal with (i.e., when you create a token based upon a nonliteral token symbol like #[LT(1)]. This is a runtime value and ANTLR cannot determine the token type (and hence the AST) statically.

See Also

ASTFactory Class | Spring.Expressions.Parser.antlr Namespace