org.sonar.java.api
Class JavaUtils

java.lang.Object
  extended by org.sonar.java.api.JavaUtils

public final class JavaUtils
extends Object

Since:
2.6

Field Summary
static String BARRIER_AFTER_SQUID
          Sensors executed before this barrier must not rely on index.
static String BARRIER_BEFORE_SQUID
          All sensors executed after this barrier are sure that all Java resources are indexed.
static String DEFAULT_PACKAGE
           
static String JAVA_SOURCE_DEFAULT_VALUE
          Default value for property JAVA_SOURCE_PROPERTY.
static String JAVA_SOURCE_PROPERTY
          To determine value of this property use getSourceVersion(Project).
static String JAVA_TARGET_DEFAULT_VALUE
          Default value for property JAVA_TARGET_PROPERTY.
static String JAVA_TARGET_PROPERTY
          To determine value of this property use getTargetVersion(Project).
static String PACKAGE_SEPARATOR
           
 
Method Summary
static String abbreviatePackage(String packageName)
           
static String getSourceVersion(Project project)
           
static String getTargetVersion(Project project)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PACKAGE_SEPARATOR

public static final String PACKAGE_SEPARATOR
See Also:
Constant Field Values

DEFAULT_PACKAGE

public static final String DEFAULT_PACKAGE
See Also:
Constant Field Values

BARRIER_BEFORE_SQUID

public static final String BARRIER_BEFORE_SQUID
All sensors executed after this barrier are sure that all Java resources are indexed.

See Also:
Constant Field Values

BARRIER_AFTER_SQUID

public static final String BARRIER_AFTER_SQUID
Sensors executed before this barrier must not rely on index. No Java resources are indexed. Value is 'squid' in order to be backward-compatible with Sensor.FLAG_SQUID_ANALYSIS.

See Also:
Constant Field Values

JAVA_SOURCE_PROPERTY

public static final String JAVA_SOURCE_PROPERTY
To determine value of this property use getSourceVersion(Project).

See Also:
Constant Field Values

JAVA_SOURCE_DEFAULT_VALUE

public static final String JAVA_SOURCE_DEFAULT_VALUE
Default value for property JAVA_SOURCE_PROPERTY.

See Also:
Constant Field Values

JAVA_TARGET_PROPERTY

public static final String JAVA_TARGET_PROPERTY
To determine value of this property use getTargetVersion(Project).

See Also:
Constant Field Values

JAVA_TARGET_DEFAULT_VALUE

public static final String JAVA_TARGET_DEFAULT_VALUE
Default value for property JAVA_TARGET_PROPERTY.

See Also:
Constant Field Values
Method Detail

abbreviatePackage

public static String abbreviatePackage(String packageName)

getSourceVersion

public static String getSourceVersion(Project project)

getTargetVersion

public static String getTargetVersion(Project project)


Copyright © 2009-2012 SonarSource. All Rights Reserved.