Package com.strobel.expressions
Class Error
java.lang.Object
com.strobel.expressions.Error
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IllegalStateException
static IllegalStateException
static IllegalStateException
ambiguousJump
(String name) static IllegalStateException
static IllegalStateException
static IllegalStateException
static IllegalStateException
static IllegalStateException
static IllegalStateException
static IllegalStateException
static IllegalArgumentException
static IllegalArgumentException
static IllegalArgumentException
static IllegalStateException
static IllegalStateException
binaryOperatorNotDefined
(ExpressionType operator, Type leftType, Type rightType) static IllegalStateException
static IllegalStateException
static IllegalStateException
cannotCompileConstant
(Object value) static IllegalStateException
catchVariableMustBeCompatibleWithCatchType
(Type catchType, Type variableType) static IllegalStateException
static IllegalStateException
coercionOperatorNotDefined
(Type sourceType, Type destinationType) static IllegalArgumentException
static IllegalArgumentException
static IllegalStateException
static IllegalStateException
static IllegalStateException
static IllegalStateException
static IllegalStateException
couldNotResolveConstructor
(Type<?> type, Type<?>... parameterTypes) static IllegalStateException
static IllegalStateException
duplicateVariable
(ParameterExpression variable) static IllegalArgumentException
static IllegalStateException
equalityMustReturnBoolean
(MethodBase method) static IllegalStateException
expressionMustBeReadable
(String parameterName) static IllegalStateException
expressionMustBeWriteable
(String parameterName) static IllegalArgumentException
expressionTypeCannotInitializeArrayType
(Type itemType, Type arrayElementType) static IllegalStateException
expressionTypeDoesNotMatchAssignment
(Type leftType, Type rightType) static IllegalStateException
expressionTypeDoesNotMatchConstructorParameter
(Type argType, Type parameterType) static IllegalArgumentException
expressionTypeDoesNotMatchLabel
(Type valueType, Type expectedType) static IllegalStateException
expressionTypeDoesNotMatchMethodParameter
(Type argType, Type parameterType, MethodBase method) static IllegalStateException
expressionTypeDoesNotMatchParameter
(Type argType, Type parameterType) static IllegalStateException
expressionTypeDoesNotMatchReturn
(Type bodyType, Type returnType) static IllegalStateException
static IllegalStateException
extensionMustOverride
(String memberName) static IllegalStateException
static IllegalStateException
fieldDoesNotExistOnType
(String fieldName, Type type) static IllegalStateException
genericMethodWithArgsDoesNotExistOnType
(String methodName, Type type) static IllegalStateException
incorrectlyTypedSelfExpression
(Type<?> expected, Type<?> actual) static IllegalStateException
incorrectlyTypedSuperExpression
(Type<?> expected, Type<?> actual) static IllegalStateException
static IllegalStateException
static IllegalStateException
static IllegalStateException
static IllegalStateException
static IllegalArgumentException
static IllegalStateException
static IllegalStateException
invalidLValue
(ExpressionType nodeType) static IllegalStateException
invalidMemberType
(MemberType memberType) static IllegalStateException
invalidOperator
(ExpressionType operator) static IllegalStateException
static IllegalStateException
static IllegalStateException
static IllegalStateException
labelTargetUndefined
(String name) static IllegalStateException
static IllegalStateException
memberNotField
(MemberInfo member) static IllegalStateException
methodBasedOperatorMustHaveValidReturnType
(ExpressionType operator, MethodBase method) static IllegalStateException
static IllegalStateException
methodDoesNotExistOnType
(String methodName, Type type) static IllegalStateException
methodWithArgsDoesNotExistOnType
(String methodName, Type type) static IllegalStateException
methodWithMoreThanOneMatch
(String methodName, Type type) static IllegalStateException
static IllegalStateException
static IllegalStateException
mustRewriteChildToSameType
(Type before, Type after, String callerName) static <T extends Expression>
IllegalStateExceptionmustRewriteToSameNode
(String callerName, Class<T> type, String overrideMethodName) static IllegalStateException
mustRewriteWithoutMethod
(MethodBase method, String callerName) static IllegalStateException
nonLocalJumpWithValue
(String name) static IllegalStateException
operandTypesDoNotMatchParameters
(ExpressionType nodeType, MethodBase method) static IllegalStateException
static IllegalStateException
static IllegalStateException
static IllegalStateException
static IllegalStateException
overloadOperatorTypeDoesNotMatchConversionType
(ExpressionType nodeType, MethodBase method) static IllegalStateException
parameterExpressionNotValidForDelegate
(Type parameterType, Type delegateParameterType) static IllegalArgumentException
static IllegalArgumentException
static IllegalStateException
static IllegalStateException
reducibleMustOverride
(String memberName) static IllegalStateException
referenceEqualityNotDefined
(Type leftType, Type rightType) static IllegalStateException
returnTypeDoesNotMatchOperandType
(ExpressionType expressionType, MethodBase method) static IllegalStateException
static IllegalStateException
targetAndMethodTypeMismatch
(MethodBase method, Type targetType) static IllegalStateException
static IllegalStateException
static IllegalStateException
static IllegalStateException
static IllegalArgumentException
static IllegalStateException
testValueTypeDoesNotMatchComparisonMethodParameter
(Type testValueType, Type parameterType) static IllegalStateException
static IllegalStateException
static IllegalArgumentException
static IllegalStateException
unaryOperatorNotDefined
(ExpressionType operator, Type operandType) static IllegalArgumentException
unboxNotDefined
(Type<?> boxedType, Type<?> unboxedType) static IllegalStateException
undefinedVariable
(String name, Type type, String currentLambdaName) static IllegalStateException
static IllegalStateException
unhandledBinary
(ExpressionType binaryType) static IllegalStateException
unhandledUnary
(ExpressionType unaryType) static IllegalStateException
-
Constructor Details
-
Error
private Error()
-
-
Method Details
-
extensionMustOverride
-
reducibleMustOverride
-
memberNotField
-
mustBeReducible
-
mustReduceToDifferent
-
reducedNotCompatible
-
argumentTypesMustMatch
-
argumentCannotBeOfTypeVoid
-
expressionMustBeWriteable
-
expressionMustBeReadable
-
mustRewriteChildToSameType
public static IllegalStateException mustRewriteChildToSameType(Type before, Type after, String callerName) -
mustRewriteWithoutMethod
-
mustRewriteToSameNode
public static <T extends Expression> IllegalStateException mustRewriteToSameNode(String callerName, Class<T> type, String overrideMethodName) -
unhandledUnary
-
unhandledBinary
-
unmodifiableCollection
-
duplicateVariable
-
unaryOperatorNotDefined
public static IllegalStateException unaryOperatorNotDefined(ExpressionType operator, Type operandType) -
operatorMethodMustNotBeStatic
-
operatorMethodMustNotReturnVoid
-
operatorMethodParametersMustMatchReturnValue
-
returnTypeDoesNotMatchOperandType
public static IllegalStateException returnTypeDoesNotMatchOperandType(ExpressionType expressionType, MethodBase method) -
returnTypeDoesNotMatchOperandType
-
incorrectNumberOfConstructorArguments
-
couldNotResolveConstructor
public static IllegalStateException couldNotResolveConstructor(Type<?> type, Type<?>... parameterTypes) -
incorrectNumberOfLambdaArguments
-
incorrectNumberOfLambdaDeclarationParameters
-
incorrectNumberOfMethodCallArguments
-
invalidUnboxType
-
unboxNotDefined
-
invalidBoxType
-
argumentMustBeArray
-
argumentMustBeBoolean
-
argumentMustBeInteger
-
argumentMustBeIntegral
-
coercionOperatorNotDefined
public static IllegalStateException coercionOperatorNotDefined(Type sourceType, Type destinationType) -
argumentMustNotHaveValueType
-
argumentMustBeThrowable
-
methodBasedOperatorMustHaveValidReturnType
-
methodBasedOperatorMustHaveValidReturnType
public static IllegalStateException methodBasedOperatorMustHaveValidReturnType(ExpressionType operator, MethodBase method) -
expressionTypeNotInvokable
-
binaryOperatorNotDefined
public static IllegalStateException binaryOperatorNotDefined(ExpressionType operator, Type leftType, Type rightType) -
referenceEqualityNotDefined
-
invalidOperator
-
targetRequiredForNonStaticMethodCall
-
targetRequiredForNonStaticFieldAccess
-
targetInvalidForStaticFieldAccess
-
targetInvalidForStaticMethodCall
-
targetAndMethodTypeMismatch
-
expressionTypeDoesNotMatchParameter
public static IllegalStateException expressionTypeDoesNotMatchParameter(Type argType, Type parameterType) -
expressionTypeDoesNotMatchReturn
public static IllegalStateException expressionTypeDoesNotMatchReturn(Type bodyType, Type returnType) -
expressionTypeDoesNotMatchConstructorParameter
public static IllegalStateException expressionTypeDoesNotMatchConstructorParameter(Type argType, Type parameterType) -
expressionTypeDoesNotMatchMethodParameter
public static IllegalStateException expressionTypeDoesNotMatchMethodParameter(Type argType, Type parameterType, MethodBase method) -
expressionTypeDoesNotMatchAssignment
public static IllegalStateException expressionTypeDoesNotMatchAssignment(Type leftType, Type rightType) -
methodDoesNotExistOnType
-
fieldDoesNotExistOnType
-
genericMethodWithArgsDoesNotExistOnType
public static IllegalStateException genericMethodWithArgsDoesNotExistOnType(String methodName, Type type) -
methodWithArgsDoesNotExistOnType
-
methodWithMoreThanOneMatch
-
argumentMustBeArrayIndexType
-
conversionIsNotSupportedForArithmeticTypes
-
operandTypesDoNotMatchParameters
public static IllegalStateException operandTypesDoNotMatchParameters(ExpressionType nodeType, MethodBase method) -
overloadOperatorTypeDoesNotMatchConversionType
public static IllegalStateException overloadOperatorTypeDoesNotMatchConversionType(ExpressionType nodeType, MethodBase method) -
lambdaTypeMustBeSingleMethodInterface
-
parameterExpressionNotValidForDelegate
public static IllegalStateException parameterExpressionNotValidForDelegate(Type parameterType, Type delegateParameterType) -
labelMustBeVoidOrHaveExpression
-
expressionTypeDoesNotMatchLabel
public static IllegalArgumentException expressionTypeDoesNotMatchLabel(Type valueType, Type expectedType) -
expressionTypeCannotInitializeArrayType
public static IllegalArgumentException expressionTypeCannotInitializeArrayType(Type itemType, Type arrayElementType) -
catchVariableMustBeCompatibleWithCatchType
public static IllegalStateException catchVariableMustBeCompatibleWithCatchType(Type catchType, Type variableType) -
bodyOfCatchMustHaveSameTypeAsBodyOfTry
-
tryMustHaveCatchOrFinally
-
invalidLValue
-
allCaseBodiesMustHaveSameType
-
allTestValuesMustHaveTheSameType
-
defaultBodyMustBeSupplied
-
testValueTypeDoesNotMatchComparisonMethodParameter
public static IllegalStateException testValueTypeDoesNotMatchComparisonMethodParameter(Type testValueType, Type parameterType) -
equalityMustReturnBoolean
-
cannotCompileConstant
-
undefinedVariable
public static IllegalStateException undefinedVariable(String name, Type type, String currentLambdaName) -
couldNotCreateDelegate
-
labelTargetAlreadyDefined
-
ambiguousJump
-
nonLocalJumpWithValue
-
controlCannotEnterExpression
-
controlCannotEnterTry
-
labelTargetUndefined
-
primitiveCannotBeTypeBinaryOperand
-
primitiveCannotBeTypeBinaryType
-
incorrectNumberOfIndexes
-
unexpectedCoalesceOperator
-
invalidMemberType
-
andAlsoCannotProvideMethod
-
orElseCannotProvideMethod
-
coalesceUsedOnNonNullableType
-
extensionNotReduced
-
tryNotAllowedInFilter
-
argumentMustBeReferenceType
-
initializerMustBeAssignableToVariable
-
testMustBeBooleanExpression
-
continueTargetMustBeVoid
-
cannotAccessThisFromStaticMember
-
incorrectlyTypedSelfExpression
public static IllegalStateException incorrectlyTypedSelfExpression(Type<?> expected, Type<?> actual) -
incorrectlyTypedSuperExpression
public static IllegalStateException incorrectlyTypedSuperExpression(Type<?> expected, Type<?> actual) -
twoOrMoreOperandsRequired
-
concatRequiresAtLeastTwoOperands
-
dynamicMethodCallRequiresTargetOrMethodHandle
-