object RewriteRules extends Serializable
Factory methods and utilities for dealing with rewrite rules.
- Alphabetic
- By Inheritance
- RewriteRules
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- 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.
- type RewriteRulesBuilder = (DocumentCursor) => ConfigResult[RewriteRules]
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def chainFactories(rules: Seq[RewriteRulesBuilder]): RewriteRulesBuilder
Chains the specified rule factory functions into a single factory function.
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def defaultsFor(root: DocumentTreeRoot, 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
. - 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.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def forBlocks(rule: RewriteRule[Block]): RewriteRules
Creates a new instance containing only this single rule for blocks.
- def forSpans(rule: RewriteRule[Span]): RewriteRules
Creates a new instance containing only this single rule for spans.
- def forTemplates(rule: RewriteRule[TemplateSpan]): RewriteRules
Creates a new instance containing only this single rule for template spans.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()