Package com.adobe.ac.pmd.files

Examples of com.adobe.ac.pmd.files.IMxmlFile


      final IFlexFile flexFile = FileUtils.create( new File( tokens.getFileName() ),
                                                   new File( "" ) );

      if ( flexFile instanceof IMxmlFile )
      {
         final IMxmlFile mxml = ( IMxmlFile ) flexFile;

         scanner.setLines( mxml.getScriptBlock() );
      }
      else
      {
         scanner.setLines( tokens.getCode().toArray( new String[ tokens.getCode().size() ] ) );
      }
View Full Code Here


    */
   @Override
   protected final List< IFlexViolation > findViolationsInCurrentFile()
   {
      final List< IFlexViolation > violations = new ArrayList< IFlexViolation >();
      final IMxmlFile mxml = ( IMxmlFile ) getCurrentFile();

      linesInScriptBlock = mxml.getEndingScriptBlock()
            - mxml.getBeginningScriptBlock();

      if ( linesInScriptBlock >= getThreshold() )
      {
         addViolation( violations,
                       new ViolationPosition( mxml.getBeginningScriptBlock(), mxml.getEndingScriptBlock() ) );
      }
      return violations;
   }
View Full Code Here

TOP

Related Classes of com.adobe.ac.pmd.files.IMxmlFile

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.