Interface UnitsRelations
- All Known Implementing Classes:
UnitsRelationsDefault
public interface UnitsRelations
Interface that is used to specify the relation between units. A class that implements this
interface is the argument to the
UnitsRelations
annotation.-
Method Summary
Modifier and TypeMethodDescriptiondivision
(AnnotatedTypeMirror lht, AnnotatedTypeMirror rht) Called for the division of type lht and rht.Initialize the object.Called for the multiplication of type lht and rht.
-
Method Details
-
init
Initialize the object. Needs to be called before any other method.- Parameters:
env
- the ProcessingEnvironment to use- Returns:
- a reference to "this"
-
multiplication
Called for the multiplication of type lht and rht.- Parameters:
lht
- left hand side in multiplicationrht
- right hand side in multiplication- Returns:
- the annotation to use for the result of the multiplication or null if no special relation is known
-
division
Called for the division of type lht and rht.- Parameters:
lht
- left hand side in divisionrht
- right hand side in division- Returns:
- the annotation to use for the result of the division or null if no special relation is known
-