ASTCompoundCondition extends net.sourceforge.pmd.lang.plsql.ast.AbstractPLSQLNode { public String getType() { return type; } @Deprecated @InternalApi  ASTCompoundCondition(int id); @Deprecated @InternalApi  ASTCompoundCondition(PLSQLParser p, int id); @Override Object jjtAccept(PLSQLParserVisitor visitor, Object data); String getType();  }
@Test public void testParseType() { ASTInput input = plsql.parse("BEGIN SELECT COUNT(1) INTO MY_TABLE FROM USERS_TABLE WHERE user_id = 1 AnD user_id = 2; END;"); List<ASTCompoundCondition> compoundConditions = input.findDescendantsOfType(ASTCompoundCondition.class); Assert.assertFalse(compoundConditions.isEmpty()); Assert.assertEquals("AND", compoundConditions.get(0).getType()); }