public ITypeBinding[] getExceptions(boolean includeRuntimeExceptions) { if (includeRuntimeExceptions) return fAllExceptions; List<ITypeBinding> result= new ArrayList<>(fAllExceptions.length); for (int i= 0; i < fAllExceptions.length; i++) { ITypeBinding exception= fAllExceptions[i]; if (!includeRuntimeExceptions && Bindings.isRuntimeException(exception)) continue; result.add(exception); } return result.toArray(new ITypeBinding[result.size()]); }
public ITypeBinding[] getExceptions(boolean includeRuntimeExceptions, AST ast) { if (includeRuntimeExceptions) return fAllExceptions; List result= new ArrayList(fAllExceptions.length); for (int i= 0; i < fAllExceptions.length; i++) { ITypeBinding exception= fAllExceptions[i]; if (!includeRuntimeExceptions && Bindings.isRuntimeException(exception)) continue; result.add(exception); } return (ITypeBinding[]) result.toArray(new ITypeBinding[result.size()]); }
public ITypeBinding[] getExceptions(boolean includeRuntimeExceptions) { if (includeRuntimeExceptions) return fAllExceptions; List<ITypeBinding> result= new ArrayList<>(fAllExceptions.length); for (int i= 0; i < fAllExceptions.length; i++) { ITypeBinding exception= fAllExceptions[i]; if (!includeRuntimeExceptions && Bindings.isRuntimeException(exception)) continue; result.add(exception); } return result.toArray(new ITypeBinding[result.size()]); }
public ITypeBinding[] getExceptions(boolean includeRuntimeExceptions) { if (includeRuntimeExceptions) { return fAllExceptions; } List<ITypeBinding> result = new ArrayList<>(fAllExceptions.length); for (int i = 0; i < fAllExceptions.length; i++) { ITypeBinding exception = fAllExceptions[i]; if (!includeRuntimeExceptions && Bindings.isRuntimeException(exception)) { continue; } result.add(exception); } return result.toArray(new ITypeBinding[result.size()]); }
public boolean visit(ThrowStatement node) { ITypeBinding exception= node.getExpression().resolveTypeBinding(); if (!isSelected(node) || exception == null || Bindings.isRuntimeException(exception)) // Safety net for null bindings when compiling fails. return true; addException(exception); return true; }
@Override public boolean visit(ThrowStatement node) { ITypeBinding exception = node.getExpression().resolveTypeBinding(); if (!isSelected(node) || exception == null || Bindings.isRuntimeException(exception)) { return true; } addException(exception, node.getAST()); return true; }
@Override public boolean visit(ThrowStatement node) { ITypeBinding exception= node.getExpression().resolveTypeBinding(); if (!isSelected(node) || exception == null || Bindings.isRuntimeException(exception)) // Safety net for null bindings when compiling fails. return true; addException(exception, node.getAST()); return true; }
@Override public boolean visit(ThrowStatement node) { ITypeBinding exception= node.getExpression().resolveTypeBinding(); if (!isSelected(node) || exception == null || Bindings.isRuntimeException(exception)) // Safety net for null bindings when compiling fails. return true; addException(exception, node.getAST()); return true; }