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 privateError()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.IllegalStateExceptionallCaseBodiesMustHaveSameType()static java.lang.IllegalStateExceptionallTestValuesMustHaveTheSameType()static java.lang.IllegalStateExceptionambiguousJump(java.lang.String name)static java.lang.IllegalStateExceptionandAlsoCannotProvideMethod()static java.lang.IllegalStateExceptionargumentCannotBeOfTypeVoid()static java.lang.IllegalStateExceptionargumentMustBeArray()static java.lang.IllegalStateExceptionargumentMustBeArrayIndexType()static java.lang.IllegalStateExceptionargumentMustBeBoolean()static java.lang.IllegalStateExceptionargumentMustBeInteger()static java.lang.IllegalStateExceptionargumentMustBeIntegral()static java.lang.IllegalArgumentExceptionargumentMustBeReferenceType()static java.lang.IllegalArgumentExceptionargumentMustBeThrowable()static java.lang.IllegalArgumentExceptionargumentMustNotHaveValueType()static java.lang.IllegalStateExceptionargumentTypesMustMatch()static java.lang.IllegalStateExceptionbinaryOperatorNotDefined(ExpressionType operator, Type leftType, Type rightType)static java.lang.IllegalStateExceptionbodyOfCatchMustHaveSameTypeAsBodyOfTry()static java.lang.IllegalStateExceptioncannotAccessThisFromStaticMember()static java.lang.IllegalStateExceptioncannotCompileConstant(java.lang.Object value)static java.lang.IllegalStateExceptioncatchVariableMustBeCompatibleWithCatchType(Type catchType, Type variableType)static java.lang.IllegalStateExceptioncoalesceUsedOnNonNullableType()static java.lang.IllegalStateExceptioncoercionOperatorNotDefined(Type sourceType, Type destinationType)static java.lang.IllegalArgumentExceptionconcatRequiresAtLeastTwoOperands()static java.lang.IllegalArgumentExceptioncontinueTargetMustBeVoid()static java.lang.IllegalStateExceptioncontrolCannotEnterExpression()static java.lang.IllegalStateExceptioncontrolCannotEnterTry()static java.lang.IllegalStateExceptionconversionIsNotSupportedForArithmeticTypes()static java.lang.IllegalStateExceptioncouldNotCreateDelegate(java.lang.Throwable t)static java.lang.IllegalStateExceptioncouldNotResolveConstructor(Type<?> type, Type<?>... parameterTypes)static java.lang.IllegalStateExceptiondefaultBodyMustBeSupplied()static java.lang.IllegalStateExceptionduplicateVariable(ParameterExpression variable)static java.lang.IllegalArgumentExceptiondynamicMethodCallRequiresTargetOrMethodHandle()static java.lang.IllegalStateExceptionequalityMustReturnBoolean(MethodBase method)static java.lang.IllegalStateExceptionexpressionMustBeReadable(java.lang.String parameterName)static java.lang.IllegalStateExceptionexpressionMustBeWriteable(java.lang.String parameterName)static java.lang.IllegalArgumentExceptionexpressionTypeCannotInitializeArrayType(Type itemType, Type arrayElementType)static java.lang.IllegalStateExceptionexpressionTypeDoesNotMatchAssignment(Type leftType, Type rightType)static java.lang.IllegalStateExceptionexpressionTypeDoesNotMatchConstructorParameter(Type argType, Type parameterType)static java.lang.IllegalArgumentExceptionexpressionTypeDoesNotMatchLabel(Type valueType, Type expectedType)static java.lang.IllegalStateExceptionexpressionTypeDoesNotMatchMethodParameter(Type argType, Type parameterType, MethodBase method)static java.lang.IllegalStateExceptionexpressionTypeDoesNotMatchParameter(Type argType, Type parameterType)static java.lang.IllegalStateExceptionexpressionTypeDoesNotMatchReturn(Type bodyType, Type returnType)static java.lang.IllegalStateExceptionexpressionTypeNotInvokable(Type type)static java.lang.IllegalStateExceptionextensionMustOverride(java.lang.String memberName)static java.lang.IllegalStateExceptionextensionNotReduced()static java.lang.IllegalStateExceptionfieldDoesNotExistOnType(java.lang.String fieldName, Type type)static java.lang.IllegalStateExceptiongenericMethodWithArgsDoesNotExistOnType(java.lang.String methodName, Type type)static java.lang.IllegalStateExceptionincorrectlyTypedSelfExpression(Type<?> expected, Type<?> actual)static java.lang.IllegalStateExceptionincorrectlyTypedSuperExpression(Type<?> expected, Type<?> actual)static java.lang.IllegalStateExceptionincorrectNumberOfConstructorArguments()static java.lang.IllegalStateExceptionincorrectNumberOfIndexes()static java.lang.IllegalStateExceptionincorrectNumberOfLambdaArguments()static java.lang.IllegalStateExceptionincorrectNumberOfLambdaDeclarationParameters()static java.lang.IllegalStateExceptionincorrectNumberOfMethodCallArguments(MethodBase method)static java.lang.IllegalArgumentExceptioninitializerMustBeAssignableToVariable()static java.lang.IllegalStateExceptioninvalidBoxType()static java.lang.IllegalStateExceptioninvalidLValue(ExpressionType nodeType)static java.lang.IllegalStateExceptioninvalidMemberType(MemberType memberType)static java.lang.IllegalStateExceptioninvalidOperator(ExpressionType operator)static java.lang.IllegalStateExceptioninvalidUnboxType()static java.lang.IllegalStateExceptionlabelMustBeVoidOrHaveExpression()static java.lang.IllegalStateExceptionlabelTargetAlreadyDefined(java.lang.String name)static java.lang.IllegalStateExceptionlabelTargetUndefined(java.lang.String name)static java.lang.IllegalStateExceptionlambdaTypeMustBeSingleMethodInterface()static java.lang.IllegalStateExceptionmemberNotField(MemberInfo member)static java.lang.IllegalStateExceptionmethodBasedOperatorMustHaveValidReturnType(ExpressionType operator, MethodBase method)static java.lang.IllegalStateExceptionmethodBasedOperatorMustHaveValidReturnType(MethodBase method)static java.lang.IllegalStateExceptionmethodDoesNotExistOnType(java.lang.String methodName, Type type)static java.lang.IllegalStateExceptionmethodWithArgsDoesNotExistOnType(java.lang.String methodName, Type type)static java.lang.IllegalStateExceptionmethodWithMoreThanOneMatch(java.lang.String methodName, Type type)static java.lang.IllegalStateExceptionmustBeReducible()static java.lang.IllegalStateExceptionmustReduceToDifferent()static java.lang.IllegalStateExceptionmustRewriteChildToSameType(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.IllegalStateExceptionmustRewriteWithoutMethod(MethodBase method, java.lang.String callerName)static java.lang.IllegalStateExceptionnonLocalJumpWithValue(java.lang.String name)static java.lang.IllegalStateExceptionoperandTypesDoNotMatchParameters(ExpressionType nodeType, MethodBase method)static java.lang.IllegalStateExceptionoperatorMethodMustNotBeStatic(MethodBase method)static java.lang.IllegalStateExceptionoperatorMethodMustNotReturnVoid(MethodBase method)static java.lang.IllegalStateExceptionoperatorMethodParametersMustMatchReturnValue(MethodBase method)static java.lang.IllegalStateExceptionorElseCannotProvideMethod()static java.lang.IllegalStateExceptionoverloadOperatorTypeDoesNotMatchConversionType(ExpressionType nodeType, MethodBase method)static java.lang.IllegalStateExceptionparameterExpressionNotValidForDelegate(Type parameterType, Type delegateParameterType)static java.lang.IllegalArgumentExceptionprimitiveCannotBeTypeBinaryOperand()static java.lang.IllegalArgumentExceptionprimitiveCannotBeTypeBinaryType()static java.lang.IllegalStateExceptionreducedNotCompatible()static java.lang.IllegalStateExceptionreducibleMustOverride(java.lang.String memberName)static java.lang.IllegalStateExceptionreferenceEqualityNotDefined(Type leftType, Type rightType)static java.lang.IllegalStateExceptionreturnTypeDoesNotMatchOperandType(ExpressionType expressionType, MethodBase method)static java.lang.IllegalStateExceptionreturnTypeDoesNotMatchOperandType(MethodBase method)static java.lang.IllegalStateExceptiontargetAndMethodTypeMismatch(MethodBase method, Type targetType)static java.lang.IllegalStateExceptiontargetInvalidForStaticFieldAccess(FieldInfo field)static java.lang.IllegalStateExceptiontargetInvalidForStaticMethodCall(MethodBase method)static java.lang.IllegalStateExceptiontargetRequiredForNonStaticFieldAccess(FieldInfo field)static java.lang.IllegalStateExceptiontargetRequiredForNonStaticMethodCall(MethodBase method)static java.lang.IllegalArgumentExceptiontestMustBeBooleanExpression()static java.lang.IllegalStateExceptiontestValueTypeDoesNotMatchComparisonMethodParameter(Type testValueType, Type parameterType)static java.lang.IllegalStateExceptiontryMustHaveCatchOrFinally()static java.lang.IllegalStateExceptiontryNotAllowedInFilter()static java.lang.IllegalArgumentExceptiontwoOrMoreOperandsRequired()static java.lang.IllegalStateExceptionunaryOperatorNotDefined(ExpressionType operator, Type operandType)static java.lang.IllegalArgumentExceptionunboxNotDefined(Type<?> boxedType, Type<?> unboxedType)static java.lang.IllegalStateExceptionundefinedVariable(java.lang.String name, Type type, java.lang.String currentLambdaName)static java.lang.IllegalStateExceptionunexpectedCoalesceOperator()static java.lang.IllegalStateExceptionunhandledBinary(ExpressionType binaryType)static java.lang.IllegalStateExceptionunhandledUnary(ExpressionType unaryType)static java.lang.IllegalStateExceptionunmodifiableCollection()
-
-
-
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()
-
-