public static EsperEPL2GrammarParser.StartEventPropertyRuleContext parse(String propertyName){
  CharStream input;
  try {
    input=new NoCaseSensitiveStream(new StringReader(propertyName));
  }
 catch (  IOException ex) {
    throw new PropertyAccessException("IOException parsing property name '" + propertyName + '\'',ex);
  }
  EsperEPL2GrammarLexer lex=ParseHelper.newLexer(input);
  CommonTokenStream tokens=new CommonTokenStream(lex);
  try {
    tokens.fill();
  }
 catch (  RuntimeException e) {
    if (ParseHelper.hasControlCharacters(propertyName)) {
      throw new PropertyAccessException("Unrecognized control characters found in text");
    }
    throw new PropertyAccessException("Failed to parse text: " + e.getMessage());
  }
  EsperEPL2GrammarParser g=ParseHelper.newParser(tokens);
  EsperEPL2GrammarParser.StartEventPropertyRuleContext r;
  try {
    r=g.startEventPropertyRule();
  }
 catch (  RecognitionException e) {
    return handleRecognitionEx(e,tokens,propertyName,g);
  }
catch (  RuntimeException e) {
    if (log.isDebugEnabled()) {
      log.debug("Error parsing property expression [" + propertyName + "]",e);
    }
    if (e.getCause() instanceof RecognitionException) {
      return handleRecognitionEx((RecognitionException)e.getCause(),tokens,propertyName,g);
    }
 else {
      throw e;
    }
  }
  return r;
}

public static EsperEPL2GrammarParser . StartEventPropertyRuleContext parse ( String propertyName ) { CharStream input ; try { input = new NoCaseSensitiveStream ( new StringReader ( propertyName ) ) ; } catch ( IOException ex ) { throw new PropertyAccessException ( "IOException parsing property name '" + propertyName + '\'' , ex ) ; } EsperEPL2GrammarLexer lex = ParseHelper . newLexer ( input ) ; CommonTokenStream tokens = new CommonTokenStream ( lex ) ; try { tokens . fill ( ) ; } catch ( RuntimeException e ) { if ( ParseHelper . hasControlCharacters ( propertyName ) ) { throw new PropertyAccessException ( "Unrecognized control characters found in text" ) ; } throw new PropertyAccessException ( "Failed to parse text: " + e . getMessage ( ) ) ; } EsperEPL2GrammarParser g = ParseHelper . newParser ( tokens ) ; EsperEPL2GrammarParser . StartEventPropertyRuleContext r ; try { r = g . startEventPropertyRule ( ) ; } catch ( RecognitionException e ) { return handleRecognitionEx ( e , tokens , propertyName , g ) ; } catch ( RuntimeException e ) { if ( log . isDebugEnabled ( ) ) { log . debug ( "Error parsing property expression [" + propertyName + "]" , e ) ; } if ( e . getCause ( ) instanceof RecognitionException ) { return handleRecognitionEx ( ( RecognitionException ) e . getCause ( ) , tokens , propertyName , g ) ; } else { throw e ; } } return r ; }
parses a given property name returning an ast .
