Class Effect
java.lang.Object
org.checkerframework.checker.guieffect.Effect
An effect -- either UIEffect, PolyUIEffect, or SafeEffect.
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
Return true if this equals the given effect.Class<? extends Annotation>
getAnnot()
int
hashCode()
boolean
isPoly()
Return true if this is PolyUIEffect.boolean
isSafe()
Return true if this is SafeEffect.boolean
isUI()
Return true if this is UIEffect.static boolean
lessThanOrEqualTo
(Effect left, Effect right) Return true iffleft
is less than or equal toright
.static Effect
toString()
-
Constructor Details
-
Effect
Create a new Effect object.- Parameters:
cls
- one of UIEffect.class, PolyUIEffect.class, or SafeEffect.class
-
-
Method Details
-
lessThanOrEqualTo
Return true iffleft
is less than or equal toright
.- Parameters:
left
- the first effect to compareright
- the first effect to compare- Returns:
- true iff
left
is less than or equal toright
-
min
-
isSafe
public boolean isSafe()Return true if this is SafeEffect.- Returns:
- true if this is SafeEffect
-
isUI
public boolean isUI()Return true if this is UIEffect.- Returns:
- true if this is UIEffect
-
isPoly
Return true if this is PolyUIEffect.- Returns:
- true if this is PolyUIEffect
-
getAnnot
-
toString
-
equals
Return true if this equals the given effect.- Parameters:
e
- the effect to compare this to- Returns:
- true if this equals the given effect
-
equals
-
hashCode
-