コード例 #1
0
    @Override
    public void visitInstanceofExpression(GrInstanceOfExpression expression) {
      final GrExpression operand = expression.getOperand();
      final GrTypeElement typeElement = expression.getTypeElement();
      if (typeElement == null) return;

      if (myExpression == operand) {
        final PsiType type = typeElement.getType();
        myResult = new TypeConstraint[] {new SupertypeConstraint(type, type)};
      }
    }
コード例 #2
0
 @Override
 public void visitInstanceofExpression(GrInstanceOfExpression expression) {
   expression.getOperand().accept(this);
   processInstanceOf(expression);
 }