MethodUtils

org.encalmo.utils.MethodUtils
object MethodUtils

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def buildMethodCall(using Quotes)(target: x$1.reflect.Term, methodSym: x$1.reflect.Symbol, allArgs: List[x$1.reflect.Term]): x$1.reflect.Term
def callMethod(using Quotes)(targetTerm: x$1.reflect.Term, methodName: String, argTerms: List[x$1.reflect.Term]): x$1.reflect.Term

Dynamically calls a method on 'target' with the given name and arguments.

Dynamically calls a method on 'target' with the given name and arguments.

Attributes

def callPrintln(using Quotes)(term: x$1.reflect.Term, terms: x$1.reflect.Term*): x$1.reflect.Term
def findMethodByArity(using Quotes)(tpe: x$1.reflect.TypeRepr, name: String, arity: Int): x$1.reflect.Symbol
def maybeSelectedValue[T](selector: String, label: Expr[String], expr: Expr[T], functionExpr: [A] => (x$1: Expr[String], x$2: Expr[A]) => Type[A] ?=> Expr[Unit], fallbackExpr: => Expr[Unit])(using evidence$1: Type[T], quotes: Quotes): Expr[Unit]

Maybe select a value from expression using a selector and call the provided function if found, or call fallback function if not found.

Maybe select a value from expression using a selector and call the provided function if found, or call fallback function if not found.

Attributes

def wrapInMethodCall[T](methodName: String, methodBody: Expr[T])(using evidence$1: Type[T], quotes: Quotes): Expr[T]

Wrap a method call in a method definition and return the result of the method call.

Wrap a method call in a method definition and return the result of the method call.

Attributes