Packages

  • package root
    Definition Classes
    root
  • package scala
    Definition Classes
    root
  • package xml

    This library provides support for the XML literal syntax in Scala programs.

    This library provides support for the XML literal syntax in Scala programs.

    val planets: scala.xml.Elem = <planets>
      <planet id="earth">
        <title>Earth</title>
        <mass unit="kg">5.9742e24</mass>
        <radius unit="m">6378.14e3</radius>
      </planet>
      <planet id="mars">
        <title>Mars</title>
        <mass unit="kg">0.64191e24</mass>
        <radius unit="m">3397.0e3</radius>
      </planet>
    </planets>

    Additionally, you can mix Scala expressions in your XML elements by using the curly brace notation:

    val sunMass = 1.99e30
    val sunRadius = 6.96e8
    val star = <star>
      <title>Sun</title>
      <mass unit="kg">{ sunMass }</mass>
      <radius unit="m">{ sunRadius }</radius>
      <surface unit="m²">{ 4 * Math.PI * Math.pow(sunRadius, 2) }</surface>
      <volume unit="m³">{ 4/3 * Math.PI * Math.pow(sunRadius, 3) }</volume>
    </star>

    An XML element, for example <star/> and <planet/>, is represented in this library as a case class, scala.xml.Elem.

    The sub-elements of XML values share a common base class, scala.xml.Node.

    However, the non-element declarations found in XML files share a different common base class, scala.xml.dtd.Decl. Additionally, document type declarations are represented by a different trait, scala.xml.dtd.DTD.

    For reading and writing XML data to and from files, see scala.xml.XML. The default parser of XML data is the Xerces parser and is provided in Java by javax.xml.parsers.SAXParser.

    A less greedy XML reader can return data as a sequential collection of events, see scala.xml.pull.XMLEventReader.

    For more control of the input, use the parser written in Scala that is provided, scala.xml.parsing.ConstructingParser.

    For working with XHTML input, use scala.xml.parsing.XhtmlParser.

    For more control of the output, use the scala.xml.PrettyPrinter.

    Utility methods for working with XML data are provided in scala.xml.Utility.

    XML values in Scala are immutable, but you can traverse and transform XML data with a scala.xml.transform.RuleTransformer.

    Definition Classes
    scala
  • package dtd
    Definition Classes
    xml
  • object ContentModel extends WordExp
    Definition Classes
    dtd
  • Alt
  • Alt
  • ElemName
  • Eps
  • Label
  • Letter
  • Meta
  • RegExp
  • Sequ
  • Sequ
  • Star
  • Translator
  • Wildcard

object Translator extends WordBerrySethi with Translator

Linear Supertypes
Translator, WordBerrySethi, BaseBerrySethi, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Translator
  2. Translator
  3. WordBerrySethi
  4. BaseBerrySethi
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def automatonFrom(pat: ContentModel.RegExp, finalTag: Int): NondetWordAutom[_labelT]
    Definition Classes
    WordBerrySethi
  6. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  7. def collectTransitions(): Unit
    Attributes
    protected
    Definition Classes
    WordBerrySethi
  8. def compFirst(r: ContentModel.RegExp): Set[Int]

    Computes first(r) where the word regexp r.

    Computes first(r) where the word regexp r.

    r

    the regular expression

    returns

    the computed set first(r)

    Attributes
    protected
    Definition Classes
    WordBerrySethi → BaseBerrySethi
  9. def compFollow(rs: collection.Seq[ContentModel.RegExp]): Set[Int]

    Starts from the right-to-left precondition: pos is final pats are successor patterns of a Sequence node

    Starts from the right-to-left precondition: pos is final pats are successor patterns of a Sequence node

    Attributes
    protected
    Definition Classes
    BaseBerrySethi
  10. def compFollow1(fol1: Set[Int], r: ContentModel.RegExp): Set[Int]

    Returns the first set of an expression, setting the follow set along the way.

    Returns the first set of an expression, setting the follow set along the way.

    r

    the regular expression

    returns

    the computed set

    Attributes
    protected
    Definition Classes
    WordBerrySethi → BaseBerrySethi
  11. def compLast(r: ContentModel.RegExp): Set[Int]

    Computes last(r) where the word regexp r.

    Computes last(r) where the word regexp r.

    r

    the regular expression

    returns

    the computed set last(r)

    Attributes
    protected
    Definition Classes
    WordBerrySethi → BaseBerrySethi
  12. var defaultq: Array[List[Int]]
    Attributes
    protected
    Definition Classes
    WordBerrySethi
  13. var deltaq: Array[HashMap[_labelT, List[Int]]]
    Attributes
    protected
    Definition Classes
    WordBerrySethi
  14. final val emptySet: Set[Int]
    Definition Classes
    BaseBerrySethi
  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  17. var finalTag: Int
    Attributes
    protected
    Definition Classes
    BaseBerrySethi
  18. var finals: Map[Int, Int]
    Attributes
    protected
    Definition Classes
    BaseBerrySethi
  19. var follow: HashMap[Int, Set[Int]]
    Attributes
    protected
    Definition Classes
    BaseBerrySethi
  20. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  22. def initialize(subexpr: collection.Seq[ContentModel.RegExp]): Unit
    Attributes
    protected
    Definition Classes
    WordBerrySethi
  23. def initializeAutom(): Unit
    Attributes
    protected
    Definition Classes
    WordBerrySethi
  24. var initials: Set[Int]
    Attributes
    protected
    Definition Classes
    WordBerrySethi
  25. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  26. var labelAt: Map[Int, _labelT]
    Attributes
    protected
    Definition Classes
    WordBerrySethi
  27. var labels: HashSet[_labelT]
    Attributes
    protected
    Definition Classes
    WordBerrySethi
  28. val lang: ContentModel.this.type
    Definition Classes
    Translator → WordBerrySethi → BaseBerrySethi
  29. def makeTransition(src: Int, dest: Int, label: _labelT): Unit
    Attributes
    protected
    Definition Classes
    WordBerrySethi
  30. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  31. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  32. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  33. var pos: Int
    Attributes
    protected
    Definition Classes
    BaseBerrySethi
  34. def seenLabel(r: ContentModel.RegExp, label: _labelT): Int
    Attributes
    protected
    Definition Classes
    WordBerrySethi
  35. def seenLabel(r: ContentModel.RegExp, i: Int, label: _labelT): Unit

    Called at the leaves of the regexp

    Called at the leaves of the regexp

    Attributes
    protected
    Definition Classes
    WordBerrySethi
  36. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  37. def toString(): String
    Definition Classes
    AnyRef → Any
  38. def traverse(r: ContentModel.RegExp): Unit

    Returns the "Sethi-length" of a pattern, creating the set of position along the way.

    Returns the "Sethi-length" of a pattern, creating the set of position along the way.

    Definition Classes
    WordBerrySethi → BaseBerrySethi
  39. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  40. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  41. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated @deprecated
    Deprecated

    (Since version ) see corresponding Javadoc for more information.

Inherited from Translator

Inherited from WordBerrySethi

Inherited from BaseBerrySethi

Inherited from AnyRef

Inherited from Any

Ungrouped