org.jetbrains.kotlin.psi
Class KtCallExpression

java.lang.Object
  extended by KtExpressionImpl
      extended by org.jetbrains.kotlin.psi.KtCallExpression
All Implemented Interfaces:
KtCallElement, KtExpression, KtReferenceExpression

public class KtCallExpression
extends KtExpressionImpl
implements KtCallElement, KtReferenceExpression


Field Summary
 
Fields inherited from interface org.jetbrains.kotlin.psi.KtExpression
ARRAY_FACTORY, EMPTY_ARRAY
 
Constructor Summary
KtCallExpression(com.intellij.lang.ASTNode node)
           
 
Method Summary
<R,D> R
accept(KtVisitor<R,D> visitor, D data)
           
 KtExpression getCalleeExpression()
           
 java.util.List<KtLambdaArgument> getLambdaArguments()
          Normally there should be only one (or zero) function literal arguments.
 KtTypeArgumentList getTypeArgumentList()
           
 java.util.List<KtTypeProjection> getTypeArguments()
           
 KtValueArgumentList getValueArgumentList()
           
 java.util.List<KtValueArgument> getValueArguments()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KtCallExpression

public KtCallExpression(@NotNull
                        com.intellij.lang.ASTNode node)
Method Detail

accept

public <R,D> R accept(@NotNull
                      KtVisitor<R,D> visitor,
                      D data)
Specified by:
accept in interface KtExpression

getCalleeExpression

@Nullable
public KtExpression getCalleeExpression()
Specified by:
getCalleeExpression in interface KtCallElement

getValueArgumentList

@Nullable
public KtValueArgumentList getValueArgumentList()
Specified by:
getValueArgumentList in interface KtCallElement

getTypeArgumentList

@Nullable
public KtTypeArgumentList getTypeArgumentList()
Specified by:
getTypeArgumentList in interface KtCallElement

getLambdaArguments

@NotNull
public java.util.List<KtLambdaArgument> getLambdaArguments()
Normally there should be only one (or zero) function literal arguments. The returned value is a list for better handling of commonly made mistake of a function taking a lambda and returning another function. Most of users can simply ignore lists of more than one element.

Specified by:
getLambdaArguments in interface KtCallElement

getValueArguments

@NotNull
public java.util.List<KtValueArgument> getValueArguments()
Specified by:
getValueArguments in interface KtCallElement

getTypeArguments

@NotNull
public java.util.List<KtTypeProjection> getTypeArguments()
Specified by:
getTypeArguments in interface KtCallElement