org.jetbrains.kotlin.codegen
Class RangeCodegenUtil

java.lang.Object
  extended by org.jetbrains.kotlin.codegen.RangeCodegenUtil

public class RangeCodegenUtil
extends java.lang.Object


Nested Class Summary
static class RangeCodegenUtil.BinaryCall
           
 
Method Summary
static ResolvedCall<? extends CallableDescriptor> getLoopRangeResolvedCall(KtForExpression forExpression, BindingContext bindingContext)
           
static PrimitiveType getPrimitiveRangeOrProgressionElementType(FqName rangeOrProgressionName)
           
static RangeCodegenUtil.BinaryCall getRangeAsBinaryCall(KtForExpression forExpression)
           
static boolean isArrayOrPrimitiveArrayIndices(CallableDescriptor descriptor)
           
static boolean isCollectionIndices(CallableDescriptor descriptor)
           
static boolean isOptimizableRangeTo(CallableDescriptor rangeTo)
           
static boolean isProgression(KotlinType rangeType)
           
static boolean isRange(KotlinType rangeType)
           
static boolean isRangeOrProgression(FqName className)
           
static java.util.List<PrimitiveType> supportedRangeTypes()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

supportedRangeTypes

@NotNull
public static java.util.List<PrimitiveType> supportedRangeTypes()

isRange

public static boolean isRange(KotlinType rangeType)

isProgression

public static boolean isProgression(KotlinType rangeType)

getRangeAsBinaryCall

@Nullable
public static RangeCodegenUtil.BinaryCall getRangeAsBinaryCall(@NotNull
                                                                        KtForExpression forExpression)

getLoopRangeResolvedCall

@Nullable
public static ResolvedCall<? extends CallableDescriptor> getLoopRangeResolvedCall(@NotNull
                                                                                           KtForExpression forExpression,
                                                                                           @NotNull
                                                                                           BindingContext bindingContext)

getPrimitiveRangeOrProgressionElementType

@Nullable
public static PrimitiveType getPrimitiveRangeOrProgressionElementType(@NotNull
                                                                               FqName rangeOrProgressionName)

isRangeOrProgression

public static boolean isRangeOrProgression(@NotNull
                                           FqName className)

isOptimizableRangeTo

public static boolean isOptimizableRangeTo(CallableDescriptor rangeTo)

isArrayOrPrimitiveArrayIndices

public static boolean isArrayOrPrimitiveArrayIndices(@NotNull
                                                     CallableDescriptor descriptor)

isCollectionIndices

public static boolean isCollectionIndices(@NotNull
                                          CallableDescriptor descriptor)