ASTNode (int role) { LOG.assertTrue(ChildRole.isUnique(role)); switch(role){ default: return null; case ChildRole.OPERAND: return findChildByType(EXPRESSION_BIT_SET); case ChildRole.INSTANCEOF_KEYWORD: return findChildByType(INSTANCEOF_KEYWORD); case ChildRole.TYPE: return findChildByType(TYPE); } }