Class Error


  • final class Error
    extends java.lang.Object
    • Constructor Detail

      • Error

        private Error()
    • 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()