object Parts
The public user API for specifying the required and optional parts of a directive (arguments, fields or body) together with optional converter/validator functions.
- Alphabetic
- By Inheritance
- Parts
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
-
def
argument[T](convert: (SourceFragment) ⇒ Either[String, T] = ..., withWS: Boolean = false): DirectivePartBuilder[T]
Specifies a required argument.
Specifies a required argument.
- convert
the function to use for converting and validating the parsed value
- withWS
whether the argument supports whitespace characters (only one of these can exist in any single directive markup)
- returns
a directive part that can be combined with further parts with the
~
operator
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
blockContent: DirectivePartBuilder[Seq[Block]]
Specifies standard block-level content as the body of the directive.
Specifies standard block-level content as the body of the directive.
- returns
a directive part that can be combined with further parts with the
~
operator
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
content[T](f: (SourceFragment) ⇒ Either[String, T]): DirectivePartBuilder[T]
Specifies that the body of the directive markup should get passed to the conversion function as a raw string.
Specifies that the body of the directive markup should get passed to the conversion function as a raw string.
- f
the function to use for converting and validating the parsed value
- returns
a directive part that can be combined with further parts with the
~
operator
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
field[T](name: String, convert: (SourceFragment) ⇒ Either[String, T] = ...): DirectivePartBuilder[T]
Specifies a required named field.
Specifies a required named field.
- name
the name of the field as used in the directive markup (without the colons)
- convert
the function to use for converting and validating the parsed value
- returns
a directive part that can be combined with further parts with the
~
operator
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- 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()
-
def
optArgument[T](convert: (SourceFragment) ⇒ Either[String, T] = ..., withWS: Boolean = false): DirectivePartBuilder[Option[T]]
Specifies an optional argument.
Specifies an optional argument.
- convert
the function to use for converting and validating the parsed value if it is present
- withWS
whether the argument supports whitespace characters (only one of these can exist in any single directive markup)
- returns
a directive part that can be combined with further parts with the
~
operator
-
def
optField[T](name: String, convert: (SourceFragment) ⇒ Either[String, T] = ...): DirectivePartBuilder[Option[T]]
Specifies an optional named field.
Specifies an optional named field.
- name
the name of the field as used in the directive markup (without the colons)
- convert
the function to use for converting and validating the parsed value if it is present
- returns
a directive part that can be combined with further parts with the
~
operator
- def optSpanArgument: DirectivePartBuilder[Option[Seq[Span]]]
- def spanArgument: DirectivePartBuilder[Seq[Span]]
- def spanContent: DirectivePartBuilder[Seq[Span]]
-
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( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()