Package com.adobe.ac.pmd.nodes

Examples of com.adobe.ac.pmd.nodes.IPackage


   public void testConstructNamespace() throws IOException,
                                       TokenException,
                                       PMDException
   {
      final IParserNode ast = FileSetUtils.buildAst( getTestFiles().get( "schedule_internal.as" ) );
      final IPackage namespacePackage = NodeFactory.createPackage( ast );

      assertNull( namespacePackage.getClassNode() );
      assertEquals( "flexlib.scheduling.scheduleClasses",
                    namespacePackage.getName() );
      assertEquals( 0,
                    namespacePackage.getImports().size() );
   }
View Full Code Here


                             final IFlexFile currentFile )
   {
      try
      {
         final String fullyQualifiedName = currentFile.getFullyQualifiedName();
         final IPackage ast = currentRule instanceof IFlexAstRule ? asts.get( fullyQualifiedName )
                                                                 : null;
         final List< IFlexViolation > foundViolations = currentRule.processFile( currentFile,
                                                                                 ast,
                                                                                 files );
View Full Code Here

      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" );
View Full Code Here

TOP

Related Classes of com.adobe.ac.pmd.nodes.IPackage

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.