Packages

c

laika.ast

Specificity

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)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. def +(other: Specificity): Specificity

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

  4. def <(that: Specificity): Boolean
    Definition Classes
    Ordered
  5. def <=(that: Specificity): Boolean
    Definition Classes
    Ordered
  6. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  7. def >(that: Specificity): Boolean
    Definition Classes
    Ordered
  8. def >=(that: Specificity): Boolean
    Definition Classes
    Ordered
  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. val classes: Int
  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  12. def compare(other: Specificity): Int

    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
    Definition Classes
    Ordered → Comparable
  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. val ids: Int
  18. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. val order: Int
  23. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  24. val types: Int
  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. 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 Ordered[Specificity]

Inherited from Comparable[Specificity]

Inherited from AnyRef

Inherited from Any

Ungrouped