org.jetbrains.kotlin.psi
Class JetCallExpression

java.lang.Object
  extended by JetExpressionImpl
      extended by org.jetbrains.kotlin.psi.JetCallExpression
All Implemented Interfaces:
JetCallElement, JetExpression, JetReferenceExpression

public class JetCallExpression
extends JetExpressionImpl
implements JetCallElement, JetReferenceExpression


Field Summary
 
Fields inherited from interface org.jetbrains.kotlin.psi.JetExpression
ARRAY_FACTORY, EMPTY_ARRAY
 
Constructor Summary
JetCallExpression(com.intellij.lang.ASTNode node)
           
 
Method Summary
<R,D> R
accept(JetVisitor<R,D> visitor, D data)
           
 JetExpression getCalleeExpression()
           
 java.util.List<JetFunctionLiteralArgument> getFunctionLiteralArguments()
          Normally there should be only one (or zero) function literal arguments.
 JetTypeArgumentList getTypeArgumentList()
           
 java.util.List<JetTypeProjection> getTypeArguments()
           
 JetValueArgumentList getValueArgumentList()
           
 java.util.List<JetValueArgument> getValueArguments()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JetCallExpression

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

accept

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

getCalleeExpression

@Nullable
public JetExpression getCalleeExpression()
Specified by:
getCalleeExpression in interface JetCallElement

getValueArgumentList

@Nullable
public JetValueArgumentList getValueArgumentList()
Specified by:
getValueArgumentList in interface JetCallElement

getTypeArgumentList

@Nullable
public JetTypeArgumentList getTypeArgumentList()
Specified by:
getTypeArgumentList in interface JetCallElement

getFunctionLiteralArguments

@NotNull
public java.util.List<JetFunctionLiteralArgument> getFunctionLiteralArguments()
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:
getFunctionLiteralArguments in interface JetCallElement

getValueArguments

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

getTypeArguments

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