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 privateError()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.RuntimeExceptionabstractMethodCannotHaveBody()static java.lang.RuntimeExceptionabstractMethodDeclaredOnNonAbstractType()static java.lang.RuntimeExceptionannotationHasNoDefaultAttribute()static java.lang.RuntimeExceptionannotationRequiresValue(Type<? extends java.lang.annotation.Annotation> annotationType)static java.lang.RuntimeExceptionargumentIndexOutOfRange(MethodBase method, int index)static java.lang.IllegalArgumentExceptionargumentMustBeTypeBuilder()static java.lang.RuntimeExceptionattributeValueCountMismatch()static java.lang.RuntimeExceptionattributeValueIncompatible(Type<?> attributeType, Type<?> valueType)static java.lang.RuntimeExceptionbadExceptionCodeGenerated()static java.lang.RuntimeExceptionbadLabel()static java.lang.RuntimeExceptionbadLabelContent()static java.lang.RuntimeExceptionbaseTypeCannotBeGenericParameter()static java.lang.RuntimeExceptionbaseTypeCannotBeInterface()static java.lang.RuntimeExceptionbaseTypeHasNoDefaultConstructor(Type<?> baseType)static java.lang.RuntimeExceptionboxFailure(Type<?> type)static java.lang.IllegalStateExceptionbranchAddressTooLarge()static java.lang.RuntimeExceptionbytecodeGeneratorNotOwnedByMethodBuilder()static java.lang.RuntimeExceptioncannotConvertToOrFromVoid()static java.lang.RuntimeExceptioncannotInstantiateUnboundGenericType(Type<?> type)static java.lang.RuntimeExceptioncannotLoadThisForStaticMethod()static java.lang.IllegalStateExceptioncannotModifyFieldAfterTypeCreated()static java.lang.RuntimeExceptioncannotModifyMethodAfterCallingGetGenerator()static java.lang.RuntimeExceptioncannotModifyTypeAfterCreateType()static java.lang.IllegalArgumentExceptioncannotOverrideFinalMethod()static java.lang.RuntimeExceptioncatchRequiresThrowableType()static java.lang.IllegalStateExceptioncheckedExceptionUnhandled(Type<?> exceptionType)static java.lang.RuntimeExceptionclassGenerationFailed(TypeBuilder<?> t, java.lang.Throwable e)static java.lang.IllegalStateExceptioncodeGenerationException(java.lang.Throwable t)static java.lang.RuntimeExceptionconstructorNotFound()static java.lang.RuntimeExceptioncouldNotLoadUnsafeClassInstance()static java.lang.IllegalStateExceptiondefineGenericParametersAlreadyCalled()static java.lang.RuntimeExceptiongenericParametersAlreadySet()static java.lang.RuntimeExceptiongenericTypeDefinitionRequired()static java.lang.RuntimeExceptionillegalTwoByteBranch(int position, int address)static java.lang.IllegalArgumentExceptionincompatibleReturnTypes()static java.lang.RuntimeExceptioninterfacesCannotDefineConstructors()static java.lang.RuntimeExceptioninvalidBranchOpCode(OpCode opCode)static java.lang.RuntimeExceptioninvalidCast(Type<?> sourceType, Type<?> targetType)static java.lang.RuntimeExceptioninvalidType(Type<?> type)static java.lang.RuntimeExceptioninvokeOpCodeRequired()static java.lang.RuntimeExceptionlabelAlreadyDefined()static java.lang.IllegalArgumentExceptionmemberContainsUnboundGenericParameters(MemberInfo member)static java.lang.IllegalArgumentExceptionmethodBuilderBelongsToAnotherType()static java.lang.RuntimeExceptionmethodHasEmptyBody(MethodBuilder method)static java.lang.RuntimeExceptionmethodHasOpenLocalScope()static java.lang.RuntimeExceptionmethodIsFinished()static java.lang.RuntimeExceptionmethodIsGeneric()static java.lang.IllegalArgumentExceptionmethodNameMismatch()static java.lang.RuntimeExceptionnewArrayDimensionsOutOfRange(Type<?> arrayType, int dimensions)static java.lang.RuntimeExceptionnoCodeGeneratorForDefaultConstructor()static java.lang.RuntimeExceptionnotGenericType(Type<?> type)static java.lang.UnsupportedOperationExceptionnotGenericTypeDefinition(Type<?> type)static java.lang.RuntimeExceptionnotInExceptionBlock()static java.lang.RuntimeExceptiononlyAnnotationMethodsCanHaveDefaultValues()static java.lang.RuntimeExceptionpackageAccessRequired()static java.lang.IllegalArgumentExceptionparameterCountMismatch()static java.lang.IllegalArgumentExceptionstaticInstanceMethodMismatch()static java.lang.RuntimeExceptiontypeCannotHaveItselfAsBaseType()static java.lang.RuntimeExceptiontypeCannotHaveItselfAsInterface()static java.lang.RuntimeExceptiontypeHasBeenCreated()static java.lang.RuntimeExceptiontypeHasNotBeenCreated()static java.lang.RuntimeExceptiontypeIsGeneric()static java.lang.IllegalArgumentExceptiontypeMustBeArray()static java.lang.RuntimeExceptiontypeMustBeInterface()static java.lang.RuntimeExceptiontypeMustBeInterface(Type<?> type)static java.lang.RuntimeExceptiontypeNameTooLong()static java.lang.RuntimeExceptiontypeNotAnAnnotation(Type<? extends java.lang.annotation.Annotation> type)static java.lang.RuntimeExceptiontypeNotCreated()static java.lang.RuntimeExceptionunclosedExceptionBlock()static java.lang.RuntimeExceptionunmatchedLocal()static java.lang.RuntimeExceptionvalueMustBeConstant()
-
-
-
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()
-
-