Class NativeStackTraceLineRule
java.lang.Object
com.ibm.dtfj.javacore.parser.framework.tag.LineRule
com.ibm.dtfj.javacore.parser.j9.section.thread.NativeStackTraceLineRule
- All Implemented Interfaces:
ILineRule, IThreadTypes
-
Field Summary
Fields declared in class LineRule
fCharSubSet, fLineNumber, fOffset, fSourceModifier and TypeFieldDescriptionprotected final StringBufferprotected intprotected intprotected final StringBufferFields declared in interface IThreadTypes
ABSTRACT_THREAD_ID, BLOCKER_OBJECT_ADDRESS, BLOCKER_OBJECT_FULL_JAVA_NAME, CLASS_FILE_NAME, COMPILATION_LEVEL, COMPILED, CONTEXT_CLASSLOADER_OBJECT_ADDRESS, CONTEXT_CLASSLOADER_OBJECT_FULL_JAVA_NAME, CPU_TIME_SYSTEM, CPU_TIME_TOTAL, CPU_TIME_USER, FULL_NAME, JAVA_STATE, JAVA_THREAD_NAME, JAVA_THREAD_OBJ, METHOD_NAME, NATIVE_STACK_FROM, NATIVE_STACK_SIZE, NATIVE_STACK_TO, NATIVE_THREAD_ID, NATIVE_THREAD_POLICY, NATIVE_THREAD_PRIORITY, NON_COMPILED, SCOPE, STACK_FILE, STACK_LINE, STACK_MODULE, STACK_MODULE_OFFSET, STACK_PROC_ADDRESS, STACK_ROUTINE, STACK_ROUTINE_ADDRESS, STACK_ROUTINE_OFFSET, STACK_THREAD, STACKTRACE_JAVA_METHOD, STACKTRACE_LINE_NUMBER, STACKTRACE_METHOD_TYPE, STACKTRACE_NATIVE_METHOD, T_1XMCURTHDINFO, T_1XMTHDINFO, T_2XMFULLTHDDUMP, T_3XMCPUTIME, T_3XMHEAPALLOC, T_3XMJAVALTHRCCL, T_3XMJAVALTHREAD, T_3XMTHREADBLOCK, T_3XMTHREADINFO, T_3XMTHREADINFO1, T_3XMTHREADINFO2, T_3XMTHREADINFO3, T_4XENATIVESTACK, T_4XESTACKTRACE, THREAD_SECTION, UNKNOWN_COMPILATION_LEVEL, UNPARSED_ENV_INFORMATION, VM_FLAGS, VM_STATE, VM_THREAD_ID, VM_THREAD_PRIORITYModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprocessLine(String source, int startingOffset) Must be implemented by the subtype.Methods declared in class LineRule
addAllCharactersAsTokenAndConsumeFirstMatch, addAllCharactersAsTokenUntilFirstMatch, addAllCharactersAsTokenUntilIndex, addNonPrefixedHexToken, addPrefixedHexToken, addToken, addToken, addToken, consumeCharacters, consumeUntilFirstMatch, findFirst, getLineNumber, indexOfLast, matchAndConsumeValue, parseLineModifier and TypeMethodDescriptionprotected IParserTokenaddAllCharactersAsTokenAndConsumeFirstMatch(String type, Matcher matcher) Grabs all characters up to the first match specified by the matcher, and adds the latter as a token of a argument-specified type to the internal token list.protected IParserTokenaddAllCharactersAsTokenUntilFirstMatch(String type, Matcher matcher) Grabs all characters up to but excluding the first match specified by the matcher, and adds the latter as a token of an argument-specified type.protected IParserTokenaddAllCharactersAsTokenUntilIndex(String type, int endIndex, boolean stripTrailingWhitespace) Copies all characters from start to endIndex - 1.protected IParserTokenaddNonPrefixedHexToken(String type) Matches the first hexadecimal match encountered that is not prefixed by "0x" as a token.protected IParserTokenaddPrefixedHexToken(String type) Matches the first prefixed hexadecimal pattern encountered, and adds it as a token.protected voidaddToken(IParserToken token) Adds a non-null token to the token map.protected IParserTokenAdds a token of the type specified to the internal token list and assigns it the value specified by the argument.protected IParserTokenAdds a token of the type specified via argument to the internal token map, and assigns it the value matched by the pattern matcher.protected StringconsumeCharacters(int startIndex, int endIndex) Consumes a section of characters from the buffer.protected booleanconsumeUntilFirstMatch(Matcher matcher) Matches the first occurrence of the pattern and consumes all characters from the start of the buffer until the first occurrence of the pattern.protected booleanFinds the first match.protected intprotected intindexOfLast(Matcher matcher) Returns the starting index of the last matched pattern, but doesn't consume anything or generate tokens.protected StringmatchAndConsumeValue(Matcher matcher) Finds the first occurrence of the pattern in the source.Initializes buffer, token list, and other fields prior to parsing and tokenising a line.
-
Constructor Details
-
NativeStackTraceLineRule
public NativeStackTraceLineRule()
-
-
Method Details
-
processLine
Description copied from class:LineRuleMust be implemented by the subtype. It gets called internally by the parser framework, so the user need not worry about calling this explicitly.- Specified by:
processLinein classLineRule- Parameters:
source- to be parsed.startingOffset-
-