C# Class Castle.MonoRail.Framework.Internal.JSGeneratorBase

Abstract class that contains the shared logic of JS Generation, separated from the various view engines implementations
Show file Open project: nats/castle-1.0.3-mono

Protected Properties

Property Type Description
generator IJSGenerator

Public Methods

Method Description
ToString ( ) : string

Delegates to the generator

Protected Methods

Method Description
CreateJSCollectionGenerator ( IJSCollectionGenerator collectionGenerator ) : object

Creates a JS collection generator.

CreateJSElementGenerator ( IJSElementGenerator elementGenerator ) : object

Creates a JS element generator.

CreateNullGenerator ( ) : object

Creates a null generator.

InternalInvoke ( string method ) : object

Executes an operation (totally late bound)

JSGeneratorBase ( IJSGenerator generator ) : System

Initializes a new instance of the JSGeneratorBase class.

Method Details

CreateJSCollectionGenerator() protected abstract method

Creates a JS collection generator.
protected abstract CreateJSCollectionGenerator ( IJSCollectionGenerator collectionGenerator ) : object
collectionGenerator IJSCollectionGenerator The collection generator.
return object

CreateJSElementGenerator() protected abstract method

Creates a JS element generator.
protected abstract CreateJSElementGenerator ( IJSElementGenerator elementGenerator ) : object
elementGenerator IJSElementGenerator The element generator.
return object

CreateNullGenerator() protected abstract method

Creates a null generator.
protected abstract CreateNullGenerator ( ) : object
return object

InternalInvoke() protected method

Executes an operation (totally late bound)
protected InternalInvoke ( string method ) : object
method string The method.
return object

JSGeneratorBase() protected method

Initializes a new instance of the JSGeneratorBase class.
protected JSGeneratorBase ( IJSGenerator generator ) : System
generator IJSGenerator The generator.
return System

ToString() public method

Delegates to the generator
public ToString ( ) : string
return string

Property Details

generator protected property

The generator instance
protected IJSGenerator generator
return IJSGenerator