73 lines
1.6 KiB
Smali
73 lines
1.6 KiB
Smali
.class public Lcom/thoughtworks/xstream/converters/basic/NullConverter;
|
|
.super Ljava/lang/Object;
|
|
.source "NullConverter.java"
|
|
|
|
# interfaces
|
|
.implements Lcom/thoughtworks/xstream/converters/Converter;
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
.line 1
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
|
|
# virtual methods
|
|
.method public canConvert(Ljava/lang/Class;)Z
|
|
.locals 1
|
|
|
|
if-eqz p1, :cond_1
|
|
|
|
.line 1
|
|
const-class v0, Lcom/thoughtworks/xstream/mapper/Mapper$Null;
|
|
|
|
invoke-virtual {v0, p1}, Ljava/lang/Class;->isAssignableFrom(Ljava/lang/Class;)Z
|
|
|
|
move-result p1
|
|
|
|
if-eqz p1, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p1, 0x0
|
|
|
|
goto :goto_1
|
|
|
|
:cond_1
|
|
:goto_0
|
|
const/4 p1, 0x1
|
|
|
|
:goto_1
|
|
return p1
|
|
.end method
|
|
|
|
.method public marshal(Ljava/lang/Object;Lcom/thoughtworks/xstream/io/HierarchicalStreamWriter;Lcom/thoughtworks/xstream/converters/MarshallingContext;)V
|
|
.locals 0
|
|
|
|
.line 1
|
|
const-class p1, Lcom/thoughtworks/xstream/mapper/Mapper$Null;
|
|
|
|
const-string p3, "null"
|
|
|
|
invoke-static {p2, p3, p1}, Lcom/thoughtworks/xstream/io/ExtendedHierarchicalStreamWriterHelper;->startNode(Lcom/thoughtworks/xstream/io/HierarchicalStreamWriter;Ljava/lang/String;Ljava/lang/Class;)V
|
|
|
|
.line 2
|
|
invoke-interface {p2}, Lcom/thoughtworks/xstream/io/HierarchicalStreamWriter;->endNode()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public unmarshal(Lcom/thoughtworks/xstream/io/HierarchicalStreamReader;Lcom/thoughtworks/xstream/converters/UnmarshallingContext;)Ljava/lang/Object;
|
|
.locals 0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
return-object p1
|
|
.end method
|