147 lines
3.9 KiB
Smali
147 lines
3.9 KiB
Smali
.class Lcom/nineoldandroids/animation/Keyframe$ObjectKeyframe;
|
|
.super Lcom/nineoldandroids/animation/Keyframe;
|
|
.source "Keyframe.java"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/EnclosingClass;
|
|
value = Lcom/nineoldandroids/animation/Keyframe;
|
|
.end annotation
|
|
|
|
.annotation system Ldalvik/annotation/InnerClass;
|
|
accessFlags = 0x8
|
|
name = "ObjectKeyframe"
|
|
.end annotation
|
|
|
|
|
|
# instance fields
|
|
.field mValue:Ljava/lang/Object;
|
|
|
|
|
|
# direct methods
|
|
.method constructor <init>(FLjava/lang/Object;)V
|
|
.locals 1
|
|
.param p1, "fraction" # F
|
|
.param p2, "value" # Ljava/lang/Object;
|
|
|
|
.prologue
|
|
invoke-direct {p0}, Lcom/nineoldandroids/animation/Keyframe;-><init>()V
|
|
|
|
iput p1, p0, Lcom/nineoldandroids/animation/Keyframe$ObjectKeyframe;->mFraction:F
|
|
|
|
iput-object p2, p0, Lcom/nineoldandroids/animation/Keyframe$ObjectKeyframe;->mValue:Ljava/lang/Object;
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
:goto_0
|
|
iput-boolean v0, p0, Lcom/nineoldandroids/animation/Keyframe$ObjectKeyframe;->mHasValue:Z
|
|
|
|
iget-boolean v0, p0, Lcom/nineoldandroids/animation/Keyframe$ObjectKeyframe;->mHasValue:Z
|
|
|
|
if-eqz v0, :cond_1
|
|
|
|
invoke-virtual {p2}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_1
|
|
iput-object v0, p0, Lcom/nineoldandroids/animation/Keyframe$ObjectKeyframe;->mValueType:Ljava/lang/Class;
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_1
|
|
const-class v0, Ljava/lang/Object;
|
|
|
|
goto :goto_1
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public clone()Lcom/nineoldandroids/animation/Keyframe$ObjectKeyframe;
|
|
.locals 3
|
|
|
|
.prologue
|
|
new-instance v0, Lcom/nineoldandroids/animation/Keyframe$ObjectKeyframe;
|
|
|
|
invoke-virtual {p0}, Lcom/nineoldandroids/animation/Keyframe$ObjectKeyframe;->getFraction()F
|
|
|
|
move-result v1
|
|
|
|
iget-object v2, p0, Lcom/nineoldandroids/animation/Keyframe$ObjectKeyframe;->mValue:Ljava/lang/Object;
|
|
|
|
invoke-direct {v0, v1, v2}, Lcom/nineoldandroids/animation/Keyframe$ObjectKeyframe;-><init>(FLjava/lang/Object;)V
|
|
|
|
.local v0, "kfClone":Lcom/nineoldandroids/animation/Keyframe$ObjectKeyframe;
|
|
invoke-virtual {p0}, Lcom/nineoldandroids/animation/Keyframe$ObjectKeyframe;->getInterpolator()Landroid/view/animation/Interpolator;
|
|
|
|
move-result-object v1
|
|
|
|
invoke-virtual {v0, v1}, Lcom/nineoldandroids/animation/Keyframe$ObjectKeyframe;->setInterpolator(Landroid/view/animation/Interpolator;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public bridge synthetic clone()Lcom/nineoldandroids/animation/Keyframe;
|
|
.locals 1
|
|
|
|
.prologue
|
|
invoke-virtual {p0}, Lcom/nineoldandroids/animation/Keyframe$ObjectKeyframe;->clone()Lcom/nineoldandroids/animation/Keyframe$ObjectKeyframe;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public bridge synthetic clone()Ljava/lang/Object;
|
|
.locals 1
|
|
.annotation system Ldalvik/annotation/Throws;
|
|
value = {
|
|
Ljava/lang/CloneNotSupportedException;
|
|
}
|
|
.end annotation
|
|
|
|
.prologue
|
|
invoke-virtual {p0}, Lcom/nineoldandroids/animation/Keyframe$ObjectKeyframe;->clone()Lcom/nineoldandroids/animation/Keyframe$ObjectKeyframe;
|
|
|
|
move-result-object v0
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public getValue()Ljava/lang/Object;
|
|
.locals 1
|
|
|
|
.prologue
|
|
iget-object v0, p0, Lcom/nineoldandroids/animation/Keyframe$ObjectKeyframe;->mValue:Ljava/lang/Object;
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public setValue(Ljava/lang/Object;)V
|
|
.locals 1
|
|
.param p1, "value" # Ljava/lang/Object;
|
|
|
|
.prologue
|
|
iput-object p1, p0, Lcom/nineoldandroids/animation/Keyframe$ObjectKeyframe;->mValue:Ljava/lang/Object;
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
:goto_0
|
|
iput-boolean v0, p0, Lcom/nineoldandroids/animation/Keyframe$ObjectKeyframe;->mHasValue:Z
|
|
|
|
return-void
|
|
|
|
:cond_0
|
|
const/4 v0, 0x0
|
|
|
|
goto :goto_0
|
|
.end method
|