org.jetbrains.k2js.translate.intrinsic.functions.basic
Class FunctionIntrinsic

java.lang.Object
  extended by org.jetbrains.k2js.translate.intrinsic.functions.basic.FunctionIntrinsic
Direct Known Subclasses:
BuiltInFunctionIntrinsic, BuiltInPropertyIntrinsic, FunctionIntrinsic.CallParametersAwareFunctionIntrinsic, KotlinFunctionIntrinsic

public abstract class FunctionIntrinsic
extends java.lang.Object

Base for intrinsics that substitute standard function calls like Int#plus, Float#minus ... etc


Nested Class Summary
static class FunctionIntrinsic.CallParametersAwareFunctionIntrinsic
           
 
Field Summary
static FunctionIntrinsic NO_INTRINSIC
           
 
Constructor Summary
FunctionIntrinsic()
           
 
Method Summary
 JsExpression apply(CallInfo callInfo, java.util.List<JsExpression> arguments, TranslationContext context)
           
 boolean exists()
           
protected static JsExpression getThisOrReceiverOrNull(CallInfo callInfo)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_INTRINSIC

@NotNull
public static final FunctionIntrinsic NO_INTRINSIC
Constructor Detail

FunctionIntrinsic

public FunctionIntrinsic()
Method Detail

getThisOrReceiverOrNull

@Nullable
protected static JsExpression getThisOrReceiverOrNull(@NotNull
                                                               CallInfo callInfo)

apply

@NotNull
public JsExpression apply(@NotNull
                                  CallInfo callInfo,
                                  @NotNull
                                  java.util.List<JsExpression> arguments,
                                  @NotNull
                                  TranslationContext context)

exists

public boolean exists()