Package com.strobel.reflection.emit
Class Error
- java.lang.Object
-
- com.strobel.reflection.emit.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.RuntimeException
abstractMethodCannotHaveBody()
static java.lang.RuntimeException
abstractMethodDeclaredOnNonAbstractType()
static java.lang.RuntimeException
annotationHasNoDefaultAttribute()
static java.lang.RuntimeException
annotationRequiresValue(Type<? extends java.lang.annotation.Annotation> annotationType)
static java.lang.RuntimeException
argumentIndexOutOfRange(MethodBase method, int index)
static java.lang.IllegalArgumentException
argumentMustBeTypeBuilder()
static java.lang.RuntimeException
attributeValueCountMismatch()
static java.lang.RuntimeException
attributeValueIncompatible(Type<?> attributeType, Type<?> valueType)
static java.lang.RuntimeException
badExceptionCodeGenerated()
static java.lang.RuntimeException
badLabel()
static java.lang.RuntimeException
badLabelContent()
static java.lang.RuntimeException
baseTypeCannotBeGenericParameter()
static java.lang.RuntimeException
baseTypeCannotBeInterface()
static java.lang.RuntimeException
baseTypeHasNoDefaultConstructor(Type<?> baseType)
static java.lang.RuntimeException
boxFailure(Type<?> type)
static java.lang.IllegalStateException
branchAddressTooLarge()
static java.lang.RuntimeException
bytecodeGeneratorNotOwnedByMethodBuilder()
static java.lang.RuntimeException
cannotConvertToOrFromVoid()
static java.lang.RuntimeException
cannotInstantiateUnboundGenericType(Type<?> type)
static java.lang.RuntimeException
cannotLoadThisForStaticMethod()
static java.lang.IllegalStateException
cannotModifyFieldAfterTypeCreated()
static java.lang.RuntimeException
cannotModifyMethodAfterCallingGetGenerator()
static java.lang.RuntimeException
cannotModifyTypeAfterCreateType()
static java.lang.IllegalArgumentException
cannotOverrideFinalMethod()
static java.lang.RuntimeException
catchRequiresThrowableType()
static java.lang.IllegalStateException
checkedExceptionUnhandled(Type<?> exceptionType)
static java.lang.RuntimeException
classGenerationFailed(TypeBuilder<?> t, java.lang.Throwable e)
static java.lang.IllegalStateException
codeGenerationException(java.lang.Throwable t)
static java.lang.RuntimeException
constructorNotFound()
static java.lang.RuntimeException
couldNotLoadUnsafeClassInstance()
static java.lang.IllegalStateException
defineGenericParametersAlreadyCalled()
static java.lang.RuntimeException
genericParametersAlreadySet()
static java.lang.RuntimeException
genericTypeDefinitionRequired()
static java.lang.RuntimeException
illegalTwoByteBranch(int position, int address)
static java.lang.IllegalArgumentException
incompatibleReturnTypes()
static java.lang.RuntimeException
interfacesCannotDefineConstructors()
static java.lang.RuntimeException
invalidBranchOpCode(OpCode opCode)
static java.lang.RuntimeException
invalidCast(Type<?> sourceType, Type<?> targetType)
static java.lang.RuntimeException
invalidType(Type<?> type)
static java.lang.RuntimeException
invokeOpCodeRequired()
static java.lang.RuntimeException
labelAlreadyDefined()
static java.lang.IllegalArgumentException
memberContainsUnboundGenericParameters(MemberInfo member)
static java.lang.IllegalArgumentException
methodBuilderBelongsToAnotherType()
static java.lang.RuntimeException
methodHasEmptyBody(MethodBuilder method)
static java.lang.RuntimeException
methodHasOpenLocalScope()
static java.lang.RuntimeException
methodIsFinished()
static java.lang.RuntimeException
methodIsGeneric()
static java.lang.IllegalArgumentException
methodNameMismatch()
static java.lang.RuntimeException
newArrayDimensionsOutOfRange(Type<?> arrayType, int dimensions)
static java.lang.RuntimeException
noCodeGeneratorForDefaultConstructor()
static java.lang.RuntimeException
notGenericType(Type<?> type)
static java.lang.UnsupportedOperationException
notGenericTypeDefinition(Type<?> type)
static java.lang.RuntimeException
notInExceptionBlock()
static java.lang.RuntimeException
onlyAnnotationMethodsCanHaveDefaultValues()
static java.lang.RuntimeException
packageAccessRequired()
static java.lang.IllegalArgumentException
parameterCountMismatch()
static java.lang.IllegalArgumentException
staticInstanceMethodMismatch()
static java.lang.RuntimeException
typeCannotHaveItselfAsBaseType()
static java.lang.RuntimeException
typeCannotHaveItselfAsInterface()
static java.lang.RuntimeException
typeHasBeenCreated()
static java.lang.RuntimeException
typeHasNotBeenCreated()
static java.lang.RuntimeException
typeIsGeneric()
static java.lang.IllegalArgumentException
typeMustBeArray()
static java.lang.RuntimeException
typeMustBeInterface()
static java.lang.RuntimeException
typeMustBeInterface(Type<?> type)
static java.lang.RuntimeException
typeNameTooLong()
static java.lang.RuntimeException
typeNotAnAnnotation(Type<? extends java.lang.annotation.Annotation> type)
static java.lang.RuntimeException
typeNotCreated()
static java.lang.RuntimeException
unclosedExceptionBlock()
static java.lang.RuntimeException
unmatchedLocal()
static java.lang.RuntimeException
valueMustBeConstant()
-
-
-
Method Detail
-
bytecodeGeneratorNotOwnedByMethodBuilder
public static java.lang.RuntimeException bytecodeGeneratorNotOwnedByMethodBuilder()
-
typeHasBeenCreated
public static java.lang.RuntimeException typeHasBeenCreated()
-
typeHasNotBeenCreated
public static java.lang.RuntimeException typeHasNotBeenCreated()
-
typeIsGeneric
public static java.lang.RuntimeException typeIsGeneric()
-
memberContainsUnboundGenericParameters
public static java.lang.IllegalArgumentException memberContainsUnboundGenericParameters(MemberInfo member)
-
methodIsGeneric
public static java.lang.RuntimeException methodIsGeneric()
-
methodIsFinished
public static java.lang.RuntimeException methodIsFinished()
-
unmatchedLocal
public static java.lang.RuntimeException unmatchedLocal()
-
badLabel
public static java.lang.RuntimeException badLabel()
-
badLabelContent
public static java.lang.RuntimeException badLabelContent()
-
labelAlreadyDefined
public static java.lang.RuntimeException labelAlreadyDefined()
-
unclosedExceptionBlock
public static java.lang.RuntimeException unclosedExceptionBlock()
-
illegalTwoByteBranch
public static java.lang.RuntimeException illegalTwoByteBranch(int position, int address)
-
invokeOpCodeRequired
public static java.lang.RuntimeException invokeOpCodeRequired()
-
invalidType
public static java.lang.RuntimeException invalidType(Type<?> type)
-
constructorNotFound
public static java.lang.RuntimeException constructorNotFound()
-
cannotInstantiateUnboundGenericType
public static java.lang.RuntimeException cannotInstantiateUnboundGenericType(Type<?> type)
-
boxFailure
public static java.lang.RuntimeException boxFailure(Type<?> type)
-
cannotConvertToOrFromVoid
public static java.lang.RuntimeException cannotConvertToOrFromVoid()
-
invalidCast
public static java.lang.RuntimeException invalidCast(Type<?> sourceType, Type<?> targetType)
-
newArrayDimensionsOutOfRange
public static java.lang.RuntimeException newArrayDimensionsOutOfRange(Type<?> arrayType, int dimensions)
-
argumentIndexOutOfRange
public static java.lang.RuntimeException argumentIndexOutOfRange(MethodBase method, int index)
-
cannotLoadThisForStaticMethod
public static java.lang.RuntimeException cannotLoadThisForStaticMethod()
-
invalidBranchOpCode
public static java.lang.RuntimeException invalidBranchOpCode(OpCode opCode)
-
cannotModifyTypeAfterCreateType
public static java.lang.RuntimeException cannotModifyTypeAfterCreateType()
-
typeNameTooLong
public static java.lang.RuntimeException typeNameTooLong()
-
packageAccessRequired
public static java.lang.RuntimeException packageAccessRequired()
-
baseTypeCannotBeInterface
public static java.lang.RuntimeException baseTypeCannotBeInterface()
-
baseTypeCannotBeGenericParameter
public static java.lang.RuntimeException baseTypeCannotBeGenericParameter()
-
typeCannotHaveItselfAsBaseType
public static java.lang.RuntimeException typeCannotHaveItselfAsBaseType()
-
typeCannotHaveItselfAsInterface
public static java.lang.RuntimeException typeCannotHaveItselfAsInterface()
-
typeMustBeInterface
public static java.lang.RuntimeException typeMustBeInterface()
-
typeMustBeInterface
public static java.lang.RuntimeException typeMustBeInterface(Type<?> type)
-
typeNotCreated
public static java.lang.RuntimeException typeNotCreated()
-
cannotModifyMethodAfterCallingGetGenerator
public static java.lang.RuntimeException cannotModifyMethodAfterCallingGetGenerator()
-
genericParametersAlreadySet
public static java.lang.RuntimeException genericParametersAlreadySet()
-
methodHasOpenLocalScope
public static java.lang.RuntimeException methodHasOpenLocalScope()
-
abstractMethodDeclaredOnNonAbstractType
public static java.lang.RuntimeException abstractMethodDeclaredOnNonAbstractType()
-
abstractMethodCannotHaveBody
public static java.lang.RuntimeException abstractMethodCannotHaveBody()
-
methodHasEmptyBody
public static java.lang.RuntimeException methodHasEmptyBody(MethodBuilder method)
-
notInExceptionBlock
public static java.lang.RuntimeException notInExceptionBlock()
-
badExceptionCodeGenerated
public static java.lang.RuntimeException badExceptionCodeGenerated()
-
catchRequiresThrowableType
public static java.lang.RuntimeException catchRequiresThrowableType()
-
couldNotLoadUnsafeClassInstance
public static java.lang.RuntimeException couldNotLoadUnsafeClassInstance()
-
valueMustBeConstant
public static java.lang.RuntimeException valueMustBeConstant()
-
annotationRequiresValue
public static java.lang.RuntimeException annotationRequiresValue(Type<? extends java.lang.annotation.Annotation> annotationType)
-
attributeValueCountMismatch
public static java.lang.RuntimeException attributeValueCountMismatch()
-
attributeValueIncompatible
public static java.lang.RuntimeException attributeValueIncompatible(Type<?> attributeType, Type<?> valueType)
-
annotationHasNoDefaultAttribute
public static java.lang.RuntimeException annotationHasNoDefaultAttribute()
-
typeNotAnAnnotation
public static java.lang.RuntimeException typeNotAnAnnotation(Type<? extends java.lang.annotation.Annotation> type)
-
classGenerationFailed
public static java.lang.RuntimeException classGenerationFailed(TypeBuilder<?> t, java.lang.Throwable e)
-
onlyAnnotationMethodsCanHaveDefaultValues
public static java.lang.RuntimeException onlyAnnotationMethodsCanHaveDefaultValues()
-
genericTypeDefinitionRequired
public static java.lang.RuntimeException genericTypeDefinitionRequired()
-
interfacesCannotDefineConstructors
public static java.lang.RuntimeException interfacesCannotDefineConstructors()
-
baseTypeHasNoDefaultConstructor
public static java.lang.RuntimeException baseTypeHasNoDefaultConstructor(Type<?> baseType)
-
noCodeGeneratorForDefaultConstructor
public static java.lang.RuntimeException noCodeGeneratorForDefaultConstructor()
-
typeMustBeArray
public static java.lang.IllegalArgumentException typeMustBeArray()
-
branchAddressTooLarge
public static java.lang.IllegalStateException branchAddressTooLarge()
-
checkedExceptionUnhandled
public static java.lang.IllegalStateException checkedExceptionUnhandled(Type<?> exceptionType)
-
methodBuilderBelongsToAnotherType
public static java.lang.IllegalArgumentException methodBuilderBelongsToAnotherType()
-
parameterCountMismatch
public static java.lang.IllegalArgumentException parameterCountMismatch()
-
incompatibleReturnTypes
public static java.lang.IllegalArgumentException incompatibleReturnTypes()
-
methodNameMismatch
public static java.lang.IllegalArgumentException methodNameMismatch()
-
staticInstanceMethodMismatch
public static java.lang.IllegalArgumentException staticInstanceMethodMismatch()
-
cannotOverrideFinalMethod
public static java.lang.IllegalArgumentException cannotOverrideFinalMethod()
-
codeGenerationException
public static java.lang.IllegalStateException codeGenerationException(java.lang.Throwable t)
-
notGenericType
public static java.lang.RuntimeException notGenericType(Type<?> type)
-
notGenericTypeDefinition
public static java.lang.UnsupportedOperationException notGenericTypeDefinition(Type<?> type)
-
defineGenericParametersAlreadyCalled
public static java.lang.IllegalStateException defineGenericParametersAlreadyCalled()
-
argumentMustBeTypeBuilder
public static java.lang.IllegalArgumentException argumentMustBeTypeBuilder()
-
cannotModifyFieldAfterTypeCreated
public static java.lang.IllegalStateException cannotModifyFieldAfterTypeCreated()
-
-