Module openj9.dtfj

Class TagParser

    • Constructor Detail

      • TagParser

        public TagParser​(String sectionName)
    • Method Detail

      • initTagAttributeRules

        protected abstract void initTagAttributeRules()
        Must be implemented by the caller. Should not be called, just implemented.
        Typically contains a series of addTag(String, ILineRule) calls. Parent class knows where to call this method.

        General guidelines:

        For tags that contain attributes with meaningful values:
        Specify line rules with patterns that are of interest:
        1. patterns that precedes a value (e.g., a ":", "=", etc..);
        2. patterns that match a value;
        If an attribute value in a line rule pertaining to some tag has more than one possible pattern (e.g., "info" = (Class.java:23) or "info" = (Native Method) ), list all of the patterns for that value in its corresponding line rule. If the first doesn't match, nothing happens, so the line rule will check the next pattern until a match occurs.
        Any other pattern occurring in the source string will be ignored.


        For tags with no attributes, or meaningful values:
        Specify null for line rules.
      • addTag

        protected void addTag​(String tag,
                              ILineRule lineRule)
        If a Line rule is missing a pattern list, an exception will be thrown indicating so, and the line rule will not be added.
        Parameters:
        tag -
        rule -