View Source Renewex.Hierarchy (renewex v0.9.0)
The grammar for parsing a Renew *.rnw
file is defined by the
object oriented class hierarchy of java classes in the original Java Renew implementation.
In order to parse all Renew *.rnw
files correctly, this hierarchical model has to be reproduced
as desribed in the Renewex.Grammar module.
This module provides utility functions to query the hierarchy of a given Renewex.Grammar
. For example you can query if Java
class of a given name is defined inside the hierarchy or if some class a sub class of another class.
Summary
Functions
Get a list of all classes defined in the grammars hierarchy.
Get the name of the super class of the given class inside the given hierarchy.
The the list of all classes that are defined to implement a given interface inside the hierarchy of the grammar.
Get the list of all interfaces that a given class is defined to implement by the hierarchy of the given grammar.
Check if a class of a given name is defined inside the hierarchy of the given grammar.
Check if subtype
is an implementation of given interface_or_class
or if subtype is identical to the given interface_or_class
.
Check if one class is a subtype of another class or interface.
Get a list of all classes in the grammars hierarchy that have no super class.
Get a list of all supetypes of one or many given supertypes defined in the grammar hierarchy.
Functions
Get a list of all classes defined in the grammars hierarchy.
Get the name of the super class of the given class inside the given hierarchy.
The the list of all classes that are defined to implement a given interface inside the hierarchy of the grammar.
Get the list of all interfaces that a given class is defined to implement by the hierarchy of the given grammar.
Check if a class of a given name is defined inside the hierarchy of the given grammar.
Check if subtype
is an implementation of given interface_or_class
or if subtype is identical to the given interface_or_class
.
Check if one class is a subtype of another class or interface.
Get a list of all classes in the grammars hierarchy that have no super class.
Get a list of all supetypes of one or many given supertypes defined in the grammar hierarchy.