ASTVariableDeclaratorId extends AbstractJavaTypeNode implements Dimensionable { public boolean isExceptionBlockParameter() { return getParent().getParent() instanceof ASTCatchStatement; } @InternalApi @Deprecated  ASTVariableDeclaratorId(int id); @InternalApi @Deprecated  ASTVariableDeclaratorId(JavaParser p, int id); @Override Object jjtAccept(JavaParserVisitor visitor, Object data); VariableNameDeclaration getNameDeclaration(); @InternalApi @Deprecated void setNameDeclaration(VariableNameDeclaration decl); List<NameOccurrence> getUsages(); @Deprecated void bumpArrayDepth(); @Override @Deprecated int getArrayDepth(); @Override @Deprecated @DeprecatedAttribute(replaceWith = "@ArrayType") boolean isArray(); @Override @DeprecatedAttribute(replaceWith = "@Name") @Deprecated String getImage(); String getName(); boolean hasArrayType(); boolean isExceptionBlockParameter(); boolean isFormalParameter(); boolean isLocalVariable(); boolean isLambdaParameter(); boolean isField(); @Deprecated @DeprecatedAttribute(replaceWith = "@Name") String getVariableName(); boolean isFinal(); @InternalApi @Deprecated void setExplicitReceiverParameter(); boolean isExplicitReceiverParameter(); boolean isResourceDeclaration(); boolean isTypeInferred(); @Experimental boolean isPatternBinding(); Node getTypeNameNode(); ASTType getTypeNode(); @Override @SuppressWarnings("PMD.UselessOverridingMethod") Class<?> getType();  }
@Test public void testIsExceptionBlockParameter() { ASTCompilationUnit acu = java.parse(EXCEPTION_PARAMETER); ASTVariableDeclaratorId id = acu.getFirstDescendantOfType(ASTVariableDeclaratorId.class); assertTrue(id.isExceptionBlockParameter()); }