PropertyValuesHolder$FloatPropertyValuesHolder.smali
.class Lio/dcloud/nineoldandroids/animation/PropertyValuesHolder$FloatPropertyValuesHolder;
.super Lio/dcloud/nineoldandroids/animation/PropertyValuesHolder;
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lio/dcloud/nineoldandroids/animation/PropertyValuesHolder;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x8
name = "FloatPropertyValuesHolder"
.end annotation
# instance fields
.field mFloatAnimatedValue:F
.field mFloatKeyframeSet:Lio/dcloud/nineoldandroids/animation/FloatKeyframeSet;
.field private mFloatProperty:Lio/dcloud/nineoldandroids/util/FloatProperty;
# direct methods
.method public constructor <init>(Lio/dcloud/nineoldandroids/util/Property;Lio/dcloud/nineoldandroids/animation/FloatKeyframeSet;)V
.registers 4
const/4 v0, 0x0
.line 5
invoke-direct {p0, p1, v0}, Lio/dcloud/nineoldandroids/animation/PropertyValuesHolder;-><init>(Lio/dcloud/nineoldandroids/util/Property;Lio/dcloud/nineoldandroids/animation/PropertyValuesHolder;)V
.line 6
sget-object v0, Ljava/lang/Float;->TYPE:Ljava/lang/Class;
iput-object v0, p0, Lio/dcloud/nineoldandroids/animation/PropertyValuesHolder;->mValueType:Ljava/lang/Class;
.line 7
iput-object p2, p0, Lio/dcloud/nineoldandroids/animation/PropertyValuesHolder;->mKeyframeSet:Lio/dcloud/nineoldandroids/animation/KeyframeSet;
.line 8
check-cast p2, Lio/dcloud/nineoldandroids/animation/FloatKeyframeSet;
iput-object p2, p0, Lio/dcloud/nineoldandroids/animation/PropertyValuesHolder$FloatPropertyValuesHolder;->mFloatKeyframeSet:Lio/dcloud/nineoldandroids/animation/FloatKeyframeSet;
.line 9
instance-of p1, p1, Lio/dcloud/nineoldandroids/util/FloatProperty;
if-eqz p1, :cond_18
.line 10
iget-object p1, p0, Lio/dcloud/nineoldandroids/animation/PropertyValuesHolder;->mProperty:Lio/dcloud/nineoldandroids/util/Property;
check-cast p1, Lio/dcloud/nineoldandroids/util/FloatProperty;
iput-object p1, p0, Lio/dcloud/nineoldandroids/animation/PropertyValuesHolder$FloatPropertyValuesHolder;->mFloatProperty:Lio/dcloud/nineoldandroids/util/FloatProperty;
:cond_18
return-void
.end method
.method public varargs constructor <init>(Lio/dcloud/nineoldandroids/util/Property;[F)V
.registers 4
const/4 v0, 0x0
.line 13
invoke-direct {p0, p1, v0}, Lio/dcloud/nineoldandroids/animation/PropertyValuesHolder;-><init>(Lio/dcloud/nineoldandroids/util/Property;Lio/dcloud/nineoldandroids/animation/PropertyValuesHolder;)V
.line 14
invoke-virtual {p0, p2}, Lio/dcloud/nineoldandroids/animation/PropertyValuesHolder$FloatPropertyValuesHolder;->setFloatValues([F)V
.line 15
instance-of p1, p1, Lio/dcloud/nineoldandroids/util/FloatProperty;
if-eqz p1, :cond_11
.line 16
iget-object p1, p0, Lio/dcloud/nineoldandroids/animation/PropertyValuesHolder;->mProperty:Lio/dcloud/nineoldandroids/util/Property;
check-cast p1, Lio/dcloud/nineoldandroids/util/FloatProperty;
iput-object p1, p0, Lio/dcloud/nineoldandroids/animation/PropertyValuesHolder$FloatPropertyValuesHolder;->mFloatProperty:Lio/dcloud/nineoldandroids/util/FloatProperty;
:cond_11
return-void
.end method
.method public constructor <init>(Ljava/lang/String;Lio/dcloud/nineoldandroids/animation/FloatKeyframeSet;)V
.registers 4
const/4 v0, 0x0
.line 1
invoke-direct {p0, p1, v0}, Lio/dcloud/nineoldandroids/animation/PropertyValuesHolder;-><init>(Ljava/lang/String;Lio/dcloud/nineoldandroids/animation/PropertyValuesHolder;)V
.line 2
sget-object p1, Ljava/lang/Float;->TYPE:Ljava/lang/Class;
iput-object p1, p0, Lio/dcloud/nineoldandroids/animation/PropertyValuesHolder;->mValueType:Ljava/lang/Class;
.line 3
iput-object p2, p0, Lio/dcloud/nineoldandroids/animation/PropertyValuesHolder;->mKeyframeSet:Lio/dcloud/nineoldandroids/animation/KeyframeSet;
.line 4
check-cast p2, Lio/dcloud/nineoldandroids/animation/FloatKeyframeSet;
iput-object p2, p0, Lio/dcloud/nineoldandroids/animation/PropertyValuesHolder$FloatPropertyValuesHolder;->mFloatKeyframeSet:Lio/dcloud/nineoldandroids/animation/FloatKeyframeSet;
return-void
.end method
.method public varargs constructor <init>(Ljava/lang/String;[F)V
.registers 4
const/4 v0, 0x0
.line 11
invoke-direct {p0, p1, v0}, Lio/dcloud/nineoldandroids/animation/PropertyValuesHolder;-><init>(Ljava/lang/String;Lio/dcloud/nineoldandroids/animation/PropertyValuesHolder;)V
.line 12
invoke-virtual {p0, p2}, Lio/dcloud/nineoldandroids/animation/PropertyValuesHolder$FloatPropertyValuesHolder;->setFloatValues([F)V
return-void
.end method
# virtual methods
.method calculateValue(F)V
.registers 3
.line 1
iget-object v0, p0, Lio/dcloud/nineoldandroids/animation/PropertyValuesHolder$FloatPropertyValuesHolder;->mFloatKeyframeSet:Lio/dcloud/nineoldandroids/animation/FloatKeyframeSet;
invoke-virtual {v0, p1}, Lio/dcloud/nineoldandroids/animation/FloatKeyframeSet;->getFloatValue(F)F
move-result p1
iput p1, p0, Lio/dcloud/nineoldandroids/animation/PropertyValuesHolder$FloatPropertyValuesHolder;->mFloatAnimatedValue:F
return-void
.end method
.method public clone()Lio/dcloud/nineoldandroids/animation/PropertyValuesHolder$FloatPropertyValuesHolder;
.registers 3
.line 2
invoke-super {p0}, Lio/dcloud/nineoldandroids/animation/PropertyValuesHolder;->clone()Lio/dcloud/nineoldandroids/animation/PropertyValuesHolder;
move-result-object v0
check-cast v0, Lio/dcloud/nineoldandroids/animation/PropertyValuesHolder$FloatPropertyValuesHolder;
.line 3
iget-object v1, v0, Lio/dcloud/nineoldandroids/animation/PropertyValuesHolder;->mKeyframeSet:Lio/dcloud/nineoldandroids/animation/KeyframeSet;
check-cast v1, Lio/dcloud/nineoldandroids/animation/FloatKeyframeSet;
iput-object v1, v0, Lio/dcloud/nineoldandroids/animation/PropertyValuesHolder$FloatPropertyValuesHolder;->mFloatKeyframeSet:Lio/dcloud/nineoldandroids/animation/FloatKeyframeSet;
return-object v0
.end method
.method public bridge synthetic clone()Lio/dcloud/nineoldandroids/animation/PropertyValuesHolder;
.registers 2
.line 1
invoke-virtual {p0}, Lio/dcloud/nineoldandroids/animation/PropertyValuesHolder$FloatPropertyValuesHolder;->clone()Lio/dcloud/nineoldandroids/animation/PropertyValuesHolder$FloatPropertyValuesHolder;
move-result-object v0
return-object v0
.end method
.method getAnimatedValue()Ljava/lang/Object;
.registers 2
.line 1
iget v0, p0, Lio/dcloud/nineoldandroids/animation/PropertyValuesHolder$FloatPropertyValuesHolder;->mFloatAnimatedValue:F
invoke-static {v0}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
move-result-object v0
return-object v0
.end method
.method setAnimatedValue(Ljava/lang/Object;)V
.registers 6
const-string v0, "PropertyValuesHolder"
.line 1
iget-object v1, p0, Lio/dcloud/nineoldandroids/animation/PropertyValuesHolder$FloatPropertyValuesHolder;->mFloatProperty:Lio/dcloud/nineoldandroids/util/FloatProperty;
if-eqz v1, :cond_c
.line 2
iget v0, p0, Lio/dcloud/nineoldandroids/animation/PropertyValuesHolder$FloatPropertyValuesHolder;->mFloatAnimatedValue:F
invoke-virtual {v1, p1, v0}, Lio/dcloud/nineoldandroids/util/FloatProperty;->setValue(Ljava/lang/Object;F)V
return-void
.line 5
:cond_c
iget-object v1, p0, Lio/dcloud/nineoldandroids/animation/PropertyValuesHolder;->mProperty:Lio/dcloud/nineoldandroids/util/Property;
if-eqz v1, :cond_1a
.line 6
iget v0, p0, Lio/dcloud/nineoldandroids/animation/PropertyValuesHolder$FloatPropertyValuesHolder;->mFloatAnimatedValue:F
invoke-static {v0}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
move-result-object v0
invoke-virtual {v1, p1, v0}, Lio/dcloud/nineoldandroids/util/Property;->set(Ljava/lang/Object;Ljava/lang/Object;)V
return-void
.line 13
:cond_1a
iget-object v1, p0, Lio/dcloud/nineoldandroids/animation/PropertyValuesHolder;->mSetter:Ljava/lang/reflect/Method;
if-eqz v1, :cond_42
.line 15
:try_start_1e
iget-object v1, p0, Lio/dcloud/nineoldandroids/animation/PropertyValuesHolder;->mTmpValueArray:[Ljava/lang/Object;
const/4 v2, 0x0
iget v3, p0, Lio/dcloud/nineoldandroids/animation/PropertyValuesHolder$FloatPropertyValuesHolder;->mFloatAnimatedValue:F
invoke-static {v3}, Ljava/lang/Float;->valueOf(F)Ljava/lang/Float;
move-result-object v3
aput-object v3, v1, v2
.line 16
iget-object v1, p0, Lio/dcloud/nineoldandroids/animation/PropertyValuesHolder;->mSetter:Ljava/lang/reflect/Method;
iget-object v2, p0, Lio/dcloud/nineoldandroids/animation/PropertyValuesHolder;->mTmpValueArray:[Ljava/lang/Object;
invoke-virtual {v1, p1, v2}, Ljava/lang/reflect/Method;->invoke(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;
:try_end_30
.catch Ljava/lang/reflect/InvocationTargetException; {:try_start_1e .. :try_end_30} :catch_3a
.catch Ljava/lang/IllegalAccessException; {:try_start_1e .. :try_end_30} :catch_31
goto :goto_42
:catch_31
move-exception p1
.line 20
invoke-virtual {p1}, Ljava/lang/IllegalAccessException;->toString()Ljava/lang/String;
move-result-object p1
invoke-static {v0, p1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
goto :goto_42
:catch_3a
move-exception p1
.line 21
invoke-virtual {p1}, Ljava/lang/reflect/InvocationTargetException;->toString()Ljava/lang/String;
move-result-object p1
invoke-static {v0, p1}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
:cond_42
:goto_42
return-void
.end method
.method public varargs setFloatValues([F)V
.registers 2
.line 1
invoke-super {p0, p1}, Lio/dcloud/nineoldandroids/animation/PropertyValuesHolder;->setFloatValues([F)V
.line 2
iget-object p1, p0, Lio/dcloud/nineoldandroids/animation/PropertyValuesHolder;->mKeyframeSet:Lio/dcloud/nineoldandroids/animation/KeyframeSet;
check-cast p1, Lio/dcloud/nineoldandroids/animation/FloatKeyframeSet;
iput-object p1, p0, Lio/dcloud/nineoldandroids/animation/PropertyValuesHolder$FloatPropertyValuesHolder;->mFloatKeyframeSet:Lio/dcloud/nineoldandroids/animation/FloatKeyframeSet;
return-void
.end method
.method setupSetter(Ljava/lang/Class;)V
.registers 3
.line 1
iget-object v0, p0, Lio/dcloud/nineoldandroids/animation/PropertyValuesHolder;->mProperty:Lio/dcloud/nineoldandroids/util/Property;
if-eqz v0, :cond_5
return-void
.line 33
:cond_5
invoke-super {p0, p1}, Lio/dcloud/nineoldandroids/animation/PropertyValuesHolder;->setupSetter(Ljava/lang/Class;)V
return-void
.end method