java.lang.Object
io.quarkus.gizmo2.creator.ops.ObjectOps
- Direct Known Subclasses:
ClassOps,CollectionOps,IteratorOps,MapOps,OptionalOps,StringOps,ThrowableOps
Operations on
Object.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final BlockCreatorThe block creator (notnull).protected final ExprThe receiver object (notnull). -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGenerate a call toObject.equals(Object).Generate a call toObject.getClass().Generate a call toObject.hashCode().protected Exprreceiver()Returns the receiver object expression.Generate a call toObject.toString().
-
Field Details
-
bc
The block creator (notnull). -
obj
The receiver object (notnull).
-
-
Constructor Details
-
ObjectOps
Construct a new instance.- Parameters:
bc- the block creator (must not benull)obj- the receiver object (must not benull)
-
-
Method Details
-
receiver
Returns the receiver object expression.- Returns:
- the receiver object expression
-
getClass_
Generate a call toObject.getClass().- Returns:
- the expression of the result (not
null)
-
toString_
Generate a call toObject.toString(). For anull-safe variation, useBlockCreator.exprToString(Expr).- Returns:
- the expression of the result (not
null)
-
equals_
Generate a call toObject.equals(Object). For anull-safe variation, useBlockCreator.exprEquals(Expr, Expr).- Parameters:
otherObj- the object to compare (must not benull)- Returns:
- the expression of the result (not
null)
-
hashCode_
Generate a call toObject.hashCode(). For anull-safe variation, useBlockCreator.exprHashCode(Expr).- Returns:
- the expression of the result (not
null)
-