Class TypeUtilities
java.lang.Object
com.strobel.decompiler.languages.java.utilities.TypeUtilities
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TypeReferencegetExpectedTypeByParent(Function<AstNode, ResolveResult> resolver, Expression expression) static IMethodSignaturestatic IMethodSignaturestatic booleanisArithmetic(TypeReference type) static booleanisBinaryOperatorApplicable(BinaryOperatorType op, TypeReference lType, TypeReference rType, TypeReference expectedResultType, boolean strict) static booleanisBinaryOperatorApplicable(BinaryOperatorType op, AstType lType, AstType rType, TypeReference expectedResultType, boolean strict) static booleanisBoolean(TypeReference type) static booleanisPrimitive(TypeReference type) static booleanstatic booleanisValidPrimitiveLiteralAssignment(TypeReference targetType, Object value) static AstNodestatic Expressionstatic AstNode
-
Constructor Details
-
TypeUtilities
public TypeUtilities()
-
-
Method Details
-
isPrimitive
-
isPrimitiveOrWrapper
-
isBoolean
-
isArithmetic
-
isBinaryOperatorApplicable
public static boolean isBinaryOperatorApplicable(@NotNull BinaryOperatorType op, @NotNull AstType lType, @NotNull AstType rType, @Nullable TypeReference expectedResultType, boolean strict) -
isBinaryOperatorApplicable
public static boolean isBinaryOperatorApplicable(@NotNull BinaryOperatorType op, @Nullable TypeReference lType, @Nullable TypeReference rType, @Nullable TypeReference expectedResultType, boolean strict) -
skipParenthesesUp
-
skipParenthesesDown
-
skipParenthesesDown
-
getExpectedTypeByParent
@Nullable public static TypeReference getExpectedTypeByParent(Function<AstNode, ResolveResult> resolver, Expression expression) -
getLambdaSignature
-
getLambdaSignature
-
isValidPrimitiveLiteralAssignment
-