Uses of Interface
io.quarkus.gizmo2.creator.BlockCreator
Packages that use BlockCreator
-
Uses of BlockCreator in io.quarkus.gizmo2
Methods in io.quarkus.gizmo2 that return BlockCreatorModifier and TypeMethodDescriptionLocalVar.block()Returns the block that owns this local variable. -
Uses of BlockCreator in io.quarkus.gizmo2.creator
Methods in io.quarkus.gizmo2.creator with parameters of type BlockCreatorModifier and TypeMethodDescriptionvoidBlockCreator.break_(BlockCreator outer) Exit the given enclosing block.default booleanBlockCreator.contains(BlockCreator other) Returns true if this block contains the given block, or false if it does not.voidBlockCreator.continue_(BlockCreator loop) Resume the next iteration of an enclosing loop.voidBlockCreator.goto_(BlockCreator outer) Jump to the start of the given enclosing block.booleanBlockCreator.isContainedBy(BlockCreator other) Returns true if this block is contained by the given block, or false if it is not.Method parameters in io.quarkus.gizmo2.creator with type arguments of type BlockCreatorModifier and TypeMethodDescriptionvoidBlockCreator.assert_(Consumer<BlockCreator> assertion, String message) Produce an assertion.voidBlockCreator.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.voidBlockCreator.autoClose(Var resource, Consumer<BlockCreator> body) Open a resource and run the given body with the resource, automatically closing it at the end.voidBlockCreator.block(Consumer<BlockCreator> nested) Create a nested block.default ExprBlockCreator.blockExpr(Class<?> type, Consumer<BlockCreator> nested) Create a block expression of giventype.BlockCreator.blockExpr(ClassDesc type, Consumer<BlockCreator> nested) Create a block expression of giventype.voidBodyCreator.body(Consumer<BlockCreator> builder) Build the body of this executable code.voidCaseCreator.body(Consumer<BlockCreator> builder) voidLambdaCreator.body(Consumer<BlockCreator> builder) Build the body of the lambda.voidTryCreator.body(Consumer<BlockCreator> builder) Build the body of thetrystatement.default voidSwitchCreator.caseOf(int val, Consumer<BlockCreator> body) Add a simple switch case.default voidSwitchCreator.caseOf(long val, Consumer<BlockCreator> body) Add a simple switch case.default voidSwitchCreator.caseOf(Const val, Consumer<BlockCreator> body) Add a simple switch case.default voidSwitchCreator.caseOf(Constable val, Consumer<BlockCreator> body) Add a simple switch case.default voidSwitchCreator.caseOf(ConstantDesc val, Consumer<BlockCreator> body) Add a simple switch case.default voidSwitchCreator.caseOf(String val, Consumer<BlockCreator> body) Add a simple switch case.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.default ExprBlockCreator.cond(Class<?> type, Expr cond, Consumer<BlockCreator> ifTrue, Consumer<BlockCreator> ifFalse) Evaluate a conditional expression (the?:operator).BlockCreator.cond(ClassDesc type, Expr cond, Consumer<BlockCreator> ifTrue, Consumer<BlockCreator> ifFalse) Evaluate a conditional expression (the?:operator).voidSwitchCreator.default_(Consumer<BlockCreator> body) Add the default case.voidBlockCreator.doWhile(Consumer<BlockCreator> body, Consumer<BlockCreator> cond) Enter ado-whileloop.voidTryCreator.finally_(Consumer<BlockCreator> builder) Add thefinallyclause.voidBlockCreator.forEach(Expr items, BiConsumer<BlockCreator, ? super LocalVar> builder) Build a for-each loop over an array or collection.voidBlockCreator.if_(Expr cond, Consumer<BlockCreator> whenTrue) A generalifconditional.voidBlockCreator.ifElse(Expr cond, Consumer<BlockCreator> whenTrue, Consumer<BlockCreator> whenFalse) A generalif-elseconditional.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.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.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.voidBlockCreator.ifNot(Expr cond, Consumer<BlockCreator> whenFalse) An invertedifconditional.default voidBlockCreator.ifNotInstanceOf(Expr obj, Class<?> type, Consumer<BlockCreator> ifFalse) If the given object is not an instance of the given type, then execute the given block.voidBlockCreator.ifNotInstanceOf(Expr obj, ClassDesc type, Consumer<BlockCreator> ifFalse) If the given object is not an instance of the given type, then execute the given block.default voidBlockCreator.ifNotNull(Expr obj, Consumer<BlockCreator> whenTrue) Anif (obj != null)conditional.default voidBlockCreator.ifNull(Expr obj, Consumer<BlockCreator> whenTrue) Anif (obj == null)conditional.voidClassCreator.instanceInitializer(Consumer<BlockCreator> builder) Add a general instance initializer block to the type.voidBlockCreator.locked(Expr jucLock, Consumer<BlockCreator> body) Create a block which holds aLock.default ExprBlockCreator.logicalAnd(Expr cond, Consumer<BlockCreator> other) Perform a short-circuiting logical-AND operation (the&&operator).default ExprBlockCreator.logicalOr(Expr cond, Consumer<BlockCreator> other) Perform a short-circuiting logical-OR operation (the||operator).voidBlockCreator.loop(Consumer<BlockCreator> body) Enter a loop.voidFieldCreator.setInitializer(Consumer<BlockCreator> init) Provide an initializer for this field which will be concatenated with the class or instance initializer(s).voidTypeCreator.staticInitializer(Consumer<BlockCreator> builder) Add a general static initializer block to the type.voidBlockCreator.synchronized_(Expr monitor, Consumer<BlockCreator> body) Create asynchronizedblock.voidBlockCreator.while_(Consumer<BlockCreator> cond, Consumer<BlockCreator> body) Enter awhileloop. -
Uses of BlockCreator in io.quarkus.gizmo2.creator.ops
Fields in io.quarkus.gizmo2.creator.ops declared as BlockCreatorModifier and TypeFieldDescriptionprotected final BlockCreatorObjectOps.bcThe block creator (notnull).Constructors in io.quarkus.gizmo2.creator.ops with parameters of type BlockCreatorModifierConstructorDescriptionClassOps(BlockCreator bc, Expr clazz) Construct a new instance.CollectionOps(BlockCreator bc, Expr obj) Construct a new instance.IteratorOps(BlockCreator bc, Expr obj) Construct a new instance.ListOps(BlockCreator bc, Expr obj) Construct a new instance.MapOps(BlockCreator bc, Expr obj) Construct a new instance.ObjectOps(BlockCreator bc, Expr obj) Construct a new instance.OptionalOps(BlockCreator bc, Expr obj) Construct a new instance.SetOps(BlockCreator bc, Expr obj) Construct a new instance.StringOps(BlockCreator bc, Expr obj) Construct a new instance.ThrowableOps(BlockCreator bc, Expr obj) Construct a new instance.