Пример #1
0
 public PackageDescr compilationUnit(Resource resource) throws RecognitionException {
   return compilationUnit(DescrFactory.newPackage(resource));
 }
Пример #2
0
 /**
  * Entry point method of a DRL compilation unit
  *
  * <p>compilationUnit := packageStatement? ( statement SEMICOLON? )*
  *
  * @return a PackageDescr with the content of the whole compilation unit
  * @throws RecognitionException
  */
 public PackageDescr compilationUnit() throws RecognitionException {
   return compilationUnit(DescrFactory.newPackage());
 }