Class

laika.ast

Specificity

Related Doc: package ast

Permalink

case class Specificity(ids: Int, classes: Int, types: Int, order: Int) extends Ordered[Specificity] with Product with Serializable

Represents the specificity of a style selector or predicate. This is modeled after the precedence rules of the CSS standard.

Linear Supertypes
Serializable, Serializable, Product, Equals, Ordered[Specificity], Comparable[Specificity], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Specificity
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. Ordered
  7. Comparable
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Specificity(ids: Int, classes: Int, types: Int, order: Int)

    Permalink

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: Specificity): Specificity

    Permalink

    Adds this and the given specificity by summing all its individual parameters.

  4. def <(that: Specificity): Boolean

    Permalink
    Definition Classes
    Ordered
  5. def <=(that: Specificity): Boolean

    Permalink
    Definition Classes
    Ordered
  6. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  7. def >(that: Specificity): Boolean

    Permalink
    Definition Classes
    Ordered
  8. def >=(that: Specificity): Boolean

    Permalink
    Definition Classes
    Ordered
  9. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  10. val classes: Int

    Permalink
  11. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  12. def compare(other: Specificity): Int

    Permalink

    Compares this instance with the given specificity.

    Compares this instance with the given specificity. Applies the CSS standard weighting of first comparing the number of specified ids, followed by classes, then types and finally the order.

    Definition Classes
    Specificity → Ordered
  13. def compareTo(that: Specificity): Int

    Permalink
    Definition Classes
    Ordered → Comparable
  14. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  17. val ids: Int

    Permalink
  18. final def isInstanceOf[T0]: Boolean

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

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

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

    Permalink
    Definition Classes
    AnyRef
  22. val order: Int

    Permalink
  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. val types: Int

    Permalink
  25. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from Ordered[Specificity]

Inherited from Comparable[Specificity]

Inherited from AnyRef

Inherited from Any

Ungrouped