ASTNode (int role) { LOG.assertTrue(ChildRole.isUnique(role)); switch(role){ default: return null; case ChildRole.SYNCHRONIZED_KEYWORD: return findChildByType(SYNCHRONIZED_KEYWORD); case ChildRole.LPARENTH: return findChildByType(LPARENTH); case ChildRole.LOCK: return findChildByType(EXPRESSION_BIT_SET); case ChildRole.RPARENTH: return findChildByType(RPARENTH); case ChildRole.BLOCK: return findChildByType(CODE_BLOCK); } }