Class JUtils

java.lang.Object
org.sonar.java.model.JUtils

public final class JUtils extends Object
  • Method Details

    • wrapTypeIfPrimitive

      public static Type wrapTypeIfPrimitive(Type type)
    • isIntersectionType

      public static boolean isIntersectionType(Type type)
    • collectSuperTypes

      public static void collectSuperTypes(Set<Type> result, JSema sema, org.eclipse.jdt.core.dom.ITypeBinding typeBinding)
    • getPackage

      public static Symbol getPackage(Symbol symbol)
    • defaultValue

      @Nullable public static Object defaultValue(Symbol.MethodSymbol method)
    • directSuperTypes

      public static Set<Type> directSuperTypes(Type type)
    • enclosingClass

      @Nullable public static Symbol enclosingClass(Tree t)
    • parameterAnnotations

      public static SymbolMetadata parameterAnnotations(Symbol.MethodSymbol method, int param)
    • hasUnknownTypePreventingOverrideResolution

      public static boolean hasUnknownTypePreventingOverrideResolution(Symbol.MethodSymbol symbol)
    • hasUnknownTypeInHierarchy

      public static boolean hasUnknownTypeInHierarchy(Symbol.TypeSymbol typeSymbol)