View Source Renewex.Hierarchy (renewex v0.6.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 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.

Link to this function

get_super(grammar, name)

View Source

Get the name of the super class of the given class inside the given hierarchy.

Link to this function

implementors_of(grammar, interface)

View Source

The the list of all classes that are defined to implement a given interface inside the hierarchy of the grammar.

Link to this function

interfaces_of(grammar, name)

View Source

Get the list of all interfaces that a given class is defined to implement by the hierarchy of the given grammar.

Link to this function

is_defined(grammar, name)

View Source

Check if a class of a given name is defined inside the hierarchy of the given grammar.

Link to this function

is_implementation_of(grammar, subtype, interface)

View Source
Link to this function

is_subtype_of(grammar, subtype, supertype)

View Source

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.

Link to this function

subtypes_of(grammar, supertypes)

View Source

Get a list of all supetypes of one or many given supertypes defined in the grammar hierarchy.