Class NodeAbstract

java.lang.Object
com.ibm.jvm.j9.dump.indexsupport.NodeAbstract
  • Constructor Details

    • NodeAbstract

      public NodeAbstract()
  • Method Details

    • _longFromString

      public static long _longFromString(String value, long defaultValue)
      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
      defaultValue - 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

      public static long _longFromString(String value)
      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

      public static long _longByResolvingRawKey(String rawText, String key)
      Looks up the given key in rawText and finds the long that corresponds to it. ie: "... key=number..." Returns 0 if the key is not found.
      Parameters:
      rawText -
      key -
      Returns:
    • 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 interface IParserNode
      Parameters:
      uri -
      localName -
      qName -
      attributes -
      Returns:
    • stringWasParsed

      public void stringWasParsed(String string)
      Description copied from interface: IParserNode
      Called when a literal string is parsed in the XML stream.
      Specified by:
      stringWasParsed in interface IParserNode
      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 interface IParserNode