- All Superinterfaces:
AnnotatableCreator,GenericTyped,ModifiableCreator,SimpleTyped,TypeCreator,Typed,TypeParameterizedCreator
A creator for an interface type.
-
Method Summary
Modifier and TypeMethodDescriptiondefault MethodDescdefaultMethod(MethodDesc desc, Consumer<InstanceMethodCreator> builder) Add a default method to the interface having the same name and type as the given method.default MethodDescdefaultMethod(String name, MethodTypeDesc type, Consumer<InstanceMethodCreator> builder) Add a default method to the interface having the given predefined type.defaultMethod(String name, Consumer<InstanceMethodCreator> builder) Add a default method to the interface.voidextends_(GenericType.OfClass genericType) Extend a generic interface.default voidExtend an interface.voidExtend an interface.default MethodDescmethod(MethodDesc desc, Consumer<AbstractMethodCreator> builder) Add an interface method to the interface having the same name and type as the given method.default MethodDescmethod(String name, MethodTypeDesc type, Consumer<AbstractMethodCreator> builder) Add an interface method to the interface having the given predefined type.method(String name, Consumer<AbstractMethodCreator> builder) Add an interface method to the interface.default MethodDescprivateMethod(MethodDesc desc, Consumer<InstanceMethodCreator> builder) Add a private method to the interface having the same name and type as the given method.default MethodDescprivateMethod(String name, MethodTypeDesc type, Consumer<InstanceMethodCreator> builder) Add a private method to the interface having the given predefined type.privateMethod(String name, Consumer<InstanceMethodCreator> builder) Add a private instance method to the interface.Methods inherited from interface io.quarkus.gizmo2.creator.AnnotatableCreator
addAnnotation, addAnnotation, addAnnotation, addAnnotationMethods inherited from interface io.quarkus.gizmo2.GenericTyped
hasGenericTypeMethods inherited from interface io.quarkus.gizmo2.creator.ModifiableCreator
addFlag, addFlags, addFlags, final_, modifierLocation, packagePrivate, private_, protected_, public_, removeFlag, removeFlags, removeFlags, setAccess, supports, syntheticMethods inherited from interface io.quarkus.gizmo2.SimpleTyped
isPrimitive, isVoid, slotSize, typeKindMethods inherited from interface io.quarkus.gizmo2.creator.TypeCreator
constantField, constructors, genericType, instanceFields, instanceMethods, setVersion, setVersion, sourceFile, staticField, staticField, staticFields, staticInitializer, staticMethod, staticMethod, staticMethod, staticMethods, stringListResourceConstant, stringMapResourceConstant, stringSetResourceConstant, this_, typeMethods inherited from interface io.quarkus.gizmo2.creator.TypeParameterizedCreator
typeParameter, typeParameter
-
Method Details
-
extends_
Extend a generic interface.- Parameters:
genericType- the generic interface type (must not benull)
-
extends_
Extend an interface.- Parameters:
interface_- the descriptor of the interface (must not benull)
-
extends_
Extend an interface.- Parameters:
interface_- the interface (must not benull)
-
defaultMethod
Add a default method to the interface. These methods are alwayspublic.- Parameters:
name- the method name (must not benull)builder- the method builder (must not benull)- Returns:
- the built method's selector for invocation (not
null)
-
defaultMethod
default MethodDesc defaultMethod(String name, MethodTypeDesc type, Consumer<InstanceMethodCreator> builder) Add a default method to the interface having the given predefined type. These methods are alwayspublic.- Parameters:
name- the method name (must not benull)type- the method type (must not benull)builder- the method builder (must not benull)- Returns:
- the built method's selector for invocation (not
null)
-
defaultMethod
Add a default method to the interface having the same name and type as the given method. These methods are alwayspublic.- Parameters:
desc- the original method descriptor (must not benull)builder- the method builder (must not benull)- Returns:
- the built method's selector for invocation (not
null)
-
privateMethod
Add a private instance method to the interface.- Parameters:
name- the method name (must not benull)builder- the method builder (must not benull)- Returns:
- the built method's selector for invocation (not
null)
-
privateMethod
default MethodDesc privateMethod(String name, MethodTypeDesc type, Consumer<InstanceMethodCreator> builder) Add a private method to the interface having the given predefined type.- Parameters:
name- the method name (must not benull)type- the method type (must not benull)builder- the method builder (must not benull)- Returns:
- the built method's selector for invocation (not
null)
-
privateMethod
Add a private method to the interface having the same name and type as the given method.- Parameters:
desc- the original method descriptor (must not benull)builder- the method builder (must not benull)- Returns:
- the built method's selector for invocation (not
null)
-
method
Add an interface method to the interface. These methods are alwayspublic.- Parameters:
name- the method name (must not benull)builder- the method builder (must not benull)- Returns:
- the built method's selector for invocation (not
null)
-
method
default MethodDesc method(String name, MethodTypeDesc type, Consumer<AbstractMethodCreator> builder) Add an interface method to the interface having the given predefined type. These methods are alwayspublic.- Parameters:
name- the method name (must not benull)type- the method type (must not benull)builder- the method builder (must not benull)- Returns:
- the built method's selector for invocation (not
null)
-
method
Add an interface method to the interface having the same name and type as the given method. These methods are alwayspublic.- Parameters:
desc- the original method descriptor (must not benull)builder- the method builder (must not benull)- Returns:
- the built method's selector for invocation (not
null)
-