Uses of Interface
io.quarkus.gizmo.BytecodeCreator
-
-
Uses of BytecodeCreator in io.quarkus.gizmo
Subinterfaces of BytecodeCreator in io.quarkus.gizmo Modifier and Type Interface Description interfaceCatchBlockCreatorA bytecode creator that represents a catch blockinterfaceMethodCreatorA class that builds the body of a method without needing to understand java bytecode.interfaceTryBlockAtryblock.Classes in io.quarkus.gizmo that implement BytecodeCreator Modifier and Type Class Description (package private) classAbstractSwitch<T>(package private) classBytecodeCreatorImpl(package private) classCatchBlockCreatorImpl(package private) classClassTransfromerMethodCreatorImplprivate classClassTransfromerMethodCreatorImpl.ClassTransformerEnumSwitchImpl<E extends java.lang.Enum<E>>(package private) classEnumSwitchImpl<E extends java.lang.Enum<E>>(package private) classForEachLoopImplprivate static classFunctionCreatorImpl.FunctionBytecodeCreatorWe need out own BytecodeCreator that captures all ResultHandles from the parent object that are passed in(package private) classIfThenElseImpl(package private) classLoopImpl(package private) classMethodCreatorImpl(package private) classStringSwitchImpl(package private) classTryBlockImpl(package private) classWhileLoopImplFields in io.quarkus.gizmo declared as BytecodeCreator Modifier and Type Field Description private BytecodeCreatorGizmo.StringBuilderGenerator. bytecodeprivate BytecodeCreatorBranchResultImpl. falseBranchprotected BytecodeCreatorGizmo.StaticInvocationGenerator. targetprivate BytecodeCreatorBranchResultImpl. trueBranchFields in io.quarkus.gizmo with type parameters of type BytecodeCreator Modifier and Type Field Description private java.util.function.BiFunction<BytecodeCreator,ResultHandle[],ResultHandle>Gizmo.CustomInvocationGenerator. funMethods in io.quarkus.gizmo that return BytecodeCreator Modifier and Type Method Description BytecodeCreatorForEachLoop. block()The block is executed for each element.BytecodeCreatorLoop. block()The block inside the loop.BytecodeCreatorLoopImpl. block()BytecodeCreatorWhileLoop. block()The block is executed until the condition evaluates to false.BytecodeCreatorBytecodeCreator. createScope()Create a nested scope.BytecodeCreatorBytecodeCreatorImpl. createScope()BytecodeCreatorIfThenElse. elseIf(ResultHandle condition)Creates a new else-if statement.BytecodeCreatorIfThenElse. elseIf(java.util.function.Function<BytecodeCreator,ResultHandle> test)Creates a new else-if statement.BytecodeCreatorIfThenElseImpl. elseIf(ResultHandle value)BytecodeCreatorIfThenElseImpl. elseIf(java.util.function.Function<BytecodeCreator,ResultHandle> test)BytecodeCreatorIfThenElse. elseThen()This block is executed if no condition result handle was evaluated astrue.BytecodeCreatorIfThenElseImpl. elseThen()BytecodeCreatorBranchResult. falseBranch()BytecodeCreatorBranchResultImpl. falseBranch()BytecodeCreatorFunctionCreator. getBytecode()BytecodeCreatorIfThenElse. then()This block is executed if the result handle that was passed toifThenElse(ResultHandle)is evaluated astrue.BytecodeCreatorIfThenElseImpl. then()BytecodeCreatorBranchResult. trueBranch()BytecodeCreatorBranchResultImpl. trueBranch()Methods in io.quarkus.gizmo with parameters of type BytecodeCreator Modifier and Type Method Description voidBytecodeCreator. breakScope(BytecodeCreator scope)Go to the end of the given scope.voidBytecodeCreatorImpl. breakScope(BytecodeCreator scope)voidFunctionCreatorImpl.FunctionBytecodeCreator. breakScope(BytecodeCreator scope)static Gizmo.JdkCollectionGizmo. collectionOperations(BytecodeCreator target)ResultHandle size = Gizmo.collectionOperations(methodBytecode).instance(myList).size();voidBytecodeCreator. continueScope(BytecodeCreator scope)Go to the top of the given scope.voidBytecodeCreatorImpl. continueScope(BytecodeCreator scope)voidFunctionCreatorImpl.FunctionBytecodeCreator. continueScope(BytecodeCreator scope)voidAbstractSwitch. doBreak(BytecodeCreator creator)voidLoop. doBreak(BytecodeCreator creator)Writes bytecode into the providedBytecodeCreatorto make it exit the loop, effectively issuing a Java 'break' statement.voidLoopImpl. doBreak(BytecodeCreator creator)voidSwitch. doBreak(BytecodeCreator creator)Writes bytecode into the providedBytecodeCreatorto make it exit the switch, effectively issuing a Java 'break' statement.voidLoop. doContinue(BytecodeCreator creator)Writes bytecode into the providedBytecodeCreatorto make it jump back to the start of the loop, effectively issuing a Java 'continue' statement.voidLoopImpl. doContinue(BytecodeCreator creator)static ResultHandleGizmo. equals(BytecodeCreator target, ResultHandle obj1, ResultHandle obj2)Generates the bytecode that callsObject.equals(Object).protected ResultHandleEnumSwitchImpl. generateSwitchTable(java.lang.Class<E> enumClass, BytecodeCreator bytecodeCreator, MethodDescriptor enumOrdinal)booleanBytecodeCreator. isScopedWithin(BytecodeCreator other)Determine if this bytecode creator is scoped within the given bytecode creator.booleanBytecodeCreatorImpl. isScopedWithin(BytecodeCreator other)static Gizmo.JdkIterableGizmo. iterableOperations(BytecodeCreator target)ResultHandle iterator = Gizmo.iterableOperations(methodBytecode).instance(myCollection).iterator();static Gizmo.JdkIteratorGizmo. iteratorOperations(BytecodeCreator target)ResultHandle hasNext = Gizmo.iteratorOperations(methodBytecode).instance(myIterator).hasNext();(package private) voidBytecodeCreatorImpl. jumpTo(BytecodeCreator scope)Go the the top of the given scope.static Gizmo.JdkListGizmo. listOperations(BytecodeCreator target)ResultHandle firstElement = Gizmo.listOperations(methodBytecode).instance(myList).get(1);static Gizmo.JdkMapGizmo. mapOperations(BytecodeCreator target)ResultHandle mapping = Gizmo.mapOperations(methodBytecode).instance(myMap).get(myKey);static ResultHandleGizmo. newArrayList(BytecodeCreator target)Generates the bytecode that calls the no-argsArrayListconstructor.static ResultHandleGizmo. newArrayList(BytecodeCreator target, int initialCapacity)Generates the bytecode that calls theArrayListconstructor with the specified initial capacity.static ResultHandleGizmo. newHashMap(BytecodeCreator target)Generates the bytecode that calls the no-argsHashMapconstructor.static ResultHandleGizmo. newHashSet(BytecodeCreator target)Generates the bytecode that calls the no-argsHashSetconstructor.static Gizmo.StringBuilderGeneratorGizmo. newStringBuilder(BytecodeCreator target)Creates aStringBuildergenerator that helps to generate a chain ofappendcalls and a finaltoStringcall.static Gizmo.StringBuilderGeneratorGizmo. newStringBuilder(BytecodeCreator target, int capacity)Creates aStringBuildergenerator that helps to generate a chain ofappendcalls and a finaltoStringcall.static Gizmo.JdkOptionalGizmo. optionalOperations(BytecodeCreator target)ResultHandle optionalFoo = Gizmo.optionalOperations(methodBytecode).ofNullable(foo);(package private) ResultHandle[]BytecodeCreatorImpl. resolve(BytecodeCreator creator, ResultHandle... handles)(package private) ResultHandleBytecodeCreatorImpl. resolve(ResultHandle handle, BytecodeCreator creator)(package private) ResultHandle[]FunctionCreatorImpl.FunctionBytecodeCreator. resolve(BytecodeCreator owner, ResultHandle... handle)(package private) ResultHandleFunctionCreatorImpl.FunctionBytecodeCreator. resolve(ResultHandle handle, BytecodeCreator invoker)Turns a parent result handle into a local result handle.(package private) ResultHandle[]MethodCreatorImpl. resolve(BytecodeCreator owner, ResultHandle... handles)(package private) ResultHandleMethodCreatorImpl. resolve(ResultHandle handle, BytecodeCreator creator)static Gizmo.JdkSetGizmo. setOperations(BytecodeCreator target)ResultHandle set = Gizmo.setOperations(methodBytecode).of(element);(package private) voidGizmo.StaticInvocationGenerator. setTarget(BytecodeCreator target)static voidGizmo. systemErrPrintln(BytecodeCreator target, ResultHandle obj)Generates the bytecode that callsSystem.err.println(obj).static voidGizmo. systemOutPrintln(BytecodeCreator target, ResultHandle obj)Generates the bytecode that callsSystem.out.println(obj).static ResultHandleGizmo. toString(BytecodeCreator target, ResultHandle obj)Generates the bytecode that callsObject.toString().Method parameters in io.quarkus.gizmo with type arguments of type BytecodeCreator Modifier and Type Method Description private voidEnumSwitchImpl. addCaseBlock(E value, java.util.function.Consumer<BytecodeCreator> caseBlockConsumer)private voidStringSwitchImpl. addCaseBlock(java.lang.String value, java.util.function.Consumer<BytecodeCreator> blockConsumer)voidEnumSwitchImpl. caseOf(E value, java.util.function.Consumer<BytecodeCreator> caseBlockConsumer)voidEnumSwitchImpl. caseOf(java.util.List<E> values, java.util.function.Consumer<BytecodeCreator> caseBlockConsumer)voidStringSwitchImpl. caseOf(java.lang.String value, java.util.function.Consumer<BytecodeCreator> caseBlockConsumer)voidStringSwitchImpl. caseOf(java.util.List<java.lang.String> values, java.util.function.Consumer<BytecodeCreator> caseBlockConsumer)voidSwitch. caseOf(java.util.List<T> values, java.util.function.Consumer<BytecodeCreator> caseBlockConsumer)Adds multiple case labels for a single block.voidSwitch. caseOf(T value, java.util.function.Consumer<BytecodeCreator> caseBlockConsumer)Adds a case block.voidAbstractSwitch. defaultCase(java.util.function.Consumer<BytecodeCreator> defatultBlockConsumer)voidSwitch. defaultCase(java.util.function.Consumer<BytecodeCreator> defatultBlockConsumer)Adds the default block.BytecodeCreatorIfThenElse. elseIf(java.util.function.Function<BytecodeCreator,ResultHandle> test)Creates a new else-if statement.BytecodeCreatorIfThenElseImpl. elseIf(java.util.function.Function<BytecodeCreator,ResultHandle> test)WhileLoopBytecodeCreator. whileLoop(java.util.function.Function<BytecodeCreator,BranchResult> conditionFun)Create a new while loop statement.WhileLoopBytecodeCreatorImpl. whileLoop(java.util.function.Function<BytecodeCreator,BranchResult> conditionFun)Constructors in io.quarkus.gizmo with parameters of type BytecodeCreator Constructor Description BranchResultImpl(BytecodeCreator trueBranch, BytecodeCreator falseBranch)CustomInvocationGenerator(BytecodeCreator target, java.util.function.BiFunction<BytecodeCreator,ResultHandle[],ResultHandle> fun)JdkCollection(BytecodeCreator target)JdkIterable(BytecodeCreator target)JdkIterator(BytecodeCreator target)JdkList(BytecodeCreator target)JdkMap(BytecodeCreator target)JdkOptional(BytecodeCreator target)JdkSet(BytecodeCreator target)StaticInvocationGenerator(BytecodeCreator target)StringBuilderGenerator(BytecodeCreator bytecode)StringBuilderGenerator(BytecodeCreator bytecode, int capacity)Constructor parameters in io.quarkus.gizmo with type arguments of type BytecodeCreator Constructor Description CustomInvocationGenerator(BytecodeCreator target, java.util.function.BiFunction<BytecodeCreator,ResultHandle[],ResultHandle> fun)WhileLoopImpl(BytecodeCreatorImpl enclosing, java.util.function.Function<BytecodeCreator,BranchResult> conditionFun)
-