Search in sources :

Example 11 with PsiBinaryExpression

use of com.intellij.psi.PsiBinaryExpression in project Main by SpartanRefactoring.

the class hazTest method testHazNotEqualsOperator.

public void testHazNotEqualsOperator() throws Exception {
    PsiBinaryExpression e1 = (PsiBinaryExpression) createTestExpression("x == y");
    assert !haz.notEqualsOperator(e1);
    PsiBinaryExpression e2 = (PsiBinaryExpression) createTestExpression("x != y");
    assert haz.notEqualsOperator(e2);
    assert !haz.notEqualsOperator((PsiBinaryExpression) createTestExpression("x > y"));
}
Also used : PsiBinaryExpression(com.intellij.psi.PsiBinaryExpression)

Aggregations

PsiBinaryExpression (com.intellij.psi.PsiBinaryExpression)11 PsiExpression (com.intellij.psi.PsiExpression)5 PsiElement (com.intellij.psi.PsiElement)4 IElementType (com.intellij.psi.tree.IElementType)3 PsiField (com.intellij.psi.PsiField)2 PsiJavaToken (com.intellij.psi.PsiJavaToken)2 PsiReferenceExpression (com.intellij.psi.PsiReferenceExpression)2 Nullable (com.android.annotations.Nullable)1 PsiArrayInitializerExpression (com.intellij.psi.PsiArrayInitializerExpression)1 PsiArrayType (com.intellij.psi.PsiArrayType)1 PsiAssignmentExpression (com.intellij.psi.PsiAssignmentExpression)1 PsiClass (com.intellij.psi.PsiClass)1 PsiClassType (com.intellij.psi.PsiClassType)1 PsiConditionalExpression (com.intellij.psi.PsiConditionalExpression)1 PsiDeclarationStatement (com.intellij.psi.PsiDeclarationStatement)1 PsiExpressionStatement (com.intellij.psi.PsiExpressionStatement)1 PsiLiteral (com.intellij.psi.PsiLiteral)1 PsiLiteralExpression (com.intellij.psi.PsiLiteralExpression)1 PsiLocalVariable (com.intellij.psi.PsiLocalVariable)1 PsiNewExpression (com.intellij.psi.PsiNewExpression)1