com.intellij.psi
Interface PsiExpression

All Superinterfaces:
Iconable, PsiAnnotationMemberValue, PsiElement, UserDataHolder
All Known Subinterfaces:
PsiArrayAccessExpression, PsiArrayInitializerExpression, PsiAssignmentExpression, PsiBinaryExpression, PsiCallExpression, PsiClassObjectAccessExpression, PsiConditionalExpression, PsiInstanceOfExpression, PsiLiteralExpression, PsiMethodCallExpression, PsiNewExpression, PsiParenthesizedExpression, PsiPostfixExpression, PsiPrefixExpression, PsiReferenceExpression, PsiSuperExpression, PsiThisExpression, PsiTypeCastExpression

public interface PsiExpression
extends PsiElement, PsiAnnotationMemberValue

Represents a Java epxression.


Field Summary
static PsiExpression[] EMPTY_ARRAY
          The empty array of PSI expressions which can be reused to avoid unnecessary allocations.
 
Method Summary
 PsiType getType()
          Returns the type of the expression.
 

Field Detail

EMPTY_ARRAY

static final PsiExpression[] EMPTY_ARRAY
The empty array of PSI expressions which can be reused to avoid unnecessary allocations.

Method Detail

getType

@Nullable
PsiType getType()
Returns the type of the expression.

Returns:
the expression type, or null if the type is not known.