Class NodeAbstract
java.lang.Object
com.ibm.jvm.j9.dump.indexsupport.NodeAbstract
- All Implemented Interfaces:
IParserNode
- Direct Known Subclasses:
NodeArrayClass
,NodeBuffers
,NodeByteCode
,NodeClassInClassLoader
,NodeClassInConstantPool
,NodeClassInVM
,NodeClassLoader
,NodeConstantPool
,NodeError
,NodeField
,NodeFrame
,NodeGPF
,NodeHeader
,NodeHeap
,NodeInterface
,NodeIP
,NodeJ9Dump
,NodeJavaVM
,NodeJavaVMInitArgs
,NodeJavaVMOption
,NodeJIT
,NodeLibrary
,NodeMethod
,NodeMonitor
,NodeNet
,NodeObject
,NodeObjects
,NodeProperty
,NodeRegion
,NodeRoot
,NodeStack
,NodeStatic
,NodeSystemProperties
,NodeTrace
,NodeUnexpectedTag
,NodeVMThread
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic long
_longByResolvingRawKey
(String rawText, String key) Looks up the given key in rawText and finds the long that corresponds to it.static long
_longFromString
(String value) Helper method for parsing strings into numbers.static long
_longFromString
(String value, long defaultValue) Helper method for parsing strings into numbers.void
Called when this tag is done being parsed (the start tag and all children have been fully parsed) and it is going to be discarded by the parser.nodeToPushAfterStarting
(String uri, String localName, String qName, Attributes attributes) Called when a start tag is parsed.void
stringWasParsed
(String string) Called when a literal string is parsed in the XML stream.
-
Constructor Details
-
NodeAbstract
public NodeAbstract()
-
-
Method Details
-
_longFromString
Helper method for parsing strings into numbers. Strips the 0x from strings, if they exist. Also handles the case of 16 character numbers which would be greater than MAX_LONG- Parameters:
value
- The string representing the numberdefaultValue
- The value which will be returned if value is null- Returns:
- defaultValue if the value is null or the long value of the given string
-
_longFromString
Helper method for parsing strings into numbers. Strips the 0x from strings, if they exist. Also handles the case of 16 character numbers which would be greater than MAX_LONG- Parameters:
value
- The string representing the number- Returns:
- 0 if the value is null or the long value of the given string
-
_longByResolvingRawKey
-
nodeToPushAfterStarting
public IParserNode nodeToPushAfterStarting(String uri, String localName, String qName, Attributes attributes) Description copied from interface:IParserNode
Called when a start tag is parsed. Returns the node to handle this new scope which may be the same instance as the receiver if this same node wants to take responsibility.- Specified by:
nodeToPushAfterStarting
in interfaceIParserNode
- Parameters:
uri
-localName
-qName
-attributes
-- Returns:
-
stringWasParsed
Description copied from interface:IParserNode
Called when a literal string is parsed in the XML stream.- Specified by:
stringWasParsed
in interfaceIParserNode
- Parameters:
string
-
-
didFinishParsing
public void didFinishParsing()Description copied from interface:IParserNode
Called when this tag is done being parsed (the start tag and all children have been fully parsed) and it is going to be discarded by the parser.- Specified by:
didFinishParsing
in interfaceIParserNode
-