package compiler
- Alphabetic
- Public
- Protected
Type Members
- case class CombineFieldRules(rules: Seq[Rule], op: String = "&&") extends Rule with Product with Serializable
- case class FunctionCall(funcName: String, needsName: Boolean, args: Seq[String], inputTransform: Expression, outputTranform: Expression, imports: Seq[String], preamble: Seq[String]) extends Rule with Product with Serializable
Represents a generated function call that returns a Result.
Represents a generated function call that returns a Result.
funcName: fully qualified functin name. The function takes potentially the name (if needsName is true), then the value to be tested, then the list of args are passed: funcName([name], value, *args) needsName: whether the first argument is the name of the field being tested. args: arguments to pass after the value. inputTransform: transformation to apply to the value outputTransform: transformation to apply to the result of funcName imports: list of imports to add to the top of the file (no need to dedupe here) preamble: code to be added for static definitions. Can be used for constants that needs to be computed only once.
- case class IgnoreEmptyRule(isEmpty: Rule, other: Rule) extends Rule with Product with Serializable
- class MessagePrinter extends AnyRef
- case class OptionalFieldRule(rules: Seq[Rule]) extends Rule with Product with Serializable
- class ProcessRequest extends AnyRef
- case class RepeatedFieldRule(rules: Seq[Rule], inputTransform: (String) => String) extends Rule with Product with Serializable
- trait Rule extends AnyRef
- trait Show[T] extends AnyRef
Value Members
- object BooleanRulesGen
- case object BuildInfo extends Product with Serializable
This object was generated by sbt-buildinfo.
- object BytesRuleGen
- object CodeGenerator extends CodeGenApp
- object ComparativeRulesGen
- object EnumRulesGen
- object IgnoreEmptyRulesGen
- object MapRulesGen
- object MembershipRulesGen
- object MessagePrinter
- object RepeatedRulesGen
- object RequiredRulesGen
- object Rule
- object RulesGen
- object Show
- object StringRulesGen
StringRulesGenerator helps generate the validation code for protocol buffer string typed field
- object TimestampRulesGen
- object ValidatePreprocessor extends CodeGenApp