class CIMContext extends AnyRef
Context for parsing. Contains the raw XML, indexes at which to start and stop parsing, the line number index of newlines within the XML, text coverage set (in debug) and error messages raised while parsing.
- Alphabetic
- By Inheritance
- CIMContext
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
CIMContext(xml: String, start: Long, end: Long, first_byte: Long)
- xml
The current xml string being parsed.
- start
The starting character position of the xml string - non-zero if not the first Split.
- end
The ending character position at which to stop parsing.
- first_byte
The byte offset of the first character to be parsed.
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
val
coverage: ArrayBuffer[(Int, Int)]
An array of string start and end offsets that have been parsed.
-
def
covered(): Boolean
Check that all characters were consumed by parsing.
Check that all characters were consumed by parsing. Used to find attributes and references that are not understood by the model.
- returns
true
if all non-whitespace characters were parsed.
- var end: Long
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
errors: ArrayBuffer[String]
An array of up to MAXERRORS error messages.
- var first_byte: Long
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
def
index_string(string: String, offset: Long = 0L, n: ArrayBuffer[Long] = ArrayBuffer[Long] ()): ArrayBuffer[Long]
Create an index of newline characters in a string.
Create an index of newline characters in a string. The index of newlines for the string "Now is the time\nfor all good men\nto come to the aid of the party\n" is [15, 32, 64]
- string
the string to index
- offset
optional offset to add to the index values
- returns
{Unit} nothing
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
var
last_byte: Long
The byte offset of the last successfully parsed full element.
-
def
line_number(offset: Long = end): Int
Get the line number for the given offset value.
Get the line number for the given offset value. Uses a binary search through the newline array to determine where the given offset lies in the source stream.
- offset
the character position in the stream
- returns
the line number (1 + how many newlines precede the offset)
- Annotations
- @SuppressWarnings()
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
val
newlines: ArrayBuffer[Long]
The array of character positions of newlines in the xml string.
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val start: Long
-
var
subxml: String
The internal XML for an element being parsed.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
Output a debugging string of this context.
Output a debugging string of this context.
- Definition Classes
- CIMContext → AnyRef → Any
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- var xml: String
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.