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