Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ASTFactory Members

ASTFactory overview

Public Instance Constructors

ASTFactory Overloaded. Initializes a new instance of the ASTFactory class.

Public Instance Methods

addASTChild Add a child to the current AST
createOverloaded. Creates a new uninitialized AST node. Since a specific AST Node Type wasn't indicated, the new AST node is created using the current default AST Node type - defaultASTNodeTypeObject_
dup Returns a copy of the specified AST Node instance. The copy is obtained by using the ICloneable method Clone().
dupList Duplicate AST Node tree rooted at specified AST node and all of it's siblings.
dupTree Duplicate AST Node tree rooted at specified AST node. Ignore it's siblings.
Equals (inherited from Object)Determines whether the specified Object is equal to the current Object.
error To change where error messages go, can subclass/override this method and then setASTFactory in Parser and TreeParser. This method removes a prior dependency on class antlr.Tool.
GetHashCode (inherited from Object)Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object)Gets the Type of the current instance.
makeOverloaded. Make a tree from a list of nodes. The first element in the array is the root. If the root is null, then the tree is a simple list not a tree. Handles null children nodes correctly. For example, build(a, b, null, c) yields tree (a b c). build(null,a,b) yields tree (nil a b).
makeASTRoot Make an AST the root of current AST.
registerFactoryObsolete. Register an AST Node Type for a given Token type ID.
setASTNodeCreator Register an ASTNodeCreator to be used for creating node by default.
setASTNodeType Sets the global default AST Node Type for this ASTFactory instance. This method also attempts to load the Type instance for the specified typename.
setMaxNodeType Pre-expands the internal list of TokenTypeID-to-ASTNodeType mappings to the specified size. This is primarily a convenience method that can be used to prevent unnecessary and costly re-org of the mappings list.
setTokenTypeASTNodeCreator Register an ASTNodeCreator for a given Token type ID.
setTokenTypeASTNodeType Specify an "override" for the AST type created for the specified Token type.
ToString (inherited from Object)Returns a String that represents the current Object.

Protected Instance Fields

defaultASTNodeTypeObject_ Stores the Type of the default AST node class to be used during tree construction.
defaultCreator_Missing <summary> documentation for F:Spring.Expressions.Parser.antlr.ASTFactory.defaultCreator_
heteroList_ Stores the mapping between custom AST NodeTypes and their NodeTypeName/NodeTypeClass and ASTNodeCreator.
typename2creator_ Stores the mapping between AST node typenames and their token ID.

Protected Instance Methods

Finalize (inherited from Object)Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
MemberwiseClone (inherited from Object)Creates a shallow copy of the current Object.

See Also

ASTFactory Class | Spring.Expressions.Parser.antlr Namespace