Package org.sonar.java.model
Class JUtils
java.lang.Object
org.sonar.java.model.JUtils
-
Method Summary
Modifier and TypeMethodDescriptionconstantValue
(Symbol.VariableSymbol symbol) static Type
declaringType
(Type type) static Object
defaultValue
(Symbol.MethodSymbol method) directSuperTypes
(Type type) static Symbol
static Symbol
getPackage
(Symbol symbol) static boolean
hasUnknownTypeInHierarchy
(Symbol.TypeSymbol typeSymbol) static boolean
static Symbol
importTreeSymbol
(ImportTree tree) static boolean
isAnnotation
(Symbol.TypeSymbol typeSymbol) static boolean
isDefaultMethod
(Symbol.MethodSymbol method) static boolean
isEffectivelyFinal
(Symbol.VariableSymbol variableSymbol) static boolean
isIntersectionType
(Type type) static boolean
isLocalVariable
(Symbol symbol) static boolean
isNativeMethod
(Symbol.MethodSymbol method) static boolean
isNullType
(Type type) static boolean
isOverridable
(Symbol.MethodSymbol method) static boolean
isParameter
(Symbol symbol) static boolean
static boolean
isPrimitiveWrapper
(Type type) static boolean
static boolean
static boolean
static boolean
isVarArgsMethod
(Symbol.MethodSymbol method) static Symbol.TypeSymbol
outermostClass
(Symbol.TypeSymbol typeSymbol) static SymbolMetadata
parameterAnnotations
(Symbol.MethodSymbol method, int param) static Type
primitiveType
(Type type) static Type
primitiveWrapperType
(Type type) superTypes
(Symbol.TypeSymbol typeSymbol) static Symbol
static Type
wrapTypeIfPrimitive
(Type type)
-
Method Details
-
isPrimitiveWrapper
-
wrapTypeIfPrimitive
-
primitiveWrapperType
-
primitiveType
-
isNullType
-
isIntersectionType
-
isTypeVar
-
isAnnotation
-
isEffectivelyFinal
-
isLocalVariable
-
isParameter
-
constantValue
-
superTypes
-
outermostClass
-
getPackage
-
isVarArgsMethod
-
isSynchronizedMethod
-
isNativeMethod
-
isDefaultMethod
-
defaultValue
-
isOverridable
-
isParametrizedMethod
-
isRawType
-
declaringType
-
directSuperTypes
-
enclosingClass
-
importTreeSymbol
-
typeParameterTreeSymbol
-
parameterAnnotations
-
hasUnknownTypePreventingOverrideResolution
-
hasUnknownTypeInHierarchy
-