Interface UnitsRelations
-
- All Known Implementing Classes:
UnitsRelationsDefault
public interface UnitsRelationsInterface that is used to specify the relation between units. A class that implements this interface is the argument to theUnitsRelationsannotation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable javax.lang.model.element.AnnotationMirrordivision(AnnotatedTypeMirror lht, AnnotatedTypeMirror rht)Called for the division of type lht and rht.UnitsRelationsinit(javax.annotation.processing.ProcessingEnvironment env)Initialize the object.@Nullable javax.lang.model.element.AnnotationMirrormultiplication(AnnotatedTypeMirror lht, AnnotatedTypeMirror rht)Called for the multiplication of type lht and rht.
-
-
-
Method Detail
-
init
UnitsRelations init(javax.annotation.processing.ProcessingEnvironment env)
Initialize the object. Needs to be called before any other method.- Parameters:
env- the ProcessingEnvironment to use- Returns:
- a reference to "this"
-
multiplication
@Nullable javax.lang.model.element.AnnotationMirror multiplication(AnnotatedTypeMirror lht, AnnotatedTypeMirror rht)
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
@Nullable javax.lang.model.element.AnnotationMirror division(AnnotatedTypeMirror lht, AnnotatedTypeMirror rht)
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
-
-