@Test public void buildAst() throws PMDException { FileSetUtils.buildAst( getTestFiles().get( "bug.Duane.mxml" ) ); }
public static IParserNode buildAst( final IFlexFile file ) throws PMDException { IParserNode rootNode = null; try { rootNode = tryToBuildAst( file ); } catch ( final IOException e ) { throw new PMDException( "While building AST: Cannot read " + file.getFullyQualifiedName(), e ); } catch ( final TokenException e ) { throw new PMDException( "TokenException thrown while building AST on " + file.getFullyQualifiedName() + " with message: " + e.getMessage(), e ); } return rootNode; }
FileSetUtils { public static IParserNode buildAst( final IFlexFile file ) throws PMDException { IParserNode rootNode = null; try { rootNode = tryToBuildAst( file ); } catch ( final IOException e ) { throw new PMDException( "While building AST: Cannot read " + file.getFullyQualifiedName(), e ); } catch ( final TokenException e ) { throw new PMDException( "TokenException thrown while building AST on " + file.getFullyQualifiedName() + " with message: " + e.getMessage(), e ); } return rootNode; } }
FileSetUtils { public static IParserNode buildAst( final IFlexFile file ) throws PMDException { IParserNode rootNode = null; try { rootNode = tryToBuildAst( file ); } catch ( final IOException e ) { throw new PMDException( "While building AST: Cannot read " + file.getFullyQualifiedName(), e ); } catch ( final TokenException e ) { throw new PMDException( "TokenException thrown while building AST on " + file.getFullyQualifiedName() + " with message: " + e.getMessage(), e ); } return rootNode; } private  FileSetUtils(); }
FileSetUtils { public static IParserNode buildAst( final IFlexFile file ) throws PMDException { IParserNode rootNode = null; try { rootNode = tryToBuildAst( file ); } catch ( final IOException e ) { throw new PMDException( "While building AST: Cannot read " + file.getFullyQualifiedName(), e ); } catch ( final TokenException e ) { throw new PMDException( "TokenException thrown while building AST on " + file.getFullyQualifiedName() + " with message: " + e.getMessage(), e ); } return rootNode; } private  FileSetUtils(); static IParserNode buildAst( final IFlexFile file ); static IParserNode buildThreadedAst( final IFlexFile file ); static Map< String, IPackage > computeAsts( final Map< String, IFlexFile > files ); }
FileSetUtils { public static IParserNode buildAst( final IFlexFile file ) throws PMDException { IParserNode rootNode = null; try { rootNode = tryToBuildAst( file ); } catch ( final IOException e ) { throw new PMDException( "While building AST: Cannot read " + file.getFullyQualifiedName(), e ); } catch ( final TokenException e ) { throw new PMDException( "TokenException thrown while building AST on " + file.getFullyQualifiedName() + " with message: " + e.getMessage(), e ); } return rootNode; } private  FileSetUtils(); static IParserNode buildAst( final IFlexFile file ); static IParserNode buildThreadedAst( final IFlexFile file ); static Map< String, IPackage > computeAsts( final Map< String, IFlexFile > files );  }