Search in sources :

Example 1 with ILineRule

use of com.ibm.dtfj.javacore.parser.framework.tag.ILineRule in project openj9 by eclipse.

the class ClassLoaderTagParser method addNumberLoadedClasses.

/**
 */
private void addNumberLoadedClasses() {
    ILineRule lineRule = new LineRule() {

        public void processLine(String source, int startingOffset) {
            addToken(CL_ATT_NMBR_LOADED_CL, CommonPatternMatchers.dec);
        }
    };
    addTag(T_3CLNMBRLOADEDCL, lineRule);
}
Also used : LineRule(com.ibm.dtfj.javacore.parser.framework.tag.LineRule) ILineRule(com.ibm.dtfj.javacore.parser.framework.tag.ILineRule) ILineRule(com.ibm.dtfj.javacore.parser.framework.tag.ILineRule)

Example 2 with ILineRule

use of com.ibm.dtfj.javacore.parser.framework.tag.ILineRule in project openj9 by eclipse.

the class ClassLoaderTagParser method addTextCLLib2.

/**
 */
private void addTextCLLib2() {
    ILineRule lineRule = new ClassLoaderLineRule() {

        public void processLine(String source, int startingOffset) {
            matchLoaderAndAddAttNameAndAddress(ClassLoaderPatternMatchers.system, CommonPatternMatchers.java_absolute_name, CL_ATT__NAME);
            addPrefixedHexToken(CL_ATT_ADDRESS);
        }
    };
    addTag(T_2CLTEXTCLLIB, lineRule);
}
Also used : ILineRule(com.ibm.dtfj.javacore.parser.framework.tag.ILineRule)

Example 3 with ILineRule

use of com.ibm.dtfj.javacore.parser.framework.tag.ILineRule in project openj9 by eclipse.

the class ClassLoaderTagParser method addTextLib.

/**
 */
private void addTextLib() {
    ILineRule lineRule = new ClassLoaderLineRule() {

        public void processLine(String source, int startingOffset) {
            consumeUntilFirstMatch(CommonPatternMatchers.whitespace);
            addToken(CL_ATT_LIB_NAME, CommonPatternMatchers.allButLineFeed);
        }
    };
    addTag(T_3CLTEXTLIB, lineRule);
}
Also used : ILineRule(com.ibm.dtfj.javacore.parser.framework.tag.ILineRule)

Example 4 with ILineRule

use of com.ibm.dtfj.javacore.parser.framework.tag.ILineRule in project openj9 by eclipse.

the class ClassLoaderTagParser method addNumberLoadedLib.

/**
 */
private void addNumberLoadedLib() {
    ILineRule lineRule = new LineRule() {

        public void processLine(String source, int startingOffset) {
            addToken(CL_ATT_NMBR__LIB, CommonPatternMatchers.dec);
        }
    };
    addTag(T_3CLNMBRLOADEDLIB, lineRule);
}
Also used : LineRule(com.ibm.dtfj.javacore.parser.framework.tag.LineRule) ILineRule(com.ibm.dtfj.javacore.parser.framework.tag.ILineRule) ILineRule(com.ibm.dtfj.javacore.parser.framework.tag.ILineRule)

Example 5 with ILineRule

use of com.ibm.dtfj.javacore.parser.framework.tag.ILineRule in project openj9 by eclipse.

the class MemoryTagParser method addSectionDetails.

protected void addSectionDetails() {
    ILineRule lineRule = new LineRule() {

        public void processLine(String source, int startingOffset) {
            if (addPrefixedHexToken(MEMORY_SEGMENT_ID) == null) {
                addNonPrefixedHexToken(MEMORY_SEGMENT_ID);
                addNonPrefixedHexToken(MEMORY_SEGMENT_HEAD);
                addNonPrefixedHexToken(MEMORY_SEGMENT_FREE);
                addNonPrefixedHexToken(MEMORY_SEGMENT_TAIL);
                addNonPrefixedHexToken(MEMORY_SEGMENT_TYPE);
                addNonPrefixedHexToken(MEMORY_SEGMENT_SIZE);
            } else {
                addPrefixedHexToken(MEMORY_SEGMENT_HEAD);
                addPrefixedHexToken(MEMORY_SEGMENT_FREE);
                addPrefixedHexToken(MEMORY_SEGMENT_TAIL);
                addPrefixedHexToken(MEMORY_SEGMENT_TYPE);
                addPrefixedHexToken(MEMORY_SEGMENT_SIZE);
            }
            ;
        }
    };
    addTag(T_1STSEGMENT, lineRule);
}
Also used : LineRule(com.ibm.dtfj.javacore.parser.framework.tag.LineRule) ILineRule(com.ibm.dtfj.javacore.parser.framework.tag.ILineRule) ILineRule(com.ibm.dtfj.javacore.parser.framework.tag.ILineRule)

Aggregations

ILineRule (com.ibm.dtfj.javacore.parser.framework.tag.ILineRule)46 LineRule (com.ibm.dtfj.javacore.parser.framework.tag.LineRule)31 PointerSizeLineRule (com.ibm.dtfj.javacore.parser.j9.section.common.PointerSizeLineRule)6 IParserToken (com.ibm.dtfj.javacore.parser.framework.scanner.IParserToken)1 Matcher (java.util.regex.Matcher)1