Packages

case class VarDecl(name: LocalName, feature: Option[String], tp: Option[Term], df: Option[Term], not: Option[TextNotation]) extends Obj with NamedElement with Product with Serializable

represents an MMT term variable declaration

name

name

tp

optional type

df

optional definiens

not

optional notation

Source
Context.scala
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. VarDecl
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. NamedElement
  7. Obj
  8. HashEquality
  9. ShortURIPrinter
  10. BaseType
  11. Content
  12. ClientProperties
  13. HasMetaData
  14. AnyRef
  15. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new VarDecl(name: LocalName, feature: Option[String], tp: Option[Term], df: Option[Term], not: Option[TextNotation])

    name

    name

    tp

    optional type

    df

    optional definiens

    not

    optional notation

Type Members

  1. type ThisType = VarDecl

    the type of this instance

    the type of this instance

    This is needed to provide sharper return types for inductive functions, e.g., substitution returns Term if applied to Term, Context if applied to Context, etc.

    Definition Classes
    VarDeclObj

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. def ^(sub: Substitution): ThisType

    applies a substitution to an object (computed immediately) implemented in terms of ^^ and PlainSubstitutionApplier

    applies a substitution to an object (computed immediately) implemented in terms of ^^ and PlainSubstitutionApplier

    Definition Classes
    Obj
  5. def ^?(sub: Substitution): ThisType

    optimized version of substitution defined in terms of SmartSubstitutionApplier

    optimized version of substitution defined in terms of SmartSubstitutionApplier

    Definition Classes
    Obj
  6. def ^^(sub: Substitution)(implicit sa: SubstitutionApplier): ThisType

    convenience method that applies substitution by relegating to a SubstitutionApplier

    convenience method that applies substitution by relegating to a SubstitutionApplier

    This has the effect that o ^^ sub becomes an infix notation for substitution if an implicit SubstitutionApplier is available.

    Definition Classes
    Obj
  7. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  8. lazy val clientProperty: ListMap[URI, Any]
    Definition Classes
    ClientProperties
  9. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  10. def copy(name: LocalName = this.name, feature: Option[String] = this.feature, tp: Option[Term] = this.tp, df: Option[Term] = this.df, not: Option[TextNotation] = this.not): VarDecl

    self-written copy method to copy metadata

  11. def copyFrom(o: Obj): Unit

    replaces metadata of this with pointer to those of o

    replaces metadata of this with pointer to those of o

    o

    the original object call o2.copyFrom(o1) after transforming o1 into o2 in order to preserve metadata

    Definition Classes
    Obj
  12. val df: Option[Term]
  13. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. val feature: Option[String]
  15. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. lazy val freeVars: List[LocalName]

    the free variables of this object in any order

    the free variables of this object in any order

    Definition Classes
    Obj
  17. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. def getMetaDataNode: NodeSeq
    Definition Classes
    HasMetaData
  19. def governingPath: Option[ContentPath]

    the governing path required by Content is the head, if any

    the governing path required by Content is the head, if any

    Definition Classes
    Obj
  20. lazy val hash: Int

    the hash code

    the hash code

    Definition Classes
    HashEquality
  21. def hasheq(that: HashEquality[Obj]): Boolean

    this hasheq that is the same as this == that, but fails immediately if false

    this hasheq that is the same as this == that, but fails immediately if false

    Definition Classes
    HashEquality
  22. def hashneq(that: HashEquality[Obj]): Boolean

    this hasheq that is the same as this == that, but fails immediately if false

    this hasheq that is the same as this == that, but fails immediately if false

    Definition Classes
    HashEquality
  23. def head: Option[ContentPath]
    Definition Classes
    VarDeclObj
  24. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  25. def map(f: (Term) ⇒ Term): VarDecl

    applies a function to type and definition

  26. def mdNode: Seq[Node] with AbstractSeq[Node] with Serializable
    Attributes
    protected
    Definition Classes
    Obj
  27. val metadata: MetaData
    Definition Classes
    HasMetaData
  28. val name: LocalName

    the name relative to the parent

    the name relative to the parent

    Definition Classes
    VarDeclNamedElement
  29. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  30. val not: Option[TextNotation]
  31. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  32. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  33. def subobject(pos: Position): (Context, Obj)

    returns the subobject at a given position and its context

    returns the subobject at a given position and its context

    Definition Classes
    Obj
  34. def subobjects: List[(Context, Obj)]

    all direct subobjects of this object with their context (excluding any outer context of this object)

    all direct subobjects of this object with their context (excluding any outer context of this object)

    Definition Classes
    VarDeclObj
  35. def subobjectsNoContext(os: List[Obj]): List[(Context, Obj)]

    auxiliary function for subobjects in the absence of binding

    auxiliary function for subobjects in the absence of binding

    Attributes
    protected
    Definition Classes
    Obj
  36. def substitute(sub: Substitution)(implicit sa: SubstitutionApplier): VarDecl

    generic version of substitution that does one step and recurses according to a SubstitutionApplier

    generic version of substitution that does one step and recurses according to a SubstitutionApplier

    capture is avoided by renaming bound variables that are free in sub

    Individual SubstitutionAppliers can default to this method in order to recurse one level.

    Definition Classes
    VarDeclObj
  37. def subsumes(that: VarDecl): Boolean

    true if this is stronger than that

  38. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  39. def toCML: Node
    Definition Classes
    Obj
  40. def toCMLQVars(implicit qvars: Context): Elem
    Definition Classes
    VarDeclObj
  41. def toConstant(mp: MPath, con: Context): FinalConstant
  42. def toDeclaration(home: Term): Declaration
  43. def toNode: Elem

    prints to OpenMath

    prints to OpenMath

    Definition Classes
    VarDeclObjContent
  44. def toNode(rh: RenderingHandler): Unit

    by default, this prints out toNode

    by default, this prints out toNode

    potentially large StructuralElements should override it with a memory-efficient implementation

    Definition Classes
    Content
  45. def toOBJNode: Elem

    prints to OpenMath (with OMOBJ wrapper)

    prints to OpenMath (with OMOBJ wrapper)

    Definition Classes
    Obj
  46. def toOML: OML
  47. def toOpenMath: Term

    converts to an OpenMath-style attributed variable using two special keys

  48. def toStr(implicit shortURIs: Boolean): String

    configurable string representation

    configurable string representation

    shortURIs

    print OMS without namespace, theory

    Definition Classes
    VarDeclShortURIPrinter
  49. def toString(): String

    defaults to toStr(false)

    defaults to toStr(false)

    Definition Classes
    ShortURIPrinter → AnyRef → Any
  50. def toTerm: OMV
  51. val tp: Option[Term]
  52. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  53. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  54. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from NamedElement

Inherited from Obj

Inherited from HashEquality[Obj]

Inherited from ShortURIPrinter

Inherited from BaseType

Inherited from Content

Inherited from ClientProperties

Inherited from HasMetaData

Inherited from AnyRef

Inherited from Any

Ungrouped