Class MonitorObjectLineRule
java.lang.Object
com.ibm.dtfj.javacore.parser.framework.tag.LineRule
com.ibm.dtfj.javacore.parser.j9.section.monitor.MonitorObjectLineRule
- All Implemented Interfaces:
ILineRule, IMonitorTypes
-
Field Summary
Fields declared in class LineRule
fCharSubSet, fLineNumber, fOffset, fSourceModifier and TypeFieldDescriptionprotected final StringBufferprotected intprotected intprotected final StringBufferFields declared in interface IMonitorTypes
FLATLOCKED, INFLATED_MONITOR, MONITOR_ADDRESS, MONITOR_ENTRY_COUNT, MONITOR_NAME, MONITOR_OBJECT_ADDRESS, MONITOR_OBJECT_FULL_JAVA_NAME, MONITOR_SECTION, MONITOR_THREAD_ID, MONITOR_THREAD_NAME, MONITOR_WORD_ADDRESS_IN_HEADER, SYSTEM_MONITOR, T_1LKMONPOOLDUMP, T_1LKPOOLINFO, T_1LKREGMONDUMP, T_2LKMONINUSE, T_2LKPOOLTOTAL, T_2LKREGMON, T_3LKMONOBJECT, T_3LKNOTIFYQ, T_3LKWAITER, T_3LKWAITERQ, T_3LKWAITNOTIFY, TOTAL_MONITORS, UNOWNEDModifier 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 String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected IParserTokenaddHexToken(String token) protected voidprotected voidprotected voidprotected voidprotected voidMethods declared in class LineRule
addAllCharactersAsTokenAndConsumeFirstMatch, addAllCharactersAsTokenUntilFirstMatch, addAllCharactersAsTokenUntilIndex, addNonPrefixedHexToken, addPrefixedHexToken, addToken, addToken, addToken, consumeCharacters, consumeUntilFirstMatch, findFirst, getLineNumber, indexOfLast, matchAndConsumeValue, parseLine, processLineModifier 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.protected abstract voidprocessLine(String source, int startingOffset) Must be implemented by the subtype.
-
Constructor Details
-
MonitorObjectLineRule
public MonitorObjectLineRule()
-
-
Method Details
-
addMonitorObjectOwnedAttributes
protected void addMonitorObjectOwnedAttributes() -
addVMThreadInformation
protected void addVMThreadInformation() -
addMonitorLockNameAndAddress
protected void addMonitorLockNameAndAddress() -
addHexToken
-
addMonitorObjectNameAndAddress
protected void addMonitorObjectNameAndAddress() -
addSystemAndInflatedThdInfo
protected void addSystemAndInflatedThdInfo()
-