Uses of Interface
io.quarkus.gizmo2.LocalVar
Packages that use LocalVar
-
Uses of LocalVar in io.quarkus.gizmo2.creator
Methods in io.quarkus.gizmo2.creator that return LocalVarModifier and TypeMethodDescriptiondefault LocalVarDeclare a local variable, which is initialized to the given variable's current value.default LocalVarDeclare a local variable with givenname, which is initialized to the givenvalue.default LocalVarDeclare a local variable with givenname, which is initialized to the givenvalue.default LocalVarDeclare a local variable with givenname, which is initialized to the givenvalue.default LocalVarDeclare a local variable with givenname, which is initialized to the givenvalue.default LocalVarDeclare a local variable with givenname, which is initialized to the givenvalue.default LocalVarDeclare a local variable with givenname, which is initialized to the givenvalue.BlockCreator.localVar(String name, GenericType type, Expr value) Declare a local variable with givennameandtype, which is initialized to the givenvalue.default LocalVarDeclare a local variable with givennameandtype, which is initialized to the givenvalue.Declare a local variable with givennameandtype, which is initialized to the givenvalue.default LocalVarDeclare a local variable with givenname, which is initialized to the givenvalue.Methods in io.quarkus.gizmo2.creator with parameters of type LocalVarModifier and TypeMethodDescriptiondefault booleanReturns true if this block contains the block that owns the given variable, or false if it does not.Method parameters in io.quarkus.gizmo2.creator with type arguments of type LocalVarModifier and TypeMethodDescriptionvoidBlockCreator.autoClose(Expr resource, BiConsumer<BlockCreator, ? super LocalVar> body) Open a resource and run the given body with the resource, automatically closing it at the end.voidTryCreator.catch_(Class<? extends Throwable> type, String caughtName, BiConsumer<BlockCreator, ? super LocalVar> builder) Add a catch clause which receives the thrown exception.default voidTryCreator.catch_(ClassDesc type, String caughtName, BiConsumer<BlockCreator, ? super LocalVar> builder) Add a catch clause which receives the thrown exception.voidTryCreator.catch_(ClassDesc superType, Set<ClassDesc> types, String caughtName, BiConsumer<BlockCreator, ? super LocalVar> builder) Add a catch clause for multiple throwable types which receives the thrown exception.voidTryCreator.catch_(Set<Class<? extends Throwable>> types, String caughtName, BiConsumer<BlockCreator, ? super LocalVar> builder) Add a catch clause for multiple throwable types which receives the thrown exception.voidBlockCreator.forEach(Expr items, BiConsumer<BlockCreator, ? super LocalVar> builder) Build a for-each loop over an array or collection.default voidBlockCreator.ifInstanceOf(Expr obj, Class<?> type, BiConsumer<BlockCreator, ? super LocalVar> ifTrue) If the given object is an instance of the given type, then execute the block with the narrowed object.voidBlockCreator.ifInstanceOf(Expr obj, ClassDesc type, BiConsumer<BlockCreator, ? super LocalVar> ifTrue) If the given object is an instance of the given type, then execute the block with the narrowed object.default voidBlockCreator.ifInstanceOfElse(Expr obj, Class<?> type, BiConsumer<BlockCreator, ? super LocalVar> ifTrue, Consumer<BlockCreator> ifFalse) If the given object is an instance of the given type, then execute the first block with the narrowed object, otherwise execute the other block.voidBlockCreator.ifInstanceOfElse(Expr obj, ClassDesc type, BiConsumer<BlockCreator, ? super LocalVar> ifTrue, Consumer<BlockCreator> ifFalse) If the given object is an instance of the given type, then execute the first block with the narrowed object, otherwise execute the other block.