Class SovereignSectionParserPart
java.lang.Object
com.ibm.dtfj.javacore.parser.j9.SectionParserGrammar
com.ibm.dtfj.javacore.parser.j9.SovereignSectionParserPart
- All Implemented Interfaces:
ISectionParser
- Direct Known Subclasses:
MonitorSovSectionParserPart, ThreadSovSectionParserPart
-
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 ITagParser -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidcomputeSovRule(String sovRuleID, ILookAheadBuffer lookAheadBuffer) 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) Methods declared in class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods declared in interface ISectionParser
readIntoDTFJModifier and TypeMethodDescriptionvoidreadIntoDTFJ(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.
-
Constructor Details
-
SovereignSectionParserPart
-
-
Method Details
-
computeSovRule
public abstract void computeSovRule(String sovRuleID, ILookAheadBuffer lookAheadBuffer) throws ParserException - Throws:
ParserException
-