FunctionCall

case class FunctionCall(funcName: String, needsName: Boolean, args: Seq[String], inputTransform: Expression, outputTranform: Expression, imports: Seq[String], preamble: Seq[String]) extends Rule

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.

trait Serializable
trait Product
trait Equals
trait Rule
class Object
trait Matchable
class Any

Value members

Concrete methods

def render(descriptor: FieldDescriptor, input: String): PrinterEndo
def withImport(name: String): FunctionCall
def withPreamble(lines: String*): FunctionCall

Inherited methods

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product