Packages

t

scales.xml.parser.strategies

PathOptimisationStrategy

trait PathOptimisationStrategy[Token <: OptimisationToken] extends MemoryOptimisationStrategy[Token]

Certain paths may be repeated (based on QNames of parents etc) and known to be by the developer, its also possible that the developer simply is not interested in this path.

Developers may also customise the creation of paths, for example adding starting children, replacing the XmlChildren implementation or replacing entire subtrees.

Linear Supertypes
MemoryOptimisationStrategy[Token], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PathOptimisationStrategy
  2. MemoryOptimisationStrategy
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def createToken(implicit ver: XmlVersion, fromParser: FromParser): Token
    Definition Classes
    MemoryOptimisationStrategy

Concrete 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 attribute(qname: xml.AttributeQName, value: String, token: Token): Attribute

    It is expected that certain attributes have fixed values, ie.

    It is expected that certain attributes have fixed values, ie. booleans or based on schema enums etc, this function allows such optimisations.

    The qname will have been obtained via a call to either noNamespaceQName, unprefixedQName or prefixedQName, so any optimisations provided by them can be leveraged.

    Definition Classes
    MemoryOptimisationStrategy
  6. def beginSubTree(stack: TreeProxies, elem: Elem, token: Token): Unit

    Start a new "tree", pushing the elem to TreeProxies

  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  8. def elem(name: QName, attributes: xml.Attributes, namespaces: Map[String, String], token: Token): Elem

    For files without large (and varied) attribute counts per repeated element it may represent significant space savings to optimise against the entire Elem itself.

    For files without large (and varied) attribute counts per repeated element it may represent significant space savings to optimise against the entire Elem itself.

    The Elements QName is garaunteed to be the last QName evaluated via the QName functions (i.e. Attributes are done first then the Elems QName)

    Definition Classes
    MemoryOptimisationStrategy
  9. def elementEnd(xml: TreeProxies, token: Token): Unit

    By default calls TreeProxies.elementEnd.

    By default calls TreeProxies.elementEnd. Replacing entire subtrees can be performed here.

  10. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  15. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. def noNamespaceQName(local: String, token: Token): NoNamespaceQName
    Definition Classes
    MemoryOptimisationStrategy
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  20. def prefixedQName(local: String, uri: String, prefix: String, token: Token): PrefixedQName
    Definition Classes
    MemoryOptimisationStrategy
  21. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  22. def toString(): String
    Definition Classes
    AnyRef → Any
  23. def unprefixedQName(local: String, uri: String, token: Token): UnprefixedQName
    Definition Classes
    MemoryOptimisationStrategy
  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from MemoryOptimisationStrategy[Token]

Inherited from AnyRef

Inherited from Any

Ungrouped