java.lang.Object
io.quarkus.gizmo2.creator.ops.ObjectOps
io.quarkus.gizmo2.creator.ops.ClassOps
Operations on
Class.-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionasSubclass(Expr subclass) Generate a call toClass.asSubclass(Class).asSubclass(Class<?> clazz) Generate a call toClass.asSubclass(Class).Generate a call toClass.cast(Object).Generate a call toClass.getClassLoader().getName()Generate a call toClass.getName().Generate a call toClass.isInterface().
-
Constructor Details
-
ClassOps
Construct a new instance.- Parameters:
bc- the block creator (must not benull)clazz- the receiver class (must not benull)
-
-
Method Details
-
getName
Generate a call toClass.getName().- Returns:
- the expression of the result (not
null)
-
isInterface
Generate a call toClass.isInterface().- Returns:
- the expression of the result (not
null)
-
getClassLoader
Generate a call toClass.getClassLoader().- Returns:
- the expression of the result (not
null)
-
asSubclass
Generate a call toClass.asSubclass(Class).- Parameters:
subclass- the expression of the subclassClassobject (must not benull)- Returns:
- the expression of the result (not
null)
-
asSubclass
Generate a call toClass.asSubclass(Class).- Parameters:
clazz- the subclassClassobject (must not benull)- Returns:
- the expression of the result (not
null)
-
cast
Generate a call toClass.cast(Object).- Parameters:
object- the expression of the object to cast (must not benull)- Returns:
- the expression of the result (not
null)
-