org.sonar.api.resources
Interface Language

All Superinterfaces:
BatchComponent, BatchExtension, Extension, ServerComponent, ServerExtension
All Known Implementing Classes:
AbstractLanguage, Java, Xoo

public interface Language
extends BatchExtension, ServerExtension

The extension point to define a new language

Instantiation strategy changed to PER_BATCH in version 4.2.

Since:
1.10

Method Summary
 String[] getFileSuffixes()
          For example ["jav", "java"].
 String getKey()
          For example "java".
 String getName()
          For example "Java"
 

Method Detail

getKey

String getKey()
For example "java". Should not be more than 20 chars.


getName

String getName()
For example "Java"


getFileSuffixes

String[] getFileSuffixes()
For example ["jav", "java"]. If empty, then all files in source directories are considered as sources.



Copyright © 2009–2015 SonarSource. All rights reserved.