Arena
1.0
A content management system
|
A statement parsed from code. More...
Public Member Functions | |
def | __init__ |
Construct a statement instance. More... | |
def | init |
Initializer. | |
def | parse |
Parse the statement. More... | |
def | ParsedFrom |
Construct and parse a statement from the specified parser. More... | |
def | toString |
Construct a string representation of the statement. More... | |
def | value |
Retrieve the value of the statement. More... | |
def | Log |
Retrieve the log used by the statement. More... | |
def | Source |
Retrieve the scanner used by the statement. More... | |
def | Parser |
Retrieve the parser used by the statement. More... | |
def | Output |
Retrieve the output used by the statement. | |
def | OutputTo |
Set the output used by the statement. | |
Public Member Functions inherited from Library.Base.Events.ALoggingEventfulObject | |
def | __init__ |
Constructor. More... | |
def | init |
Initializer. | |
def | error |
Generate an error event. More... | |
def | log |
Log the specified item. More... | |
def | Log |
Retrieve the log used by the class. | |
Public Member Functions inherited from Library.Base.Events.AnEventfulObject | |
def | __init__ |
Constructor. More... | |
def | init |
Initializer. | |
def | __del__ |
Destructor. | |
def | parseParams |
Parse the specified parameters, looking for named events and setting event handlers as appropriate. More... | |
def | generate |
Generate the named event. | |
def | update |
Update the events generated by the object. | |
def | error |
Generate an error event. More... | |
def | toString |
Construct a string representation of the object. More... | |
def | on |
Set the handler for the specified event. More... | |
def | onMultiple |
Set handlers for multiple events. More... | |
def | handlerFor |
Retrieve the handler for the specified event. More... | |
def | generates |
Determine whether or not the object generates the named event. More... | |
def | __getitem__ |
Retrieve the value of the named property. | |
def | __setitem__ |
Set the value of the named property. | |
Public Member Functions inherited from Library.Base.Classwork.AnObject | |
def | init |
Initialize a new object instance. More... | |
def | __init__ |
Construct and initialize a new instance of AnObject. More... | |
def | __del__ |
Destroy the object instance. More... | |
def | displayName |
Construct a "pretty" display name for the class instance, based on the name of its class. More... | |
def | implements |
Determine whether the class instance is related to the specified class. More... | |
def | toString |
Return a string representation of the class, suitable for output to a console or text-based device. More... | |
def | __str__ |
Return a string representation of the class. More... | |
def | classname |
Return the name of the class from which the instance was created. More... | |
def | name |
Return the name of the class. More... | |
Public Member Functions inherited from Library.String.Utilities.IsPrintable | |
def | toString |
Return a string representation of the class conveniently. More... | |
def | __str__ |
Return a string representation of the class. More... | |
def | printTo |
Print a string representation of the class to the specified stream. More... | |
A statement parsed from code.
This class is not meant to be instantiated directly; rather, it sets up an environment for its descendant classes that makes it easy to focus on parsing the statement.
def Library.Parse.Semantic.Statements.AStatement.__init__ | ( | Self, | |
params | |||
) |
Construct a statement instance.
In addition to the parameters expected by ALoggingEventfulObject.__init__(), this routine expects that params
will contain the following items:
Parser
– The parser instance for which the statement will be parsed def Library.Parse.Semantic.Statements.AStatement.Log | ( | Self | ) |
Retrieve the log used by the statement.
def Library.Parse.Semantic.Statements.AStatement.parse | ( | Self | ) |
Parse the statement.
This method should be implemented by descendant classes. It does nothing in the base implementation of AStatement.
def Library.Parse.Semantic.Statements.AStatement.ParsedFrom | ( | Self, | |
ThisParser | |||
) |
Construct and parse a statement from the specified parser.
def Library.Parse.Semantic.Statements.AStatement.Parser | ( | Self | ) |
Retrieve the parser used by the statement.
def Library.Parse.Semantic.Statements.AStatement.Source | ( | Self | ) |
Retrieve the scanner used by the statement.
def Library.Parse.Semantic.Statements.AStatement.toString | ( | Self | ) |
Construct a string representation of the statement.
In the base implementation of this method, the representation is simply the value of the statement. Descendant classes may override this method to produce different output.
def Library.Parse.Semantic.Statements.AStatement.value | ( | Self | ) |
Retrieve the value of the statement.