Package de.bokelberg.flex.parser

Examples of de.bokelberg.flex.parser.AS3Parser


   private static IParserNode tryToBuildAst( final IFlexFile file ) throws IOException,
                                                                   TokenException
   {
      IParserNode rootNode;
      final IAS3Parser parser = new AS3Parser();
      if ( file instanceof IMxmlFile )
      {
         rootNode = parser.buildAst( file.getFilePath(),
                                     ( ( IMxmlFile ) file ).getScriptBlock() );
      }
      else
      {
         rootNode = parser.buildAst( file.getFilePath() );
      }
      return rootNode;
   }
View Full Code Here


   protected List< IFlexViolation > processFile( final String resourcePath ) throws IOException,
                                                                            TokenException
   {
      if ( !getIgnoreFiles().contains( resourcePath ) )
      {
         final IAS3Parser parser = new AS3Parser();
         final IFlexFile file = getTestFiles().get( resourcePath );

         IPackage rootNode = null;

         if ( file == null )
         {
            throw new IOException( resourcePath
                  + " is not found" );
         }
         if ( file instanceof IAs3File )
         {
            rootNode = NodeFactory.createPackage( parser.buildAst( file.getFilePath() ) );
         }
         else
         {
            rootNode = NodeFactory.createPackage( parser.buildAst( file.getFilePath(),
                                                                   ( ( IMxmlFile ) file ).getScriptBlock() ) );
         }
         return getRule().processFile( file,
                                       rootNode,
                                       getTestFiles() );
View Full Code Here

TOP

Related Classes of de.bokelberg.flex.parser.AS3Parser

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.