Utility methods related to searching join points and AST properties.

Constructors

Methods

  • Searches constant values. Currently, three types of constants are returned:

    • Class fields which are final and initialized when declared;
    • Assignments to final fields;
    • Local variables which are final and initialized when declared.

    Parameters

    • OptionalstartingPoint: LaraJoinPoint

      The join point where the search for constants will start (inclusive).

    Returns (Field | Assignment | LocalVariable)[]

    An array of join points, which can either be a field, an assignment, or a local variable.

  • Creates an object representing the class hierarchy of the current program.

    Returns Map<string, Class[]>

    A map where the keys are strings with the fully qualified name of the class, and the value is an array with class join points that are subclasses of the class represented by the key. If the map returns undefined, this means that the class has no subclasses.