org.sonar.commons
Interface Language

All Known Implementing Classes:
AbstractLanguage, Java

public interface Language


Method Summary
 java.lang.String[] getFileSuffixes()
           
 java.lang.String getKey()
           
 java.lang.String getName()
           
 Resource getParent(Resource resource)
          The parent in the resources tree.
 boolean matchExclusionPattern(java.io.File source, java.util.List<java.io.File> sourceDirs, java.lang.String wildcardPattern)
          Used to exclude a source file from analysis.
 boolean matchExclusionPattern(Resource resource, java.lang.String wildcardPattern)
          Used to exclude resources from analysis.
 

Method Detail

getKey

java.lang.String getKey()

getName

java.lang.String getName()

getParent

Resource getParent(Resource resource)
The parent in the resources tree. For example Java packages are parents of Java classes. Projects are not taken into account, so Java packages have no parent and getParent(a Java package) returns null.


matchExclusionPattern

boolean matchExclusionPattern(Resource resource,
                              java.lang.String wildcardPattern)
Used to exclude resources from analysis.


matchExclusionPattern

boolean matchExclusionPattern(java.io.File source,
                              java.util.List<java.io.File> sourceDirs,
                              java.lang.String wildcardPattern)
Used to exclude a source file from analysis.


getFileSuffixes

java.lang.String[] getFileSuffixes()


Copyright © 2009 SonarSource SA. All Rights Reserved.