code: protected PExp patternToExp(PPattern pattern) throws AnalysisException
  	{
  		PatternToExpVisitor visitor = new PatternToExpVisitor(getUniqueGenerator(), af);
  		return pattern.apply(visitor);
  	}
docs: Create an expression equivalent to a pattern.