Class ThreadSovSectionParserPart
java.lang.Object
com.ibm.dtfj.javacore.parser.j9.SectionParserGrammar
com.ibm.dtfj.javacore.parser.j9.SovereignSectionParserPart
com.ibm.dtfj.javacore.parser.j9.section.thread.ThreadSovSectionParserPart
- All Implemented Interfaces:
ISectionParser, IThreadTypes, IThreadTypesSov
public class ThreadSovSectionParserPart
extends SovereignSectionParserPart
implements IThreadTypes, IThreadTypesSov
-
Field Summary
Fields declared in class SectionParserGrammar
anyMatched, DEFAULT_DEPTH, fLookAheadBuffer, FORCE_THROW, fSectionName, fTagManager, fTagParserModifier and TypeFieldDescriptionprotected booleanprotected static final intprotected ILookAheadBufferprotected static final intprotected Stringprotected J9TagManagerprotected ITagParserFields 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 StringFields declared in interface IThreadTypesSov
NATIVE_STACK, NATIVE_STACK_AIX, REGISTER_LIST, REGISTER_LIST_VALUES, STACK_LINE, STACK_LINE_ADDRESS, STACK_LINE_AIX, STACK_LINE_ERR_AIX, STACK_LINE_LOCATION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcomputeSovRule(String hookTag, ILookAheadBuffer lookAheadBuffer) readIntoDTFJ(ILookAheadBuffer lookAhead) voidreadIntoDTFJ(ILookAheadBuffer lookAhead, IImageBuilder imageBuilder) Pass in a lookahead buffer that is shared amongst all section parsers, pass in the DTFJ factory to construct the DTFJ objects as tags are being parsed.Methods declared in class SectionParserGrammar
anyMatched, consume, getCurrentFileLineNumber, getErrors, getLineRuleResults, getLookAheadBuffer, getSectionName, handleError, handleError, handleError, handleError, handleError, handleErrorAtLineNumber, handleRequiredMismatch, handleUnknownMismatch, isValidJavaCoreTag, isValidSectionTag, lookAhead, match, matchOptional, matchRequired, processTagLineOptional, processTagLineRequired, setLookAheadBuffer, setLookAheadBuffer, setTagManagerModifier and TypeMethodDescriptionbooleanprotected voidconsume()intReturns the current line number being parsed, or -1 if no parsing is occurring (parsing is finished, etc..).protected IAttributeValueMapgetLineRuleResults(IParserToken token) protected ILookAheadBufferprotected voidprotected voidhandleError(Exception e, int behaviour) protected voidhandleError(String message) protected voidhandleError(String message, int offset, int length) protected voidhandleError(String message, Exception e) protected voidhandleErrorAtLineNumber(int fileLineNumber, String message, Exception e) protected voidhandleRequiredMismatch(String expectedType, String actualType, String actualValue) protected voidhandleUnknownMismatch(String actualType, String actualValue) protected booleanisValidJavaCoreTag(IParserToken token) protected booleanisValidSectionTag(String tag) protected IParserTokenlookAhead(int depth) protected booleanThe match performs one additional function:
if the mismatch is due to an unrecognised javacore tag, that erroneous tag can be interpreted as garbage for now, so the latter is consumed without further processing.protected booleanmatchOptional(String type) Match a type, but do not generate an error if mismatch occurs.protected booleanmatchRequired(String type) Match a type, and generate an error if a mismatch occurs.protected IAttributeValueMapprocessTagLineOptional(String tagName) protected IAttributeValueMapprocessTagLineRequired(String tagName) protected voidsetLookAheadBuffer(ILookAheadBuffer lookAheadBuffer) protected voidsetLookAheadBuffer(ILookAheadBuffer lookAheadBuffer, int depth) protected voidsetTagManager(J9TagManager tagManager)
-
Constructor Details
-
ThreadSovSectionParserPart
public ThreadSovSectionParserPart()
-
-
Method Details
-
readIntoDTFJ
- Throws:
ParserException
-
computeSovRule
- Throws:
ParserException
-
readIntoDTFJ
public void readIntoDTFJ(ILookAheadBuffer lookAhead, IImageBuilder imageBuilder) throws ParserException Description copied from interface:ISectionParserPass in a lookahead buffer that is shared amongst all section parsers, pass in the DTFJ factory to construct the DTFJ objects as tags are being parsed.- Specified by:
readIntoDTFJin interfaceISectionParser- Parameters:
lookAhead-imageBuilder-- Throws:
ParserException
-