Fantom

 

class compiler::COperators

sys::Obj
  compiler::COperators

Source

COperators is used to manage methods annoated with the Operator facet for efficient operator method resolution.

find

CMethod[] find(Str prefix)

Source

Get operators defined for prefix. For example:

find("plus") => [plus, plusFloat, plusDecimal]
make

new make(CType parent)

Source

Construct for given parent type

parent

CType parent { private set }

Source

toPrefix

const static Str? toPrefix(Str methodName)

Source

Given a method name get the operator prefix:

"plus"     =>  "plus"
"plusInt"  =>  "plus"
"fooBar"   =>  null