<s> package org . codehaus . jdt . groovy . integration ; import org . eclipse . core . resources . IProject ; import org . eclipse . jdt . core . WorkingCopyOwner ; import org . eclipse . jdt . core . search . IJavaSearchScope ; import org . eclipse . jdt . core . search . SearchPattern ; import org . eclipse . jdt . core . search . SearchRequestor ; import org . eclipse . jdt . internal . compiler . CompilationResult ; import org . eclipse . jdt . internal . compiler . IProblemFactory ; import org . eclipse . jdt . internal . compiler . ISourceElementRequestor ; import org . eclipse . jdt . internal . compiler . SourceElementParser ; import org . eclipse . jdt . internal . compiler . ast . CompilationUnitDeclaration ; import org . eclipse . jdt . internal . compiler . env . ICompilationUnit ; import org . eclipse . jdt . internal . compiler . impl . CompilerOptions ; import org . eclipse . jdt . internal . compiler . parser . Parser ; import org . eclipse . jdt . internal . compiler . problem . ProblemReporter ; import org . eclipse . jdt . internal . core . BinaryType ; import org . eclipse . jdt . internal . core . CompilationUnit ; import org . eclipse . jdt . internal . core . JavaProject ; import org . eclipse . jdt . internal . core . PackageFragment ; import org . eclipse . jdt . internal . core . search . indexing . IndexingParser ; import org . eclipse . jdt . internal . core . search . matching . ImportMatchLocatorParser ; import org . eclipse . jdt . internal . core . search . matching . MatchLocator ; import org . eclipse . jdt . internal . core . search . matching . MatchLocatorParser ; import org . eclipse . jdt . internal . core . search . matching . PossibleMatch ; import org . eclipse . jdt . internal . core . util . CommentRecorderParser ; import org . eclipse . jdt . internal . core . util . Util ; class DefaultLanguageSupport implements LanguageSupport { public Parser getParser ( Object requestor , CompilerOptions compilerOptions , ProblemReporter problemReporter , boolean parseLiteralExpressionsAsConstants , int variant ) { if ( variant == 1 ) { return new Parser ( problemReporter , parseLiteralExpressionsAsConstants ) ; } else { return new CommentRecorderParser ( problemReporter , parseLiteralExpressionsAsConstants ) ; } } public IndexingParser getIndexingParser ( ISourceElementRequestor requestor , IProblemFactory problemFactory , CompilerOptions options , boolean reportLocalDeclarations , boolean optimizeStringLiterals , boolean useSourceJavadocParser ) { return new IndexingParser ( requestor , problemFactory , options , reportLocalDeclarations , optimizeStringLiterals , useSourceJavadocParser ) ; } public ImportMatchLocatorParser getImportMatchLocatorParserParser ( ProblemReporter problemReporter , MatchLocator locator ) { return new ImportMatchLocatorParser ( problemReporter , locator ) ; } public SourceElementParser getSourceElementParser ( ISourceElementRequestor requestor , IProblemFactory problemFactory , CompilerOptions options , boolean reportLocalDeclarations , boolean optimizeStringLiterals , boolean useSourceJavadocParser ) { return new SourceElementParser ( requestor , problemFactory , options , reportLocalDeclarations , optimizeStringLiterals , useSourceJavadocParser ) ; } public MatchLocatorParser getMatchLocatorParserParser ( ProblemReporter problemReporter , MatchLocator locator ) { return new MatchLocatorParser ( problemReporter , locator ) ; } public CompilationUnit newCompilationUnit ( PackageFragment parent , String name , WorkingCopyOwner owner ) { return new CompilationUnit ( parent , name , owner ) ; } public CompilationUnitDeclaration newCompilationUnitDeclaration ( ICompilationUnit unit , ProblemReporter problemReporter , CompilationResult compilationResult , int sourceLength ) { return new CompilationUnitDeclaration ( problemReporter , compilationResult , sourceLength ) ; } public boolean isInterestingProject ( IProject project ) { return true ; } public boolean isSourceFile ( String fileName , boolean isInterestingProject ) { return Util . isJavaLikeFileName ( fileName ) ; } public boolean isInterestingSourceFile ( String fileName ) { return false ; } public boolean maybePerformDelegatedSearch ( PossibleMatch possibleMatch , SearchPattern pattern , SearchRequestor requestor ) { return false ; } public EventHandler getEventHandler ( ) { return DefaultEventHandler . instance ; } static class DefaultEventHandler implements EventHandler { static DefaultEventHandler instance = new DefaultEventHandler ( ) ; private DefaultEventHandler ( ) { } public void handle ( JavaProject javaProject , String string ) { } } public void filterNonSourceMembers ( BinaryType binaryType ) { } public IJavaSearchScope expandSearchScope ( IJavaSearchScope scope , SearchPattern pattern , SearchRequestor requestor ) { return scope ; } } </s>