Packages

object RewriteRules extends Serializable

Factory methods and utilities for dealing with rewrite rules.

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RewriteRules
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class ChainedRewriteRules[T](rules: Seq[RewriteRule[T]]) extends (T) ⇒ RewriteAction[T] with Product with Serializable

    Chains the specified rewrite rules so that they get applied to matching elements in the order specified in the given sequence.

  2. type RewritePhaseBuilder = PartialFunction[RewritePhase, Seq[RewriteRulesBuilder]]
  3. type RewriteRulesBuilder = (DocumentCursor) ⇒ ConfigResult[RewriteRules]

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 chainFactories(rules: Seq[RewriteRulesBuilder]): RewriteRulesBuilder

    Chains the specified rule factory functions into a single factory function.

  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  7. def defaultsFor(root: DocumentTreeRoot, phase: RewritePhase, slugBuilder: (String) ⇒ String): Seq[RewriteRulesBuilder]

    The default built-in rewrite rules, dealing with section building and link resolution.

    The default built-in rewrite rules, dealing with section building and link resolution. These are not installed as part of any default extension bundle as they have specific ordering requirements not compatible with the standard bundle ordering in OperationConfig.

  8. def empty: RewriteRules

    Creates a new instance without any rules.

    Creates a new instance without any rules. Applying an empty instance to an AST will always return the AST unchanged.

  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  11. def forBlocks(rule: RewriteRule[Block]): RewriteRules

    Creates a new instance containing only this single rule for blocks.

  12. def forSpans(rule: RewriteRule[Span]): RewriteRules

    Creates a new instance containing only this single rule for spans.

  13. def forTemplates(rule: RewriteRule[TemplateSpan]): RewriteRules

    Creates a new instance containing only this single rule for template spans.

  14. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  15. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  16. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  21. def toString(): String
    Definition Classes
    AnyRef → Any
  22. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  23. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  24. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped