@groovy.transform.CompileStatic class PropertyReference extends java.lang.Object
Represents a reference to a persistent property inside a where-DSL closure.
Supports Groovy arithmetic operators so that expressions like price * 10
produce a PropertyArithmetic instead of being evaluated as a literal.
| Type | Name and description |
|---|---|
java.lang.String |
propertyName |
| Constructor and description |
|---|
PropertyReference(java.lang.String propertyName) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
PropertyArithmetic |
div(java.lang.Number operand) |
|
PropertyArithmetic |
minus(java.lang.Number operand) |
|
PropertyArithmetic |
multiply(java.lang.Number operand) |
|
PropertyArithmetic |
plus(java.lang.Number operand) |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |