Uses of Interface
io.quarkus.gizmo2.Expr
Packages that use Expr
-
Uses of Expr in io.quarkus.gizmo2
Subinterfaces of Expr in io.quarkus.gizmo2Modifier and TypeInterfaceDescriptioninterfaceAn expression that can be the target of an assignment.interfaceAn expression which wraps aConstantDesc.interfaceA variable corresponding to a field.interfaceAn instance field variable.interfaceA local variable.interfaceA variable representing a method call parameter.interfaceA variable corresponding to a static field.interfaceThe special expression forthis, which is only valid from instance methods and constructors.interfaceAn assignable expression that is stored in a variable.Methods in io.quarkus.gizmo2 that return ExprMethods in io.quarkus.gizmo2 with parameters of type ExprModifier and TypeMethodDescriptionReturns an assignable for an element of this array. -
Uses of Expr in io.quarkus.gizmo2.creator
Methods in io.quarkus.gizmo2.creator that return ExprModifier and TypeMethodDescriptiondefault ExprThe arithmetic addition operator.default ExprThe arithmetic addition operator.default ExprThe arithmetic addition operator.default ExprThe arithmetic addition operator.The arithmetic addition operator.default ExprThe bitwiseandoperator.default ExprThe bitwiseandoperator.The bitwiseandoperator.BlockCreator.arrayEquals(Expr a, Expr b) Generates call to one of theArrays#equals(a, b)overloads, based on the type of the first argument, or toArrays#deepEquals(a, b)in case of multidimensional arrays.BlockCreator.arrayHashCode(Expr expr) Generates call to one of theArrays#hashCode(expr)overloads, based on the type of the argument, or toArrays#deepHashCode(expr)in case of multidimensional arrays.BlockCreator.arrayToString(Expr expr) Generates call to one of theArrays#toString(expr)overloads, based on the type of the argument, or toArrays#deepToString(expr)in case of multidimensional arrays.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.Box the given primitive value into its corresponding box type.BlockCreator.cast(Expr a, GenericType toType) Cast a value to the given type.default ExprCast a value to the given type.Cast a value to the given type.BlockCreator.classForName(Expr className) Generate a call toClass.forName(String)which uses the defining class loader of this class.The general comparison operator.The general comparison operator.The general comparison operator.default ExprBlockCreator.compareAndExchange(Assignable var, Expr expected, Expr update) BlockCreator.compareAndExchange(Assignable var, Expr expected, Expr update, MemoryOrder order) BlockCreator.compareAndSet(Assignable var, Expr expected, Expr update) Atomically sets the value ofvartoupdateif its current value is equal toexpected.BlockCreator.complement(Expr a) The bitwise complement operator.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).BlockCreator.currentThread()Returns an expression representing the current thread from the perspective of the running method body.default ExprThe arithmetic division operator.default ExprThe arithmetic division operator.default ExprThe arithmetic division operator.default ExprThe arithmetic division operator.default ExprThe arithmetic division operator.default ExprThe arithmetic division operator.default ExprThe arithmetic division operator.default ExprThe arithmetic division operator.The arithmetic division operator.default ExprThe equality operator.default ExprThe equality operator.default ExprThe equality operator.default ExprThe equality operator.The equality operator.BlockCreator.exprEquals(Expr a, Expr b) Generates call to theObjects#equals(a, b)method if at least one of the given expressions is of a reference type (boxing the other if primitive).BlockCreator.exprHashCode(Expr expr) Generates call to one of the static methods to compute a hash code of given expression.BlockCreator.exprToString(Expr expr) Generates call to one of theString#valueOf(expr)overloads, based on the type of the argument.default ExprThe greater-than-or-equals operator.default ExprThe greater-than-or-equals operator.default ExprThe greater-than-or-equals operator.default ExprThe greater-than-or-equals operator.The greater-than-or-equals operator.default ExprBlockCreator.get(Assignable var) Read a value from memory using the declared atomicity mode for the assignable.BlockCreator.get(Assignable var, MemoryOrder mode) Read a value from memory with the given atomicity mode.default ExprBlockCreator.getAndAdd(Assignable var, Expr amount) Atomically get, add, and store the value of the target assignable expression usingvolatilesemantics.BlockCreator.getAndAdd(Assignable var, Expr amount, MemoryOrder order) Atomically get, add, and store the value of the target assignable expression.default ExprBlockCreator.getAndBitwiseAnd(Assignable var, Expr other) Atomically get, bitwise-and, and store the value of the target assignable expression withvolatilesemantics.BlockCreator.getAndBitwiseAnd(Assignable var, Expr other, MemoryOrder order) Atomically get, bitwise-and, and store the value of the target assignable expression.default ExprBlockCreator.getAndBitwiseOr(Assignable var, Expr other) Atomically get, bitwise-or, and store the value of the target assignable expression withvolatilesemantics.BlockCreator.getAndBitwiseOr(Assignable var, Expr other, MemoryOrder order) Atomically get, bitwise-or, and store the value of the target assignable expression.default ExprBlockCreator.getAndBitwiseXor(Assignable var, Expr other) Atomically get, bitwise-xor, and store the value of the target assignable expression withvolatilesemantics.BlockCreator.getAndBitwiseXor(Assignable var, Expr other, MemoryOrder order) Atomically get, bitwise-xor, and store the value of the target assignable expression.default ExprBlockCreator.getAndSet(Assignable var, Expr newValue) Atomically get and set the value of the target assignable expression usingvolatilesemantics.BlockCreator.getAndSet(Assignable var, Expr newValue, MemoryOrder order) Atomically get and set the value of the target assignable expression.default ExprBlockCreator.getStaticField(FieldDesc desc) Read the value from a static field.default ExprThe greater-than operator.default ExprThe greater-than operator.default ExprThe greater-than operator.default ExprThe greater-than operator.The greater-than operator.BlockCreator.instanceOf(Expr obj, GenericType type) Test whether the given object implements the given type.default ExprBlockCreator.instanceOf(Expr obj, Class<?> type) Test whether the given object implements the given type.BlockCreator.instanceOf(Expr obj, ClassDesc type) Test whether the given object implements the given type.default ExprBlockCreator.invokeDynamic(DynamicCallSiteDesc callSiteDesc, Expr... args) BlockCreator.invokeDynamic(DynamicCallSiteDesc callSiteDesc, List<? extends Expr> args) default ExprBlockCreator.invokeInterface(MethodDesc method, Expr instance) Invoke an interface method.default ExprBlockCreator.invokeInterface(MethodDesc method, Expr instance, Expr arg0) Invoke an interface method.default ExprBlockCreator.invokeInterface(MethodDesc method, Expr instance, Expr... args) Invoke an interface method.default ExprBlockCreator.invokeInterface(MethodDesc method, Expr instance, Expr arg0, Expr arg1) Invoke an interface method.BlockCreator.invokeInterface(MethodDesc method, Expr instance, List<? extends Expr> args) Invoke an interface method.BlockCreator.invokeInterface(GenericType genericReturnType, MethodDesc method, Expr instance, List<? extends Expr> args) Invoke an interface method.default ExprBlockCreator.invokeSpecial(ConstructorDesc ctor, Expr instance) Invoke a constructor using "special" semantics.default ExprBlockCreator.invokeSpecial(ConstructorDesc ctor, Expr instance, Expr arg0) Invoke a constructor using "special" semantics.default ExprBlockCreator.invokeSpecial(ConstructorDesc ctor, Expr instance, Expr... args) Invoke a constructor using "special" semantics.default ExprBlockCreator.invokeSpecial(ConstructorDesc ctor, Expr instance, Expr arg0, Expr arg1) Invoke a constructor using "special" semantics.BlockCreator.invokeSpecial(ConstructorDesc ctor, Expr instance, List<? extends Expr> args) Invoke a constructor using "special" semantics.default ExprBlockCreator.invokeSpecial(MethodDesc method, Expr instance) Invoke a method using "special" semantics.default ExprBlockCreator.invokeSpecial(MethodDesc method, Expr instance, Expr arg0) Invoke a method using "special" semantics.default ExprBlockCreator.invokeSpecial(MethodDesc method, Expr instance, Expr... args) Invoke a method using "special" semantics.default ExprBlockCreator.invokeSpecial(MethodDesc method, Expr instance, Expr arg0, Expr arg1) Invoke a method using "special" semantics.BlockCreator.invokeSpecial(MethodDesc method, Expr instance, List<? extends Expr> args) Invoke a method using "special" semantics.BlockCreator.invokeSpecial(GenericType genericReturnType, MethodDesc method, Expr instance, List<? extends Expr> args) Invoke a method using "special" semantics.default ExprBlockCreator.invokeStatic(MethodDesc method) Invoke a static method.default ExprBlockCreator.invokeStatic(MethodDesc method, Expr arg0) Invoke a static method.default ExprBlockCreator.invokeStatic(MethodDesc method, Expr... args) Invoke a static method.default ExprBlockCreator.invokeStatic(MethodDesc method, Expr arg0, Expr arg1) Invoke a static method.BlockCreator.invokeStatic(MethodDesc method, List<? extends Expr> args) Invoke a static method.BlockCreator.invokeStatic(GenericType genericReturnType, MethodDesc method, List<? extends Expr> args) Invoke a static method.default ExprBlockCreator.invokeVirtual(MethodDesc method, Expr instance) Invoke a virtual method.default ExprBlockCreator.invokeVirtual(MethodDesc method, Expr instance, Expr arg0) Invoke a virtual method.default ExprBlockCreator.invokeVirtual(MethodDesc method, Expr instance, Expr... args) Invoke a virtual method.default ExprBlockCreator.invokeVirtual(MethodDesc method, Expr instance, Expr arg0, Expr arg1) Invoke a virtual method.BlockCreator.invokeVirtual(MethodDesc method, Expr instance, List<? extends Expr> args) Invoke a virtual method.BlockCreator.invokeVirtual(GenericType genericReturnType, MethodDesc method, Expr instance, List<? extends Expr> args) Invoke a virtual method.default Exprdefault ExprIterate the given target.BlockCreator.lambda(MethodDesc sam, ClassDesc owner, Consumer<LambdaCreator> builder) Construct a lambda instance with the given type.default ExprBlockCreator.lambda(MethodDesc sam, Consumer<LambdaCreator> builder) Construct a lambda instance with the given type.default ExprBlockCreator.lambda(Class<?> type, Consumer<LambdaCreator> builder) Construct a lambda instance with the given type.default ExprThe less-than-or-equals operator.default ExprThe less-than-or-equals operator.default ExprThe less-than-or-equals operator.default ExprThe less-than-or-equals operator.The less-than-or-equals operator.default ExprGenerate a call toList.of()or one of its variants, based on the number of arguments.default ExprGenerate a call toList.of()or one of its variants, based on the number of arguments.<T> ExprGenerate a call toList.of()or one of its variants, based on the number of arguments.default ExprBlockCreator.logicalAnd(Expr cond, Consumer<BlockCreator> other) Perform a short-circuiting logical-AND operation (the&&operator).default ExprBlockCreator.logicalNot(Expr a) Returns an expression which is the logical (boolean) opposite of the input expression.default ExprBlockCreator.logicalOr(Expr cond, Consumer<BlockCreator> other) Perform a short-circuiting logical-OR operation (the||operator).default ExprThe less-than operator.default ExprThe less-than operator.default ExprThe less-than operator.default ExprThe less-than operator.The less-than operator.Generate a call toMap.entry(Object, Object).default ExprGenerate a call toMap.of()or one of its variants, based on the number of arguments.Generate a call toMap.of()or one of its variants, based on the number of arguments.default ExprThe arithmetic multiplication operator.default ExprThe arithmetic multiplication operator.default ExprThe arithmetic multiplication operator.default ExprThe arithmetic multiplication operator.The arithmetic multiplication operator.default ExprThe inequality operator.default ExprThe inequality operator.default ExprThe inequality operator.default ExprThe inequality operator.The inequality operator.The arithmetic negation operator.default ExprBlockCreator.new_(ConstructorDesc ctor) Construct a new instance.default ExprBlockCreator.new_(ConstructorDesc ctor, Expr arg0) Construct a new instance.default ExprBlockCreator.new_(ConstructorDesc ctor, Expr... args) Construct a new instance.default ExprBlockCreator.new_(ConstructorDesc ctor, Expr arg0, Expr arg1) Construct a new instance.BlockCreator.new_(ConstructorDesc ctor, List<? extends Expr> args) Construct a new instance.default ExprBlockCreator.new_(GenericType type) Construct a new instance.BlockCreator.new_(GenericType genericType, ConstructorDesc ctor, List<? extends Expr> args) Construct a new instance.default ExprBlockCreator.new_(GenericType type, Expr arg0) Construct a new instance.default ExprBlockCreator.new_(GenericType type, Expr... args) Construct a new instance.default ExprBlockCreator.new_(GenericType type, Expr arg0, Expr arg1) Construct a new instance.default ExprBlockCreator.new_(GenericType type, List<? extends Expr> args) Construct a new instance.default ExprConstruct a new instance.default ExprConstruct a new instance.default ExprConstruct a new instance.default ExprConstruct a new instance.default ExprConstruct a new instance.default ExprConstruct a new instance.default ExprConstruct a new instance.default ExprConstruct a new instance.default ExprConstruct a new instance.default ExprConstruct a new instance.BlockCreator.newAnonymousClass(ConstructorDesc superCtor, List<? extends Expr> args, Consumer<AnonymousClassCreator> builder) Create a new anonymous class instance.default ExprBlockCreator.newAnonymousClass(Class<?> supertype, Consumer<AnonymousClassCreator> builder) Create a new anonymous class instance which extends the given class or implements the given interface.default ExprBlockCreator.newAnonymousClass(ClassDesc interface_, Consumer<AnonymousClassCreator> builder) Create a new anonymous class instance which implements the given interface.default ExprCreate a new array with the given type, initialized with the given values.default ExprCreate a new array with the given type, initialized with the given values.default <T> ExprCreate a new array with the given type, initialized with the given values.default ExprCreate a new array with the given type, initialized with the given values.default ExprCreate a new array with the given type, initialized with the given values.<T> ExprCreate a new array with the given type, initialized with the given values.default ExprBlockCreator.newEmptyArray(Class<?> componentType, int size) Create a new, empty array of the given type with given size.default ExprBlockCreator.newEmptyArray(Class<?> componentType, Expr size) Create a new, empty array of the given type with given size.default ExprBlockCreator.newEmptyArray(ClassDesc componentType, int size) Create a new, empty array of the given type with given size.BlockCreator.newEmptyArray(ClassDesc componentType, Expr size) Create a new, empty array of the given type with given size.default ExprDeprecated.default ExprBlockCreator.objHashCode(Expr expr) Deprecated.useBlockCreator.exprHashCode(Expr)instead.default ExprBlockCreator.objToString(Expr expr) Deprecated.useBlockCreator.exprToString(Expr)instead.BlockCreator.optionalEmpty()Generate a call toOptional.empty().BlockCreator.optionalOf(Expr value) Generate a call toOptional.of(Object).BlockCreator.optionalOfNullable(Expr value) Generate a call toOptional.ofNullable(Object).default ExprThe bitwiseoroperator.default ExprThe bitwiseoroperator.The bitwiseoroperator.default ExprThe arithmetic remainder operator.default ExprThe arithmetic remainder operator.default ExprThe arithmetic remainder operator.default ExprThe arithmetic remainder operator.default ExprThe arithmetic remainder operator.default ExprThe arithmetic remainder operator.default ExprThe arithmetic remainder operator.default ExprThe arithmetic remainder operator.The arithmetic remainder operator.default ExprGenerate a call toSet.of()or one of its variants, based on the number of arguments.default ExprGenerate a call toSet.of()or one of its variants, based on the number of arguments.<T> ExprGenerate a call toSet.of()or one of its variants, based on the number of arguments.default ExprThe bitwise left-shift operator.default ExprThe bitwise left-shift operator.The bitwise left-shift operator.default ExprThe bitwise signed-right-shift operator.default ExprThe bitwise signed-right-shift operator.The bitwise signed-right-shift operator.default ExprThe arithmetic subtraction operator.default ExprThe arithmetic subtraction operator.default ExprThe arithmetic subtraction operator.default ExprThe arithmetic subtraction operator.default ExprThe arithmetic subtraction operator.default ExprThe arithmetic subtraction operator.default ExprThe arithmetic subtraction operator.default ExprThe arithmetic subtraction operator.The arithmetic subtraction operator.default ExprBlockCreator.switch_(Class<?> outputType, Expr val, Consumer<SwitchCreator> builder) Construct aswitchexpression.BlockCreator.switch_(ClassDesc outputType, Expr val, Consumer<SwitchCreator> builder) Construct aswitchexpression.default ExprBlockCreator.switchEnum(Class<?> outputType, Expr val, Consumer<SwitchCreator> builder) Construct aswitchexpression forenumconstants.BlockCreator.switchEnum(ClassDesc outputType, Expr val, Consumer<SwitchCreator> builder) Construct aswitchexpression forenumconstants.Unbox the given boxed value into its corresponding primitive type.BlockCreator.uncheckedCast(Expr a, GenericType toType) Cast an object value to the given type without a type check.default ExprBlockCreator.uncheckedCast(Expr a, Class<?> toType) Cast an object value to the given type without a type check.BlockCreator.uncheckedCast(Expr a, ClassDesc toType) Cast an object value to the given type without a type check.default ExprThe bitwise unsigned-right-shift operator.default ExprThe bitwise unsigned-right-shift operator.The bitwise unsigned-right-shift operator.default ExprBlockCreator.weakCompareAndSet(Assignable var, Expr expected, Expr update) Atomically sets the value ofvartoupdateif its current value is equal toexpected, usingvolatilememory ordering.BlockCreator.weakCompareAndSet(Assignable var, Expr expected, Expr update, MemoryOrder order) Atomically sets the value ofvartoupdateif its current value is equal toexpected.default ExprThe bitwisexoroperator.default ExprThe bitwisexoroperator.The bitwisexoroperator.Methods in io.quarkus.gizmo2.creator with parameters of type ExprModifier and TypeMethodDescriptiondefault ExprThe arithmetic addition operator.default ExprThe arithmetic addition operator.default ExprThe arithmetic addition operator.default ExprThe arithmetic addition operator.The arithmetic addition operator.voidBlockCreator.addAssign(Assignable var, Expr arg) Add the argument to the variable value and assign it back.default ExprThe bitwiseandoperator.default ExprThe bitwiseandoperator.The bitwiseandoperator.voidBlockCreator.andAssign(Assignable var, Expr arg) Bitwise-AND the argument with the variable value and assign it back.BlockCreator.arrayEquals(Expr a, Expr b) Generates call to one of theArrays#equals(a, b)overloads, based on the type of the first argument, or toArrays#deepEquals(a, b)in case of multidimensional arrays.BlockCreator.arrayHashCode(Expr expr) Generates call to one of theArrays#hashCode(expr)overloads, based on the type of the argument, or toArrays#deepHashCode(expr)in case of multidimensional arrays.BlockCreator.arrayToString(Expr expr) Generates call to one of theArrays#toString(expr)overloads, based on the type of the argument, or toArrays#deepToString(expr)in case of multidimensional arrays.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.Box the given primitive value into its corresponding box type.Capture an enclosing value as a variable so that it may be used in the lambda body.BlockCreator.cast(Expr a, GenericType toType) Cast a value to the given type.default ExprCast a value to the given type.Cast a value to the given type.BlockCreator.classForName(Expr className) Generate a call toClass.forName(String)which uses the defining class loader of this class.voidClose the given target.The general comparison operator.The general comparison operator.The general comparison operator.default ExprBlockCreator.compareAndExchange(Assignable var, Expr expected, Expr update) BlockCreator.compareAndExchange(Assignable var, Expr expected, Expr update, MemoryOrder order) BlockCreator.compareAndSet(Assignable var, Expr expected, Expr update) Atomically sets the value ofvartoupdateif its current value is equal toexpected.BlockCreator.complement(Expr a) The bitwise complement operator.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).default ExprThe arithmetic division operator.default ExprThe arithmetic division operator.default ExprThe arithmetic division operator.default ExprThe arithmetic division operator.default ExprThe arithmetic division operator.default ExprThe arithmetic division operator.default ExprThe arithmetic division operator.default ExprThe arithmetic division operator.The arithmetic division operator.voidBlockCreator.divAssign(Assignable var, Expr arg) Divide the argument with the variable value and assign it back.default ExprThe equality operator.default ExprThe equality operator.default ExprThe equality operator.default ExprThe equality operator.The equality operator.BlockCreator.exprEquals(Expr a, Expr b) Generates call to theObjects#equals(a, b)method if at least one of the given expressions is of a reference type (boxing the other if primitive).BlockCreator.exprHashCode(Expr expr) Generates call to one of the static methods to compute a hash code of given expression.BlockCreator.exprToString(Expr expr) Generates call to one of theString#valueOf(expr)overloads, based on the type of the argument.voidBlockCreator.forEach(Expr items, BiConsumer<BlockCreator, ? super LocalVar> builder) Build a for-each loop over an array or collection.default ExprThe greater-than-or-equals operator.default ExprThe greater-than-or-equals operator.default ExprThe greater-than-or-equals operator.default ExprThe greater-than-or-equals operator.The greater-than-or-equals operator.default ExprBlockCreator.getAndAdd(Assignable var, Expr amount) Atomically get, add, and store the value of the target assignable expression usingvolatilesemantics.BlockCreator.getAndAdd(Assignable var, Expr amount, MemoryOrder order) Atomically get, add, and store the value of the target assignable expression.default ExprBlockCreator.getAndBitwiseAnd(Assignable var, Expr other) Atomically get, bitwise-and, and store the value of the target assignable expression withvolatilesemantics.BlockCreator.getAndBitwiseAnd(Assignable var, Expr other, MemoryOrder order) Atomically get, bitwise-and, and store the value of the target assignable expression.default ExprBlockCreator.getAndBitwiseOr(Assignable var, Expr other) Atomically get, bitwise-or, and store the value of the target assignable expression withvolatilesemantics.BlockCreator.getAndBitwiseOr(Assignable var, Expr other, MemoryOrder order) Atomically get, bitwise-or, and store the value of the target assignable expression.default ExprBlockCreator.getAndBitwiseXor(Assignable var, Expr other) Atomically get, bitwise-xor, and store the value of the target assignable expression withvolatilesemantics.BlockCreator.getAndBitwiseXor(Assignable var, Expr other, MemoryOrder order) Atomically get, bitwise-xor, and store the value of the target assignable expression.default ExprBlockCreator.getAndSet(Assignable var, Expr newValue) Atomically get and set the value of the target assignable expression usingvolatilesemantics.BlockCreator.getAndSet(Assignable var, Expr newValue, MemoryOrder order) Atomically get and set the value of the target assignable expression.default ExprThe greater-than operator.default ExprThe greater-than operator.default ExprThe greater-than operator.default ExprThe greater-than operator.The greater-than operator.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.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.BlockCreator.instanceOf(Expr obj, GenericType type) Test whether the given object implements the given type.default ExprBlockCreator.instanceOf(Expr obj, Class<?> type) Test whether the given object implements the given type.BlockCreator.instanceOf(Expr obj, ClassDesc type) Test whether the given object implements the given type.default ExprBlockCreator.invokeDynamic(DynamicCallSiteDesc callSiteDesc, Expr... args) default ExprBlockCreator.invokeInterface(MethodDesc method, Expr instance) Invoke an interface method.default ExprBlockCreator.invokeInterface(MethodDesc method, Expr instance, Expr arg0) Invoke an interface method.default ExprBlockCreator.invokeInterface(MethodDesc method, Expr instance, Expr... args) Invoke an interface method.default ExprBlockCreator.invokeInterface(MethodDesc method, Expr instance, Expr arg0, Expr arg1) Invoke an interface method.BlockCreator.invokeInterface(MethodDesc method, Expr instance, List<? extends Expr> args) Invoke an interface method.BlockCreator.invokeInterface(GenericType genericReturnType, MethodDesc method, Expr instance, List<? extends Expr> args) Invoke an interface method.default ExprBlockCreator.invokeSpecial(ConstructorDesc ctor, Expr instance) Invoke a constructor using "special" semantics.default ExprBlockCreator.invokeSpecial(ConstructorDesc ctor, Expr instance, Expr arg0) Invoke a constructor using "special" semantics.default ExprBlockCreator.invokeSpecial(ConstructorDesc ctor, Expr instance, Expr... args) Invoke a constructor using "special" semantics.default ExprBlockCreator.invokeSpecial(ConstructorDesc ctor, Expr instance, Expr arg0, Expr arg1) Invoke a constructor using "special" semantics.BlockCreator.invokeSpecial(ConstructorDesc ctor, Expr instance, List<? extends Expr> args) Invoke a constructor using "special" semantics.default ExprBlockCreator.invokeSpecial(MethodDesc method, Expr instance) Invoke a method using "special" semantics.default ExprBlockCreator.invokeSpecial(MethodDesc method, Expr instance, Expr arg0) Invoke a method using "special" semantics.default ExprBlockCreator.invokeSpecial(MethodDesc method, Expr instance, Expr... args) Invoke a method using "special" semantics.default ExprBlockCreator.invokeSpecial(MethodDesc method, Expr instance, Expr arg0, Expr arg1) Invoke a method using "special" semantics.BlockCreator.invokeSpecial(MethodDesc method, Expr instance, List<? extends Expr> args) Invoke a method using "special" semantics.BlockCreator.invokeSpecial(GenericType genericReturnType, MethodDesc method, Expr instance, List<? extends Expr> args) Invoke a method using "special" semantics.default ExprBlockCreator.invokeStatic(MethodDesc method, Expr arg0) Invoke a static method.default ExprBlockCreator.invokeStatic(MethodDesc method, Expr... args) Invoke a static method.default ExprBlockCreator.invokeStatic(MethodDesc method, Expr arg0, Expr arg1) Invoke a static method.default ExprBlockCreator.invokeVirtual(MethodDesc method, Expr instance) Invoke a virtual method.default ExprBlockCreator.invokeVirtual(MethodDesc method, Expr instance, Expr arg0) Invoke a virtual method.default ExprBlockCreator.invokeVirtual(MethodDesc method, Expr instance, Expr... args) Invoke a virtual method.default ExprBlockCreator.invokeVirtual(MethodDesc method, Expr instance, Expr arg0, Expr arg1) Invoke a virtual method.BlockCreator.invokeVirtual(MethodDesc method, Expr instance, List<? extends Expr> args) Invoke a virtual method.BlockCreator.invokeVirtual(GenericType genericReturnType, MethodDesc method, Expr instance, List<? extends Expr> args) Invoke a virtual method.default Exprdefault ExprIterate the given target.default ExprThe less-than-or-equals operator.default ExprThe less-than-or-equals operator.default ExprThe less-than-or-equals operator.default ExprThe less-than-or-equals operator.The less-than-or-equals operator.default ExprGenerate a call toList.of()or one of its variants, based on the number of arguments.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.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.logicalNot(Expr a) Returns an expression which is the logical (boolean) opposite of the input expression.default ExprBlockCreator.logicalOr(Expr cond, Consumer<BlockCreator> other) Perform a short-circuiting logical-OR operation (the||operator).default ExprThe less-than operator.default ExprThe less-than operator.default ExprThe less-than operator.default ExprThe less-than operator.The less-than operator.Generate a call toMap.entry(Object, Object).default ExprGenerate a call toMap.of()or one of its variants, based on the number of arguments.default ExprThe arithmetic multiplication operator.default ExprThe arithmetic multiplication operator.default ExprThe arithmetic multiplication operator.default ExprThe arithmetic multiplication operator.The arithmetic multiplication operator.voidBlockCreator.mulAssign(Assignable var, Expr arg) Multiply the argument with the variable value and assign it back.default ExprThe inequality operator.default ExprThe inequality operator.default ExprThe inequality operator.default ExprThe inequality operator.The inequality operator.The arithmetic negation operator.default ExprBlockCreator.new_(ConstructorDesc ctor, Expr arg0) Construct a new instance.default ExprBlockCreator.new_(ConstructorDesc ctor, Expr... args) Construct a new instance.default ExprBlockCreator.new_(ConstructorDesc ctor, Expr arg0, Expr arg1) Construct a new instance.default ExprBlockCreator.new_(GenericType type, Expr arg0) Construct a new instance.default ExprBlockCreator.new_(GenericType type, Expr... args) Construct a new instance.default ExprBlockCreator.new_(GenericType type, Expr arg0, Expr arg1) Construct a new instance.default ExprConstruct a new instance.default ExprConstruct a new instance.default ExprConstruct a new instance.default ExprConstruct a new instance.default ExprConstruct a new instance.default ExprConstruct a new instance.default ExprCreate a new array with the given type, initialized with the given values.default ExprCreate a new array with the given type, initialized with the given values.default ExprBlockCreator.newEmptyArray(Class<?> componentType, Expr size) Create a new, empty array of the given type with given size.BlockCreator.newEmptyArray(ClassDesc componentType, Expr size) Create a new, empty array of the given type with given size.default ExprDeprecated.useBlockCreator.exprEquals(Expr, Expr)instead.default ExprBlockCreator.objHashCode(Expr expr) Deprecated.useBlockCreator.exprHashCode(Expr)instead.default ExprBlockCreator.objToString(Expr expr) Deprecated.useBlockCreator.exprToString(Expr)instead.BlockCreator.optionalOf(Expr value) Generate a call toOptional.of(Object).BlockCreator.optionalOfNullable(Expr value) Generate a call toOptional.ofNullable(Object).default ExprThe bitwiseoroperator.default ExprThe bitwiseoroperator.The bitwiseoroperator.voidBlockCreator.orAssign(Assignable var, Expr arg) Bitwise-OR the argument with the variable value and assign it back.default voidInsert aprintfstatement.default voidBlockCreator.reachabilityFence(Expr obj) Emit a reachability fence for the given object expression.default ExprThe arithmetic remainder operator.default ExprThe arithmetic remainder operator.default ExprThe arithmetic remainder operator.default ExprThe arithmetic remainder operator.default ExprThe arithmetic remainder operator.default ExprThe arithmetic remainder operator.default ExprThe arithmetic remainder operator.default ExprThe arithmetic remainder operator.The arithmetic remainder operator.voidBlockCreator.remAssign(Assignable var, Expr arg) Divide the argument with the variable value and assign the remainder back.voidReturn from the current method.default voidBlockCreator.set(Assignable var, Expr value) Write a value to memory using the declared atomicity mode for the assignable.voidBlockCreator.set(Assignable var, Expr value, MemoryOrder mode) Write a value to memory with the given atomicity mode.default ExprGenerate a call toSet.of()or one of its variants, based on the number of arguments.default voidBlockCreator.setStaticField(FieldDesc desc, Expr value) Write the value to a static field.default ExprThe bitwise left-shift operator.default ExprThe bitwise left-shift operator.The bitwise left-shift operator.voidBlockCreator.shlAssign(Assignable var, Expr arg) Bitwise-left-shift the argument with the variable value and assign it back.default ExprThe bitwise signed-right-shift operator.default ExprThe bitwise signed-right-shift operator.The bitwise signed-right-shift operator.voidBlockCreator.shrAssign(Assignable var, Expr arg) Arithmetically bitwise-right-shift the argument with the variable value and assign it back.default ExprThe arithmetic subtraction operator.default ExprThe arithmetic subtraction operator.default ExprThe arithmetic subtraction operator.default ExprThe arithmetic subtraction operator.default ExprThe arithmetic subtraction operator.default ExprThe arithmetic subtraction operator.default ExprThe arithmetic subtraction operator.default ExprThe arithmetic subtraction operator.The arithmetic subtraction operator.voidBlockCreator.subAssign(Assignable var, Expr arg) Subtract the argument from the variable value and assign it back.default voidBlockCreator.switch_(Expr val, Consumer<SwitchCreator> builder) Construct aswitchstatement.default ExprBlockCreator.switch_(Class<?> outputType, Expr val, Consumer<SwitchCreator> builder) Construct aswitchexpression.BlockCreator.switch_(ClassDesc outputType, Expr val, Consumer<SwitchCreator> builder) Construct aswitchexpression.default voidBlockCreator.switchEnum(Expr val, Consumer<SwitchCreator> builder) Construct aswitchstatement forenumconstants.default ExprBlockCreator.switchEnum(Class<?> outputType, Expr val, Consumer<SwitchCreator> builder) Construct aswitchexpression forenumconstants.BlockCreator.switchEnum(ClassDesc outputType, Expr val, Consumer<SwitchCreator> builder) Construct aswitchexpression forenumconstants.voidBlockCreator.synchronized_(Expr monitor, Consumer<BlockCreator> body) Create asynchronizedblock.voidThrow the given exception object.default voidThrow a new exception of the given type with a message.default voidThrow a new exception of the given type with a message.Unbox the given boxed value into its corresponding primitive type.BlockCreator.uncheckedCast(Expr a, GenericType toType) Cast an object value to the given type without a type check.default ExprBlockCreator.uncheckedCast(Expr a, Class<?> toType) Cast an object value to the given type without a type check.BlockCreator.uncheckedCast(Expr a, ClassDesc toType) Cast an object value to the given type without a type check.default ExprThe bitwise unsigned-right-shift operator.default ExprThe bitwise unsigned-right-shift operator.The bitwise unsigned-right-shift operator.voidBlockCreator.ushrAssign(Assignable var, Expr arg) Logically bitwise-right-shift the argument with the variable value and assign it back.default ExprBlockCreator.weakCompareAndSet(Assignable var, Expr expected, Expr update) Atomically sets the value ofvartoupdateif its current value is equal toexpected, usingvolatilememory ordering.BlockCreator.weakCompareAndSet(Assignable var, Expr expected, Expr update, MemoryOrder order) Atomically sets the value ofvartoupdateif its current value is equal toexpected.default ClassOpsReturns a convenience wrapper for accessing instance methods ofClass.default CollectionOpsBlockCreator.withCollection(Expr receiver) Returns a convenience wrapper for accessing instance methods ofCollection.default IteratorOpsBlockCreator.withIterator(Expr receiver) Returns a convenience wrapper for accessing instance methods ofIterator.default ListOpsReturns a convenience wrapper for accessing instance methods ofList.default MapOpsReturns a convenience wrapper for accessing instance methods ofMap.default ObjectOpsBlockCreator.withObject(Expr receiver) Returns a convenience wrapper for accessing instance methods ofObject.default OptionalOpsBlockCreator.withOptional(Expr receiver) Returns a convenience wrapper for accessing instance methods ofOptional.default SetOpsReturns a convenience wrapper for accessing instance methods ofSet.default StringOpsBlockCreator.withString(Expr receiver) Returns a convenience wrapper for accessing instance methods ofString.default ThrowableOpsBlockCreator.withThrowable(Expr throwable) Returns a convenience wrapper for accessing instance methods ofThrowable.default ExprThe bitwisexoroperator.default ExprThe bitwisexoroperator.The bitwisexoroperator.voidBlockCreator.xorAssign(Assignable var, Expr arg) Bitwise-XOR (exclusive OR) the argument with the variable value and assign it back.voidYield a value from this block.Method parameters in io.quarkus.gizmo2.creator with type arguments of type ExprModifier and TypeMethodDescriptionBlockCreator.invokeDynamic(DynamicCallSiteDesc callSiteDesc, List<? extends Expr> args) BlockCreator.invokeInterface(MethodDesc method, Expr instance, List<? extends Expr> args) Invoke an interface method.BlockCreator.invokeInterface(GenericType genericReturnType, MethodDesc method, Expr instance, List<? extends Expr> args) Invoke an interface method.BlockCreator.invokeSpecial(ConstructorDesc ctor, Expr instance, List<? extends Expr> args) Invoke a constructor using "special" semantics.BlockCreator.invokeSpecial(MethodDesc method, Expr instance, List<? extends Expr> args) Invoke a method using "special" semantics.BlockCreator.invokeSpecial(GenericType genericReturnType, MethodDesc method, Expr instance, List<? extends Expr> args) Invoke a method using "special" semantics.BlockCreator.invokeStatic(MethodDesc method, List<? extends Expr> args) Invoke a static method.BlockCreator.invokeStatic(GenericType genericReturnType, MethodDesc method, List<? extends Expr> args) Invoke a static method.BlockCreator.invokeVirtual(MethodDesc method, Expr instance, List<? extends Expr> args) Invoke a virtual method.BlockCreator.invokeVirtual(GenericType genericReturnType, MethodDesc method, Expr instance, List<? extends Expr> args) Invoke a virtual method.default ExprGenerate a call toList.of()or one of its variants, based on the number of arguments.<T> ExprGenerate a call toList.of()or one of its variants, based on the number of arguments.Generate a call toMap.of()or one of its variants, based on the number of arguments.BlockCreator.new_(ConstructorDesc ctor, List<? extends Expr> args) Construct a new instance.BlockCreator.new_(GenericType genericType, ConstructorDesc ctor, List<? extends Expr> args) Construct a new instance.default ExprBlockCreator.new_(GenericType type, List<? extends Expr> args) Construct a new instance.default ExprConstruct a new instance.default ExprConstruct a new instance.BlockCreator.newAnonymousClass(ConstructorDesc superCtor, List<? extends Expr> args, Consumer<AnonymousClassCreator> builder) Create a new anonymous class instance.default ExprCreate a new array with the given type, initialized with the given values.default <T> ExprCreate a new array with the given type, initialized with the given values.default ExprCreate a new array with the given type, initialized with the given values.<T> ExprCreate a new array with the given type, initialized with the given values.voidInsert aprintfstatement.default ExprGenerate a call toSet.of()or one of its variants, based on the number of arguments.<T> ExprGenerate a call toSet.of()or one of its variants, based on the number of arguments. -
Uses of Expr in io.quarkus.gizmo2.creator.ops
Fields in io.quarkus.gizmo2.creator.ops declared as ExprModifier and TypeFieldDescriptionprotected final ExprObjectOps.objThe receiver object (notnull).Methods in io.quarkus.gizmo2.creator.ops that return ExprModifier and TypeMethodDescriptionGenerate a call toCollection.add(Object).Generate a call toCollection.addAll(Collection).ClassOps.asSubclass(Expr subclass) Generate a call toClass.asSubclass(Class).ClassOps.asSubclass(Class<?> clazz) Generate a call toClass.asSubclass(Class).Generate a call toClass.cast(Object).StringOps.charAt(int index) Generate a call toString.charAt(int).Generate a call toString.charAt(int).StringOps.codePointAt(int index) Generate a call toString.codePointAt(int).StringOps.codePointAt(Expr index) Generate a call toString.codePointAt(int).Generate a call toComparable.compareTo(Object).Generate a call toString.concat(String).Generate a call toCollection.contains(Object).CollectionOps.containsAll(Expr other) Generate a call toCollection.containsAll(Collection).MapOps.containsKey(Expr key) Generate a call toMap.containsKey(Object).MapOps.entrySet()Generate a call toMap.entrySet().Generate a call toObject.equals(Object).ListOps.get(int index) Generate a call toList.get(int).Generate a call toList.get(int).Generate a call toMap.get(Object).OptionalOps.get()Generate a call toOptional.get().ThrowableOps.getCause()Generate a call toThrowable.getCause().ObjectOps.getClass_()Generate a call toObject.getClass().ClassOps.getClassLoader()Generate a call toClass.getClassLoader().ThrowableOps.getLocalizedMessage()Generate a call toThrowable.getLocalizedMessage().ThrowableOps.getMessage()Generate a call toThrowable.getMessage().ClassOps.getName()Generate a call toClass.getName().ThrowableOps.getSuppressed()Generate a call toThrowable.getSuppressed().ObjectOps.hashCode_()Generate a call toObject.hashCode().IteratorOps.hasNext()CallIterator.hasNext().StringOps.indexOf(int ch) Generate a call toString.indexOf(int).Generate a call toString.indexOf(int)orString.indexOf(String).Generate a call toString.indexOf(String).CollectionOps.isEmpty()Generate a call toCollection.isEmpty().MapOps.isEmpty()Generate a call toMap.isEmpty().OptionalOps.isEmpty()Generate a call toOptional.get().StringOps.isEmpty()Generate a call toString.isEmpty().ClassOps.isInterface()Generate a call toClass.isInterface().OptionalOps.isPresent()Generate a call toOptional.get().CollectionOps.iterator()Generate a call toCollection.iterator().MapOps.keySet()Generate a call toMap.keySet().StringOps.lastIndexOf(int ch) Generate a call toString.lastIndexOf(int).StringOps.lastIndexOf(Expr item) Generate a call toString.lastIndexOf(int)orString.lastIndexOf(String).StringOps.lastIndexOf(String str) Generate a call toString.lastIndexOf(String).StringOps.length()Generate a call toString.length().IteratorOps.next()CallIterator.next().Generate a call toOptional.get().Generate a call toMap.put(Object, Object).protected ExprObjectOps.receiver()Returns the receiver object expression.Generate a call toCollection.remove(Object).Generate a call toMap.remove(Object).Generate a call toCollection.removeAll(Collection).CollectionOps.size()Generate a call toCollection.size().MapOps.size()Generate a call toMap.size().StringOps.substring(int start) Generate a call toString.substring(int).StringOps.substring(int start, int end) Generate a call toString.substring(int).Generate a call toString.substring(int).Generate a call toString.substring(int,int).ObjectOps.toString_()Generate a call toObject.toString().MapOps.values()Generate a call toMap.values().Methods in io.quarkus.gizmo2.creator.ops with parameters of type ExprModifier and TypeMethodDescriptionGenerate a call toCollection.add(Object).Generate a call toCollection.addAll(Collection).voidThrowableOps.addSuppressed(Expr exception) Generate a call toThrowable.addSuppressed(Throwable).ClassOps.asSubclass(Expr subclass) Generate a call toClass.asSubclass(Class).Generate a call toClass.cast(Object).Generate a call toString.charAt(int).StringOps.codePointAt(Expr index) Generate a call toString.codePointAt(int).Generate a call toComparable.compareTo(Object).Generate a call toString.concat(String).Generate a call toCollection.contains(Object).CollectionOps.containsAll(Expr other) Generate a call toCollection.containsAll(Collection).MapOps.containsKey(Expr key) Generate a call toMap.containsKey(Object).Generate a call toObject.equals(Object).voidIteratorOps.forEachRemaining(Expr action) Generate a call toList.get(int).Generate a call toMap.get(Object).Generate a call toString.indexOf(int)orString.indexOf(String).StringOps.lastIndexOf(Expr item) Generate a call toString.lastIndexOf(int)orString.lastIndexOf(String).Generate a call toOptional.get().Generate a call toMap.put(Object, Object).Generate a call toCollection.remove(Object).Generate a call toMap.remove(Object).Generate a call toCollection.removeAll(Collection).Generate a call toString.substring(int).Generate a call toString.substring(int,int).Constructors in io.quarkus.gizmo2.creator.ops with parameters of type ExprModifierConstructorDescriptionClassOps(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.
BlockCreator.exprEquals(Expr, Expr)instead.