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