Package io.micronaut.sourcegen.model
Record Class ExpressionDef.MathOp
java.lang.Object
java.lang.Record
io.micronaut.sourcegen.model.ExpressionDef.MathOp
- Record Components:
- operator- The operator
- left- The left expression
- right- The right expression
- All Implemented Interfaces:
- ExpressionDef
- Enclosing interface:
- ExpressionDef
public static record ExpressionDef.MathOp(String operator, ExpressionDef left, ExpressionDef right)
extends Record
implements ExpressionDef
The math operator.
- Author:
- Denis Stepanov
- 
Nested Class SummaryNested classes/interfaces inherited from interface io.micronaut.sourcegen.model.ExpressionDefExpressionDef.And, ExpressionDef.ArrayElement, ExpressionDef.Cast, ExpressionDef.Condition, ExpressionDef.ConditionExpressionDef, ExpressionDef.Constant, ExpressionDef.EqualsReferentially, ExpressionDef.EqualsStructurally, ExpressionDef.GetPropertyValue, ExpressionDef.IfElse, ExpressionDef.InstanceOf, ExpressionDef.InvokeGetClassMethod, ExpressionDef.InvokeHashCodeMethod, ExpressionDef.InvokeInstanceMethod, ExpressionDef.InvokeStaticMethod, ExpressionDef.IsFalse, ExpressionDef.IsNotNull, ExpressionDef.IsNull, ExpressionDef.IsTrue, ExpressionDef.MathOp, ExpressionDef.NewArrayInitialized, ExpressionDef.NewArrayOfSize, ExpressionDef.NewInstance, ExpressionDef.Or, ExpressionDef.Switch, ExpressionDef.SwitchYieldCase
- 
Constructor SummaryConstructorsConstructorDescriptionMathOp(String operator, ExpressionDef left, ExpressionDef right) Creates an instance of aMathOprecord class.
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.left()Returns the value of theleftrecord component.operator()Returns the value of theoperatorrecord component.right()Returns the value of therightrecord component.final StringtoString()Returns a string representation of this record class.type()The type of the expression.Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.micronaut.sourcegen.model.ExpressionDefarrayElement, asCondition, asExpressionSwitch, asStatementSwitch, asStatementSwitch, cast, cast, doThrow, equalsReferentially, equalsStructurally, field, field, field, getPropertyValue, ifFalse, ifFalse, ifFalse, ifNonNull, ifNonNull, ifNonNull, ifNull, ifNull, ifNull, ifTrue, ifTrue, ifTrue, instanceOf, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invoke, invokeConstructor, invokeConstructor, invokeConstructor, invokeConstructor, invokeConstructor, invokeConstructor, invokeConstructor, invokeConstructor, invokeGetClass, invokeHashCode, isFalse, isNonNull, isNull, isTrue, math, newLocal, newLocal, returning, whileLoop
- 
Constructor Details
- 
Method Details- 
typeDescription copied from interface:ExpressionDefThe type of the expression.- Specified by:
- typein interface- ExpressionDef
- Returns:
- The type
 
- 
toStringReturns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
- 
hashCodepublic final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
- 
equalsIndicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object).
- 
operatorReturns the value of theoperatorrecord component.- Returns:
- the value of the operatorrecord component
 
- 
leftReturns the value of theleftrecord component.- Returns:
- the value of the leftrecord component
 
- 
rightReturns the value of therightrecord component.- Returns:
- the value of the rightrecord component
 
 
-