The PrintVisitor type exposes the following members.

Constructors

  Name Description
PrintVisitor
Creates a visitor to create and print string representations of an expression tree.

Methods

  Name Description
AddSpecialRule
Adds a special print rule to be added for a given operator. TODO Allow special rules for other functions, i.e. not operators.
Append
Add a string to buffer. Classes implementing IPrintRules should call this add the
Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
FormatValue Overloaded.
GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
GetLightWeightInstance
GetMode Overloaded.
GetType
Gets the Type of the current instance.
(Inherited from Object.)
Init
MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Print Overloaded.
PrintLine Overloaded.
PrintWrap
Utility method to print a wrapped version of the output. Each line will be a maximum of maxLen characters wide with lines broken on
SetMode
Set printing mode.

In full bracket mode the brackets each element in the tree will be surrounded by brackets to indicate the tree structure.

In the default mode, (full bracket off) the number of brackets is minimized so (x+y)+z will be printed as x+y+z.

ToString Overloaded.
Visit Overloaded.

Fields

  Name Description
COMPLEX_I
Print Complex as 3+2 i
format
The NumberFormat object used to print numbers.
FULL_BRACKET
All brackets are printed. Removes all ambiguity.
mode
The current mode for printing.
sb

Properties

  Name Description
MaxLen
Gets / Sets the maximum length printed per line. If the value is not -1 then the string will be broken into chunks each of which is less than the max length.

See Also