Trait

at.logic.gapt.formats.xml.XMLParser

XMLProofParser

Related Doc: package XMLParser

Permalink

trait XMLProofParser extends XMLNodeParser

This trait parses XML elements <proof>, <rule> and <prooflink> into the respective objects.

TODO: prooflink parsing is not supported yet!

Linear Supertypes
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. XMLProofParser
  2. XMLNodeParser
  3. AnyRef
  4. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def getInput(): Node

    Permalink
    Definition Classes
    XMLNodeParser

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def +(other: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from XMLProofParser to any2stringadd[XMLProofParser] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (XMLProofParser, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from XMLProofParser to ArrowAssoc[XMLProofParser] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def ensuring(cond: (XMLProofParser) ⇒ Boolean, msg: ⇒ Any): XMLProofParser

    Permalink
    Implicit information
    This member is added by an implicit conversion from XMLProofParser to Ensuring[XMLProofParser] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  9. def ensuring(cond: (XMLProofParser) ⇒ Boolean): XMLProofParser

    Permalink
    Implicit information
    This member is added by an implicit conversion from XMLProofParser to Ensuring[XMLProofParser] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  10. def ensuring(cond: Boolean, msg: ⇒ Any): XMLProofParser

    Permalink
    Implicit information
    This member is added by an implicit conversion from XMLProofParser to Ensuring[XMLProofParser] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  11. def ensuring(cond: Boolean): XMLProofParser

    Permalink
    Implicit information
    This member is added by an implicit conversion from XMLProofParser to Ensuring[XMLProofParser] performed by method Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  14. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  15. def formatted(fmtstr: String): String

    Permalink
    Implicit information
    This member is added by an implicit conversion from XMLProofParser to StringFormat[XMLProofParser] performed by method StringFormat in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  16. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  17. def getNamedProof(n: Node): (String, LKProof)

    Permalink
  18. def getNamedProof(): (String, LKProof)

    Permalink

    If the Node provided by XMLNodeParser is a <proof> element, a pair of (1) the name of the proof and (2) an LKProof object corresponding to the Node is returned.

    If the Node provided by XMLNodeParser is a <proof> element, a pair of (1) the name of the proof and (2) an LKProof object corresponding to the Node is returned.

    returns

    A pair of name and LKProof corresponding to the Node provided by getInput().

    Exceptions thrown

    ParsingException If the Node provided by getInput() is not a <proof>, <rule> or <prooflink> Node.

    See also

    getProof()

  19. def getProof(n: Node): LKProof

    Permalink

    If n is a <proof>, <rule> or <prooflink> Node, an LKProof object corresponding to the Node is returned.

    If n is a <proof>, <rule> or <prooflink> Node, an LKProof object corresponding to the Node is returned. Note that the LK proofs in gapt differ from the LK proofs in the XML format: the XML format sees sequents in proofs as pairs of lists of formulas, while gapt sees sequents in proofs as pairs of sets of formula occurrences. The parser converts the XML proofs in such a way that the ancestor relation is preserved.

    TODO: prooflink parsing is not supported yet!

    n

    A <proof>, <rule>, or <prooflink> Node.

    returns

    An LKProof object corresponding to n.

    Exceptions thrown

    ParsingException If n is not a <proof>, <rule> or <prooflink> Node.

  20. def getProof(): LKProof

    Permalink

    If the Node provided by XMLNodeParser is a <proof>, <rule> or <prooflink> element, an LKProof object corresponding to the Node is returned.

    If the Node provided by XMLNodeParser is a <proof>, <rule> or <prooflink> element, an LKProof object corresponding to the Node is returned. Note that the LK proofs in gapt differ from the LK proofs in the XML format: the XML format sees sequents in proofs as pairs of lists of formulas, while gapt sees sequents in proofs as pairs of sets of formula occurrences. The parser converts the XML proofs in such a way that the ancestor relation is preserved.

    TODO: prooflink parsing is not supported yet!

    returns

    An LKProof object corresponding to the Node provided by getInput().

    Exceptions thrown

    ParsingException If the Node provided by getInput() is not a <proof>, <rule> or <prooflink> Node.

  21. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  22. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  23. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  24. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  25. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  27. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  28. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  30. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  31. def [B](y: B): (XMLProofParser, B)

    Permalink
    Implicit information
    This member is added by an implicit conversion from XMLProofParser to ArrowAssoc[XMLProofParser] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Inherited from XMLNodeParser

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion any2stringadd from XMLProofParser to any2stringadd[XMLProofParser]

Inherited by implicit conversion StringFormat from XMLProofParser to StringFormat[XMLProofParser]

Inherited by implicit conversion Ensuring from XMLProofParser to Ensuring[XMLProofParser]

Inherited by implicit conversion ArrowAssoc from XMLProofParser to ArrowAssoc[XMLProofParser]

Ungrouped