apkfuckery/com.discord/smali/lombok/launch/PatchFixesHider$PatchFixes.smali
2019-02-04 21:05:16 +01:00

1861 lines
47 KiB
Smali

.class public final Llombok/launch/PatchFixesHider$PatchFixes;
.super Ljava/lang/Object;
.source "PatchFixesHider.java"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Llombok/launch/PatchFixesHider;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "PatchFixes"
.end annotation
# static fields
.field public static final ALREADY_PROCESSED_FLAG:I = 0x800000
# direct methods
.method public constructor <init>()V
.locals 0
.prologue
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public static addAnnotations(Ljava/util/List;Ljava/lang/StringBuilder;)V
.locals 11
.param p1, "signature" # Ljava/lang/StringBuilder;
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List",
"<",
"Lorg/eclipse/jdt/core/dom/Annotation;",
">;",
"Ljava/lang/StringBuilder;",
")V"
}
.end annotation
.prologue
.local p0, "annotations":Ljava/util/List;, "Ljava/util/List<Lorg/eclipse/jdt/core/dom/Annotation;>;"
const/16 v10, 0x22
invoke-interface {p0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v7
:goto_0
invoke-interface {v7}, Ljava/util/Iterator;->hasNext()Z
move-result v8
if-eqz v8, :cond_5
invoke-interface {v7}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
check-cast v0, Lorg/eclipse/jdt/core/dom/Annotation;
.local v0, "annotation":Lorg/eclipse/jdt/core/dom/Annotation;
new-instance v6, Ljava/util/ArrayList;
invoke-direct {v6}, Ljava/util/ArrayList;-><init>()V
.local v6, "values":Ljava/util/List;, "Ljava/util/List<Ljava/lang/String;>;"
invoke-virtual {v0}, Lorg/eclipse/jdt/core/dom/Annotation;->isSingleMemberAnnotation()Z
move-result v8
if-eqz v8, :cond_2
move-object v3, v0
check-cast v3, Lorg/eclipse/jdt/core/dom/SingleMemberAnnotation;
.local v3, "smAnn":Lorg/eclipse/jdt/core/dom/SingleMemberAnnotation;
invoke-virtual {v3}, Lorg/eclipse/jdt/core/dom/SingleMemberAnnotation;->getValue()Lorg/eclipse/jdt/core/dom/Expression;
move-result-object v8
invoke-virtual {v8}, Lorg/eclipse/jdt/core/dom/Expression;->toString()Ljava/lang/String;
move-result-object v8
invoke-interface {v6, v8}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.end local v3 # "smAnn":Lorg/eclipse/jdt/core/dom/SingleMemberAnnotation;
:cond_0
const-string v8, "@"
invoke-virtual {p1, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v8
invoke-virtual {v0}, Lorg/eclipse/jdt/core/dom/Annotation;->resolveTypeBinding()Lorg/eclipse/jdt/core/dom/ITypeBinding;
move-result-object v9
invoke-interface {v9}, Lorg/eclipse/jdt/core/dom/ITypeBinding;->getQualifiedName()Ljava/lang/String;
move-result-object v9
invoke-virtual {v8, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-interface {v6}, Ljava/util/List;->isEmpty()Z
move-result v8
if-nez v8, :cond_4
const-string v8, "("
invoke-virtual {p1, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const/4 v1, 0x1
.local v1, "first":Z
invoke-interface {v6}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v8
:goto_1
invoke-interface {v8}, Ljava/util/Iterator;->hasNext()Z
move-result v9
if-eqz v9, :cond_3
invoke-interface {v8}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v4
check-cast v4, Ljava/lang/String;
.local v4, "string":Ljava/lang/String;
if-nez v1, :cond_1
const-string v9, ", "
invoke-virtual {p1, v9}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
:cond_1
const/4 v1, 0x0
invoke-virtual {p1, v10}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
move-result-object v9
invoke-virtual {v9, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v9
invoke-virtual {v9, v10}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
goto :goto_1
.end local v1 # "first":Z
.end local v4 # "string":Ljava/lang/String;
:cond_2
invoke-virtual {v0}, Lorg/eclipse/jdt/core/dom/Annotation;->isNormalAnnotation()Z
move-result v8
if-eqz v8, :cond_0
move-object v2, v0
check-cast v2, Lorg/eclipse/jdt/core/dom/NormalAnnotation;
.local v2, "normalAnn":Lorg/eclipse/jdt/core/dom/NormalAnnotation;
invoke-virtual {v2}, Lorg/eclipse/jdt/core/dom/NormalAnnotation;->values()Ljava/util/List;
move-result-object v8
invoke-interface {v8}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v8
:goto_2
invoke-interface {v8}, Ljava/util/Iterator;->hasNext()Z
move-result v9
if-eqz v9, :cond_0
invoke-interface {v8}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v5
.local v5, "value":Ljava/lang/Object;
invoke-virtual {v5}, Ljava/lang/Object;->toString()Ljava/lang/String;
move-result-object v9
invoke-interface {v6, v9}, Ljava/util/List;->add(Ljava/lang/Object;)Z
goto :goto_2
.end local v2 # "normalAnn":Lorg/eclipse/jdt/core/dom/NormalAnnotation;
.end local v5 # "value":Ljava/lang/Object;
.restart local v1 # "first":Z
:cond_3
const-string v8, ")"
invoke-virtual {p1, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
.end local v1 # "first":Z
:cond_4
const-string v8, " "
invoke-virtual {p1, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
goto/16 :goto_0
.end local v0 # "annotation":Lorg/eclipse/jdt/core/dom/Annotation;
.end local v6 # "values":Ljava/util/List;, "Ljava/util/List<Ljava/lang/String;>;"
:cond_5
return-void
.end method
.method public static checkBit24(Ljava/lang/Object;)Z
.locals 3
.param p0, "node" # Ljava/lang/Object;
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
.prologue
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v1
const-string v2, "bits"
invoke-virtual {v1, v2}, Ljava/lang/Class;->getField(Ljava/lang/String;)Ljava/lang/reflect/Field;
move-result-object v1
invoke-virtual {v1, p0}, Ljava/lang/reflect/Field;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/Integer;
check-cast v1, Ljava/lang/Integer;
invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I
move-result v0
.local v0, "bits":I
const/high16 v1, 0x800000
and-int/2addr v1, v0
if-eqz v1, :cond_0
const/4 v1, 0x1
:goto_0
return v1
:cond_0
const/4 v1, 0x0
goto :goto_0
.end method
.method public static convertAnnotations([Lorg/eclipse/jdt/internal/compiler/ast/Annotation;Lorg/eclipse/jdt/core/IAnnotatable;)[Lorg/eclipse/jdt/internal/compiler/ast/Annotation;
.locals 14
.param p0, "out" # [Lorg/eclipse/jdt/internal/compiler/ast/Annotation;
.param p1, "annotatable" # Lorg/eclipse/jdt/core/IAnnotatable;
.prologue
const/4 v9, 0x0
:try_start_0
invoke-interface {p1}, Lorg/eclipse/jdt/core/IAnnotatable;->getAnnotations()[Lorg/eclipse/jdt/core/IAnnotation;
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
move-result-object v5
.local v5, "in":[Lorg/eclipse/jdt/core/IAnnotation;
if-nez p0, :cond_1
.end local v5 # "in":[Lorg/eclipse/jdt/core/IAnnotation;
:cond_0
:goto_0
return-object v9
:catch_0
move-exception v0
.local v0, "e":Ljava/lang/Exception;
move-object v9, p0
goto :goto_0
.end local v0 # "e":Ljava/lang/Exception;
.restart local v5 # "in":[Lorg/eclipse/jdt/core/IAnnotation;
:cond_1
const/4 v10, 0x0
.local v10, "toWrite":I
const/4 v3, 0x0
.local v3, "idx":I
:goto_1
array-length v11, p0
if-ge v3, v11, :cond_6
new-instance v8, Ljava/lang/String;
aget-object v11, p0, v3
iget-object v11, v11, Lorg/eclipse/jdt/internal/compiler/ast/Annotation;->type:Lorg/eclipse/jdt/internal/compiler/ast/TypeReference;
invoke-virtual {v11}, Lorg/eclipse/jdt/internal/compiler/ast/TypeReference;->getLastToken()[C
move-result-object v11
invoke-direct {v8, v11}, Ljava/lang/String;-><init>([C)V
.local v8, "oName":Ljava/lang/String;
const/4 v1, 0x0
.local v1, "found":Z
array-length v12, v5
const/4 v11, 0x0
:goto_2
if-ge v11, v12, :cond_3
aget-object v2, v5, v11
.local v2, "i":Lorg/eclipse/jdt/core/IAnnotation;
invoke-interface {v2}, Lorg/eclipse/jdt/core/IAnnotation;->getElementName()Ljava/lang/String;
move-result-object v7
.local v7, "name":Ljava/lang/String;
const/16 v13, 0x2e
invoke-virtual {v7, v13}, Ljava/lang/String;->lastIndexOf(I)I
move-result v6
.local v6, "li":I
const/4 v13, -0x1
if-le v6, v13, :cond_2
add-int/lit8 v13, v6, 0x1
invoke-virtual {v7, v13}, Ljava/lang/String;->substring(I)Ljava/lang/String;
move-result-object v7
:cond_2
invoke-virtual {v7, v8}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v13
if-eqz v13, :cond_4
const/4 v1, 0x1
.end local v2 # "i":Lorg/eclipse/jdt/core/IAnnotation;
.end local v6 # "li":I
.end local v7 # "name":Ljava/lang/String;
:cond_3
if-nez v1, :cond_5
aput-object v9, p0, v3
:goto_3
add-int/lit8 v3, v3, 0x1
goto :goto_1
.restart local v2 # "i":Lorg/eclipse/jdt/core/IAnnotation;
.restart local v6 # "li":I
.restart local v7 # "name":Ljava/lang/String;
:cond_4
add-int/lit8 v11, v11, 0x1
goto :goto_2
.end local v2 # "i":Lorg/eclipse/jdt/core/IAnnotation;
.end local v6 # "li":I
.end local v7 # "name":Ljava/lang/String;
:cond_5
add-int/lit8 v10, v10, 0x1
goto :goto_3
.end local v1 # "found":Z
.end local v8 # "oName":Ljava/lang/String;
:cond_6
move-object v9, p0
.local v9, "replace":[Lorg/eclipse/jdt/internal/compiler/ast/Annotation;
array-length v11, p0
if-ge v10, v11, :cond_0
new-array v9, v10, [Lorg/eclipse/jdt/internal/compiler/ast/Annotation;
const/4 v3, 0x0
const/4 v2, 0x0
.local v2, "i":I
:goto_4
array-length v11, p0
if-ge v2, v11, :cond_0
aget-object v11, p0, v2
if-nez v11, :cond_7
:goto_5
add-int/lit8 v2, v2, 0x1
goto :goto_4
:cond_7
add-int/lit8 v4, v3, 0x1
.end local v3 # "idx":I
.local v4, "idx":I
aget-object v11, p0, v2
aput-object v11, v9, v3
move v3, v4
.end local v4 # "idx":I
.restart local v3 # "idx":I
goto :goto_5
.end method
.method public static findTypeDeclaration(Lorg/eclipse/jdt/core/IType;Ljava/util/List;)Lorg/eclipse/jdt/core/dom/AbstractTypeDeclaration;
.locals 5
.param p0, "searchType" # Lorg/eclipse/jdt/core/IType;
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lorg/eclipse/jdt/core/IType;",
"Ljava/util/List",
"<*>;)",
"Lorg/eclipse/jdt/core/dom/AbstractTypeDeclaration;"
}
.end annotation
.prologue
.local p1, "nodes":Ljava/util/List;, "Ljava/util/List<*>;"
invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v2
:cond_0
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
move-result v3
if-eqz v3, :cond_1
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
.local v0, "object":Ljava/lang/Object;
instance-of v3, v0, Lorg/eclipse/jdt/core/dom/AbstractTypeDeclaration;
if-eqz v3, :cond_0
move-object v1, v0
check-cast v1, Lorg/eclipse/jdt/core/dom/AbstractTypeDeclaration;
.local v1, "typeDeclaration":Lorg/eclipse/jdt/core/dom/AbstractTypeDeclaration;
invoke-virtual {v1}, Lorg/eclipse/jdt/core/dom/AbstractTypeDeclaration;->getName()Lorg/eclipse/jdt/core/dom/SimpleName;
move-result-object v3
invoke-virtual {v3}, Lorg/eclipse/jdt/core/dom/SimpleName;->toString()Ljava/lang/String;
move-result-object v3
invoke-interface {p0}, Lorg/eclipse/jdt/core/IType;->getElementName()Ljava/lang/String;
move-result-object v4
invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v3
if-eqz v3, :cond_0
.end local v0 # "object":Ljava/lang/Object;
.end local v1 # "typeDeclaration":Lorg/eclipse/jdt/core/dom/AbstractTypeDeclaration;
:goto_0
return-object v1
:cond_1
const/4 v1, 0x0
goto :goto_0
.end method
.method public static fixRetrieveEllipsisStartPosition(II)I
.locals 1
.param p0, "original" # I
.param p1, "end" # I
.prologue
const/4 v0, -0x1
if-ne p0, v0, :cond_0
.end local p1 # "end":I
:goto_0
return p1
.restart local p1 # "end":I
:cond_0
move p1, p0
goto :goto_0
.end method
.method public static fixRetrieveIdentifierEndPosition(II)I
.locals 1
.param p0, "original" # I
.param p1, "end" # I
.prologue
const/4 v0, -0x1
if-ne p0, v0, :cond_0
.end local p1 # "end":I
:goto_0
return p1
.restart local p1 # "end":I
:cond_0
move p1, p0
goto :goto_0
.end method
.method public static fixRetrieveRightBraceOrSemiColonPosition(II)I
.locals 1
.param p0, "original" # I
.param p1, "end" # I
.prologue
const/4 v0, -0x1
if-ne p0, v0, :cond_0
.end local p1 # "end":I
:goto_0
return p1
.restart local p1 # "end":I
:cond_0
move p1, p0
goto :goto_0
.end method
.method public static fixRetrieveRightBraceOrSemiColonPosition(ILorg/eclipse/jdt/internal/compiler/ast/AbstractMethodDeclaration;)I
.locals 3
.param p0, "retVal" # I
.param p1, "amd" # Lorg/eclipse/jdt/internal/compiler/ast/AbstractMethodDeclaration;
.prologue
const/4 v1, -0x1
if-ne p0, v1, :cond_0
if-nez p1, :cond_1
.end local p0 # "retVal":I
:cond_0
:goto_0
return p0
.restart local p0 # "retVal":I
:cond_1
sget-object v2, Llombok/eclipse/EclipseAugments;->ASTNode_generatedBy:Llombok/core/FieldAugment;
invoke-virtual {v2, p1}, Llombok/core/FieldAugment;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v2
if-eqz v2, :cond_2
const/4 v0, 0x1
.local v0, "isGenerated":Z
:goto_1
if-eqz v0, :cond_3
iget p0, p1, Lorg/eclipse/jdt/internal/compiler/ast/AbstractMethodDeclaration;->declarationSourceEnd:I
goto :goto_0
.end local v0 # "isGenerated":Z
:cond_2
const/4 v0, 0x0
goto :goto_1
.restart local v0 # "isGenerated":Z
:cond_3
move p0, v1
goto :goto_0
.end method
.method public static fixRetrieveRightBraceOrSemiColonPosition(ILorg/eclipse/jdt/internal/compiler/ast/FieldDeclaration;)I
.locals 3
.param p0, "retVal" # I
.param p1, "fd" # Lorg/eclipse/jdt/internal/compiler/ast/FieldDeclaration;
.prologue
const/4 v1, -0x1
if-ne p0, v1, :cond_0
if-nez p1, :cond_1
.end local p0 # "retVal":I
:cond_0
:goto_0
return p0
.restart local p0 # "retVal":I
:cond_1
sget-object v2, Llombok/eclipse/EclipseAugments;->ASTNode_generatedBy:Llombok/core/FieldAugment;
invoke-virtual {v2, p1}, Llombok/core/FieldAugment;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v2
if-eqz v2, :cond_2
const/4 v0, 0x1
.local v0, "isGenerated":Z
:goto_1
if-eqz v0, :cond_3
iget p0, p1, Lorg/eclipse/jdt/internal/compiler/ast/FieldDeclaration;->declarationSourceEnd:I
goto :goto_0
.end local v0 # "isGenerated":Z
:cond_2
const/4 v0, 0x0
goto :goto_1
.restart local v0 # "isGenerated":Z
:cond_3
move p0, v1
goto :goto_0
.end method
.method public static fixRetrieveStartingCatchPosition(II)I
.locals 1
.param p0, "original" # I
.param p1, "start" # I
.prologue
const/4 v0, -0x1
if-ne p0, v0, :cond_0
.end local p1 # "start":I
:goto_0
return p1
.restart local p1 # "start":I
:cond_0
move p1, p0
goto :goto_0
.end method
.method public static getRealMethodDeclarationNode(Lorg/eclipse/jdt/core/IMethod;Lorg/eclipse/jdt/core/dom/CompilationUnit;)Lorg/eclipse/jdt/core/dom/MethodDeclaration;
.locals 10
.param p0, "sourceMethod" # Lorg/eclipse/jdt/core/IMethod;
.param p1, "cuUnit" # Lorg/eclipse/jdt/core/dom/CompilationUnit;
.annotation system Ldalvik/annotation/Throws;
value = {
Lorg/eclipse/jdt/core/JavaModelException;
}
.end annotation
.prologue
invoke-static {p0, p1}, Lorg/eclipse/jdt/internal/corext/refactoring/structure/ASTNodeSearchUtil;->getMethodDeclarationNode(Lorg/eclipse/jdt/core/IMethod;Lorg/eclipse/jdt/core/dom/CompilationUnit;)Lorg/eclipse/jdt/core/dom/MethodDeclaration;
move-result-object v3
.local v3, "methodDeclarationNode":Lorg/eclipse/jdt/core/dom/MethodDeclaration;
invoke-static {v3}, Llombok/launch/PatchFixesHider$PatchFixes;->isGenerated(Lorg/eclipse/jdt/core/dom/ASTNode;)Z
move-result v8
if-eqz v8, :cond_3
invoke-interface {p0}, Lorg/eclipse/jdt/core/IMethod;->getDeclaringType()Lorg/eclipse/jdt/core/IType;
move-result-object v1
.local v1, "declaringType":Lorg/eclipse/jdt/core/IType;
new-instance v7, Ljava/util/Stack;
invoke-direct {v7}, Ljava/util/Stack;-><init>()V
.local v7, "typeStack":Ljava/util/Stack;, "Ljava/util/Stack<Lorg/eclipse/jdt/core/IType;>;"
:goto_0
if-eqz v1, :cond_0
invoke-virtual {v7, v1}, Ljava/util/Stack;->push(Ljava/lang/Object;)Ljava/lang/Object;
invoke-interface {v1}, Lorg/eclipse/jdt/core/IType;->getDeclaringType()Lorg/eclipse/jdt/core/IType;
move-result-object v1
goto :goto_0
:cond_0
invoke-virtual {v7}, Ljava/util/Stack;->pop()Ljava/lang/Object;
move-result-object v5
check-cast v5, Lorg/eclipse/jdt/core/IType;
.local v5, "rootType":Lorg/eclipse/jdt/core/IType;
invoke-virtual {p1}, Lorg/eclipse/jdt/core/dom/CompilationUnit;->types()Ljava/util/List;
move-result-object v8
invoke-static {v5, v8}, Llombok/launch/PatchFixesHider$PatchFixes;->findTypeDeclaration(Lorg/eclipse/jdt/core/IType;Ljava/util/List;)Lorg/eclipse/jdt/core/dom/AbstractTypeDeclaration;
move-result-object v6
.local v6, "typeDeclaration":Lorg/eclipse/jdt/core/dom/AbstractTypeDeclaration;
:goto_1
invoke-virtual {v7}, Ljava/util/Stack;->isEmpty()Z
move-result v8
if-nez v8, :cond_1
if-eqz v6, :cond_1
invoke-virtual {v7}, Ljava/util/Stack;->pop()Ljava/lang/Object;
move-result-object v8
check-cast v8, Lorg/eclipse/jdt/core/IType;
invoke-virtual {v6}, Lorg/eclipse/jdt/core/dom/AbstractTypeDeclaration;->bodyDeclarations()Ljava/util/List;
move-result-object v9
invoke-static {v8, v9}, Llombok/launch/PatchFixesHider$PatchFixes;->findTypeDeclaration(Lorg/eclipse/jdt/core/IType;Ljava/util/List;)Lorg/eclipse/jdt/core/dom/AbstractTypeDeclaration;
move-result-object v6
goto :goto_1
:cond_1
invoke-virtual {v7}, Ljava/util/Stack;->isEmpty()Z
move-result v8
if-eqz v8, :cond_3
if-eqz v6, :cond_3
invoke-interface {p0}, Lorg/eclipse/jdt/core/IMethod;->getElementName()Ljava/lang/String;
move-result-object v4
.local v4, "methodName":Ljava/lang/String;
invoke-virtual {v6}, Lorg/eclipse/jdt/core/dom/AbstractTypeDeclaration;->bodyDeclarations()Ljava/util/List;
move-result-object v8
invoke-interface {v8}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v8
:cond_2
invoke-interface {v8}, Ljava/util/Iterator;->hasNext()Z
move-result v9
if-eqz v9, :cond_3
invoke-interface {v8}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v0
.local v0, "declaration":Ljava/lang/Object;
instance-of v9, v0, Lorg/eclipse/jdt/core/dom/MethodDeclaration;
if-eqz v9, :cond_2
move-object v2, v0
check-cast v2, Lorg/eclipse/jdt/core/dom/MethodDeclaration;
.local v2, "methodDeclaration":Lorg/eclipse/jdt/core/dom/MethodDeclaration;
invoke-virtual {v2}, Lorg/eclipse/jdt/core/dom/MethodDeclaration;->getName()Lorg/eclipse/jdt/core/dom/SimpleName;
move-result-object v9
invoke-virtual {v9}, Lorg/eclipse/jdt/core/dom/SimpleName;->toString()Ljava/lang/String;
move-result-object v9
invoke-virtual {v9, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v9
if-eqz v9, :cond_2
.end local v0 # "declaration":Ljava/lang/Object;
.end local v1 # "declaringType":Lorg/eclipse/jdt/core/IType;
.end local v2 # "methodDeclaration":Lorg/eclipse/jdt/core/dom/MethodDeclaration;
.end local v4 # "methodName":Ljava/lang/String;
.end local v5 # "rootType":Lorg/eclipse/jdt/core/IType;
.end local v6 # "typeDeclaration":Lorg/eclipse/jdt/core/dom/AbstractTypeDeclaration;
.end local v7 # "typeStack":Ljava/util/Stack;, "Ljava/util/Stack<Lorg/eclipse/jdt/core/IType;>;"
:goto_2
return-object v2
:cond_3
move-object v2, v3
goto :goto_2
.end method
.method public static getRealMethodDeclarationSource(Ljava/lang/String;Ljava/lang/Object;Lorg/eclipse/jdt/core/dom/MethodDeclaration;)Ljava/lang/String;
.locals 9
.param p0, "original" # Ljava/lang/String;
.param p1, "processor" # Ljava/lang/Object;
.param p2, "declaration" # Lorg/eclipse/jdt/core/dom/MethodDeclaration;
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
.prologue
invoke-static {p2}, Llombok/launch/PatchFixesHider$PatchFixes;->isGenerated(Lorg/eclipse/jdt/core/dom/ASTNode;)Z
move-result v7
if-nez v7, :cond_0
.end local p0 # "original":Ljava/lang/String;
:goto_0
return-object p0
.restart local p0 # "original":Ljava/lang/String;
:cond_0
new-instance v1, Ljava/util/ArrayList;
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
.local v1, "annotations":Ljava/util/List;, "Ljava/util/List<Lorg/eclipse/jdt/core/dom/Annotation;>;"
invoke-virtual {p2}, Lorg/eclipse/jdt/core/dom/MethodDeclaration;->modifiers()Ljava/util/List;
move-result-object v7
invoke-interface {v7}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v7
:cond_1
:goto_1
invoke-interface {v7}, Ljava/util/Iterator;->hasNext()Z
move-result v8
if-eqz v8, :cond_2
invoke-interface {v7}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v3
.local v3, "modifier":Ljava/lang/Object;
instance-of v8, v3, Lorg/eclipse/jdt/core/dom/Annotation;
if-eqz v8, :cond_1
move-object v0, v3
check-cast v0, Lorg/eclipse/jdt/core/dom/Annotation;
.local v0, "annotation":Lorg/eclipse/jdt/core/dom/Annotation;
invoke-virtual {v0}, Lorg/eclipse/jdt/core/dom/Annotation;->resolveTypeBinding()Lorg/eclipse/jdt/core/dom/ITypeBinding;
move-result-object v8
invoke-interface {v8}, Lorg/eclipse/jdt/core/dom/ITypeBinding;->getQualifiedName()Ljava/lang/String;
move-result-object v5
.local v5, "qualifiedAnnotationName":Ljava/lang/String;
const-string v8, "java.lang.Override"
invoke-virtual {v8, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v8
if-nez v8, :cond_1
const-string v8, "java.lang.SuppressWarnings"
invoke-virtual {v8, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result v8
if-nez v8, :cond_1
invoke-interface {v1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
goto :goto_1
.end local v0 # "annotation":Lorg/eclipse/jdt/core/dom/Annotation;
.end local v3 # "modifier":Ljava/lang/Object;
.end local v5 # "qualifiedAnnotationName":Ljava/lang/String;
:cond_2
new-instance v6, Ljava/lang/StringBuilder;
invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V
.local v6, "signature":Ljava/lang/StringBuilder;
invoke-static {v1, v6}, Llombok/launch/PatchFixesHider$PatchFixes;->addAnnotations(Ljava/util/List;Ljava/lang/StringBuilder;)V
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v7
const-string v8, "fPublic"
invoke-virtual {v7, v8}, Ljava/lang/Class;->getDeclaredField(Ljava/lang/String;)Ljava/lang/reflect/Field;
move-result-object v7
invoke-virtual {v7, p1}, Ljava/lang/reflect/Field;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v7
check-cast v7, Ljava/lang/Boolean;
invoke-virtual {v7}, Ljava/lang/Boolean;->booleanValue()Z
move-result v7
if-eqz v7, :cond_3
const-string v7, "public "
invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
:cond_3
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v7
const-string v8, "fAbstract"
invoke-virtual {v7, v8}, Ljava/lang/Class;->getDeclaredField(Ljava/lang/String;)Ljava/lang/reflect/Field;
move-result-object v7
invoke-virtual {v7, p1}, Ljava/lang/reflect/Field;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v7
check-cast v7, Ljava/lang/Boolean;
invoke-virtual {v7}, Ljava/lang/Boolean;->booleanValue()Z
move-result v7
if-eqz v7, :cond_4
const-string v7, "abstract "
invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
:cond_4
invoke-virtual {p2}, Lorg/eclipse/jdt/core/dom/MethodDeclaration;->getReturnType2()Lorg/eclipse/jdt/core/dom/Type;
move-result-object v7
invoke-virtual {v7}, Lorg/eclipse/jdt/core/dom/Type;->toString()Ljava/lang/String;
move-result-object v7
invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v7
const-string v8, " "
invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v7
invoke-virtual {p2}, Lorg/eclipse/jdt/core/dom/MethodDeclaration;->getName()Lorg/eclipse/jdt/core/dom/SimpleName;
move-result-object v8
invoke-virtual {v8}, Lorg/eclipse/jdt/core/dom/SimpleName;->getFullyQualifiedName()Ljava/lang/String;
move-result-object v8
invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object v7
const-string v8, "("
invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
const/4 v2, 0x1
.local v2, "first":Z
invoke-virtual {p2}, Lorg/eclipse/jdt/core/dom/MethodDeclaration;->parameters()Ljava/util/List;
move-result-object v7
invoke-interface {v7}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v7
:goto_2
invoke-interface {v7}, Ljava/util/Iterator;->hasNext()Z
move-result v8
if-eqz v8, :cond_6
invoke-interface {v7}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v4
.local v4, "parameter":Ljava/lang/Object;
if-nez v2, :cond_5
const-string v8, ", "
invoke-virtual {v6, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
:cond_5
const/4 v2, 0x0
invoke-virtual {v6, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
goto :goto_2
.end local v4 # "parameter":Ljava/lang/Object;
:cond_6
const-string v7, ");"
invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
goto/16 :goto_0
.end method
.method public static getSourceEndFixed(ILorg/eclipse/jdt/internal/compiler/ast/ASTNode;)I
.locals 3
.param p0, "sourceEnd" # I
.param p1, "node" # Lorg/eclipse/jdt/internal/compiler/ast/ASTNode;
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
.prologue
const/4 v1, -0x1
if-ne p0, v1, :cond_0
invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v1
const-string v2, "$generatedBy"
invoke-virtual {v1, v2}, Ljava/lang/Class;->getField(Ljava/lang/String;)Ljava/lang/reflect/Field;
move-result-object v1
invoke-virtual {v1, p1}, Ljava/lang/reflect/Field;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Lorg/eclipse/jdt/internal/compiler/ast/ASTNode;
.local v0, "object":Lorg/eclipse/jdt/internal/compiler/ast/ASTNode;
if-eqz v0, :cond_0
iget p0, v0, Lorg/eclipse/jdt/internal/compiler/ast/ASTNode;->sourceEnd:I
.end local v0 # "object":Lorg/eclipse/jdt/internal/compiler/ast/ASTNode;
.end local p0 # "sourceEnd":I
:cond_0
return p0
.end method
.method public static getTokenEndOffsetFixed(Lorg/eclipse/jdt/internal/core/dom/rewrite/TokenScanner;IILjava/lang/Object;)I
.locals 3
.param p0, "scanner" # Lorg/eclipse/jdt/internal/core/dom/rewrite/TokenScanner;
.param p1, "token" # I
.param p2, "startOffset" # I
.param p3, "domNode" # Ljava/lang/Object;
.annotation system Ldalvik/annotation/Throws;
value = {
Lorg/eclipse/core/runtime/CoreException;
}
.end annotation
.prologue
const/4 v0, 0x0
.local v0, "isGenerated":Z
:try_start_0
invoke-virtual {p3}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v1
const-string v2, "$isGenerated"
invoke-virtual {v1, v2}, Ljava/lang/Class;->getField(Ljava/lang/String;)Ljava/lang/reflect/Field;
move-result-object v1
invoke-virtual {v1, p3}, Ljava/lang/reflect/Field;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/Boolean;
invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
move-result v0
:goto_0
if-eqz v0, :cond_0
const/4 v1, -0x1
:goto_1
return v1
:cond_0
invoke-virtual {p0, p1, p2}, Lorg/eclipse/jdt/internal/core/dom/rewrite/TokenScanner;->getTokenEndOffset(II)I
move-result v1
goto :goto_1
:catch_0
move-exception v1
goto :goto_0
.end method
.method public static isGenerated(Lorg/eclipse/jdt/core/dom/ASTNode;)Z
.locals 3
.param p0, "node" # Lorg/eclipse/jdt/core/dom/ASTNode;
.prologue
const/4 v0, 0x0
.local v0, "result":Z
:try_start_0
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v1
const-string v2, "$isGenerated"
invoke-virtual {v1, v2}, Ljava/lang/Class;->getField(Ljava/lang/String;)Ljava/lang/reflect/Field;
move-result-object v1
invoke-virtual {v1, p0}, Ljava/lang/reflect/Field;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/Boolean;
invoke-virtual {v1}, Ljava/lang/Boolean;->booleanValue()Z
move-result v0
if-nez v0, :cond_0
invoke-virtual {p0}, Lorg/eclipse/jdt/core/dom/ASTNode;->getParent()Lorg/eclipse/jdt/core/dom/ASTNode;
move-result-object v1
if-eqz v1, :cond_0
invoke-virtual {p0}, Lorg/eclipse/jdt/core/dom/ASTNode;->getParent()Lorg/eclipse/jdt/core/dom/ASTNode;
move-result-object v1
instance-of v1, v1, Lorg/eclipse/jdt/core/dom/QualifiedName;
if-eqz v1, :cond_0
invoke-virtual {p0}, Lorg/eclipse/jdt/core/dom/ASTNode;->getParent()Lorg/eclipse/jdt/core/dom/ASTNode;
move-result-object v1
invoke-static {v1}, Llombok/launch/PatchFixesHider$PatchFixes;->isGenerated(Lorg/eclipse/jdt/core/dom/ASTNode;)Z
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
move-result v0
:cond_0
:goto_0
return v0
:catch_0
move-exception v1
goto :goto_0
.end method
.method public static isListRewriteOnGeneratedNode(Lorg/eclipse/jdt/core/dom/rewrite/ListRewrite;)Z
.locals 1
.param p0, "rewrite" # Lorg/eclipse/jdt/core/dom/rewrite/ListRewrite;
.prologue
invoke-virtual {p0}, Lorg/eclipse/jdt/core/dom/rewrite/ListRewrite;->getParent()Lorg/eclipse/jdt/core/dom/ASTNode;
move-result-object v0
invoke-static {v0}, Llombok/launch/PatchFixesHider$PatchFixes;->isGenerated(Lorg/eclipse/jdt/core/dom/ASTNode;)Z
move-result v0
return v0
.end method
.method public static listRewriteHandleGeneratedMethods(Lorg/eclipse/jdt/internal/core/dom/rewrite/RewriteEvent;)[Lorg/eclipse/jdt/internal/core/dom/rewrite/RewriteEvent;
.locals 11
.param p0, "parent" # Lorg/eclipse/jdt/internal/core/dom/rewrite/RewriteEvent;
.prologue
invoke-virtual {p0}, Lorg/eclipse/jdt/internal/core/dom/rewrite/RewriteEvent;->getChildren()[Lorg/eclipse/jdt/internal/core/dom/rewrite/RewriteEvent;
move-result-object v1
.local v1, "children":[Lorg/eclipse/jdt/internal/core/dom/rewrite/RewriteEvent;
new-instance v7, Ljava/util/ArrayList;
invoke-direct {v7}, Ljava/util/ArrayList;-><init>()V
.local v7, "newChildren":Ljava/util/List;, "Ljava/util/List<Lorg/eclipse/jdt/internal/core/dom/rewrite/RewriteEvent;>;"
new-instance v6, Ljava/util/ArrayList;
invoke-direct {v6}, Ljava/util/ArrayList;-><init>()V
.local v6, "modifiedChildren":Ljava/util/List;, "Ljava/util/List<Lorg/eclipse/jdt/internal/core/dom/rewrite/RewriteEvent;>;"
const/4 v3, 0x0
.local v3, "i":I
:goto_0
array-length v8, v1
if-ge v3, v8, :cond_4
aget-object v0, v1, v3
.local v0, "child":Lorg/eclipse/jdt/internal/core/dom/rewrite/RewriteEvent;
invoke-virtual {v0}, Lorg/eclipse/jdt/internal/core/dom/rewrite/RewriteEvent;->getOriginalValue()Ljava/lang/Object;
move-result-object v8
check-cast v8, Lorg/eclipse/jdt/core/dom/ASTNode;
invoke-static {v8}, Llombok/launch/PatchFixesHider$PatchFixes;->isGenerated(Lorg/eclipse/jdt/core/dom/ASTNode;)Z
move-result v4
.local v4, "isGenerated":Z
if-eqz v4, :cond_3
invoke-virtual {v0}, Lorg/eclipse/jdt/internal/core/dom/rewrite/RewriteEvent;->getChangeKind()I
move-result v8
const/4 v9, 0x4
if-eq v8, v9, :cond_0
invoke-virtual {v0}, Lorg/eclipse/jdt/internal/core/dom/rewrite/RewriteEvent;->getChangeKind()I
move-result v8
const/4 v9, 0x2
if-ne v8, v9, :cond_2
:cond_0
const/4 v5, 0x1
.local v5, "isReplacedOrRemoved":Z
:goto_1
invoke-virtual {v0}, Lorg/eclipse/jdt/internal/core/dom/rewrite/RewriteEvent;->getOriginalValue()Ljava/lang/Object;
move-result-object v8
instance-of v2, v8, Lorg/eclipse/jdt/core/dom/MethodDeclaration;
.local v2, "convertingFromMethod":Z
if-eqz v5, :cond_1
if-eqz v2, :cond_1
invoke-virtual {v0}, Lorg/eclipse/jdt/internal/core/dom/rewrite/RewriteEvent;->getNewValue()Ljava/lang/Object;
move-result-object v8
if-eqz v8, :cond_1
new-instance v8, Lorg/eclipse/jdt/internal/core/dom/rewrite/NodeRewriteEvent;
const/4 v9, 0x0
invoke-virtual {v0}, Lorg/eclipse/jdt/internal/core/dom/rewrite/RewriteEvent;->getNewValue()Ljava/lang/Object;
move-result-object v10
invoke-direct {v8, v9, v10}, Lorg/eclipse/jdt/internal/core/dom/rewrite/NodeRewriteEvent;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
invoke-interface {v6, v8}, Ljava/util/List;->add(Ljava/lang/Object;)Z
.end local v2 # "convertingFromMethod":Z
.end local v5 # "isReplacedOrRemoved":Z
:cond_1
:goto_2
add-int/lit8 v3, v3, 0x1
goto :goto_0
:cond_2
const/4 v5, 0x0
goto :goto_1
:cond_3
invoke-interface {v7, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
goto :goto_2
.end local v0 # "child":Lorg/eclipse/jdt/internal/core/dom/rewrite/RewriteEvent;
.end local v4 # "isGenerated":Z
:cond_4
invoke-interface {v7, v6}, Ljava/util/List;->addAll(Ljava/util/Collection;)Z
invoke-interface {v7}, Ljava/util/List;->size()I
move-result v8
new-array v8, v8, [Lorg/eclipse/jdt/internal/core/dom/rewrite/RewriteEvent;
invoke-interface {v7, v8}, Ljava/util/List;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
move-result-object v8
check-cast v8, [Lorg/eclipse/jdt/internal/core/dom/rewrite/RewriteEvent;
return-object v8
.end method
.method public static removeGeneratedMethods([Lorg/eclipse/jdt/core/IMethod;)[Lorg/eclipse/jdt/core/IMethod;
.locals 6
.param p0, "methods" # [Lorg/eclipse/jdt/core/IMethod;
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
.prologue
new-instance v1, Ljava/util/ArrayList;
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
.local v1, "result":Ljava/util/List;, "Ljava/util/List<Lorg/eclipse/jdt/core/IMethod;>;"
array-length v3, p0
const/4 v2, 0x0
:goto_0
if-ge v2, v3, :cond_1
aget-object v0, p0, v2
.local v0, "m":Lorg/eclipse/jdt/core/IMethod;
invoke-interface {v0}, Lorg/eclipse/jdt/core/IMethod;->getNameRange()Lorg/eclipse/jdt/core/ISourceRange;
move-result-object v4
invoke-interface {v4}, Lorg/eclipse/jdt/core/ISourceRange;->getLength()I
move-result v4
if-lez v4, :cond_0
invoke-interface {v0}, Lorg/eclipse/jdt/core/IMethod;->getNameRange()Lorg/eclipse/jdt/core/ISourceRange;
move-result-object v4
invoke-interface {v0}, Lorg/eclipse/jdt/core/IMethod;->getSourceRange()Lorg/eclipse/jdt/core/ISourceRange;
move-result-object v5
invoke-virtual {v4, v5}, Ljava/lang/Object;->equals(Ljava/lang/Object;)Z
move-result v4
if-nez v4, :cond_0
invoke-interface {v1, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
:cond_0
add-int/lit8 v2, v2, 0x1
goto :goto_0
.end local v0 # "m":Lorg/eclipse/jdt/core/IMethod;
:cond_1
invoke-interface {v1}, Ljava/util/List;->size()I
move-result v2
array-length v3, p0
if-ne v2, v3, :cond_2
.end local p0 # "methods":[Lorg/eclipse/jdt/core/IMethod;
:goto_1
return-object p0
.restart local p0 # "methods":[Lorg/eclipse/jdt/core/IMethod;
:cond_2
invoke-interface {v1}, Ljava/util/List;->size()I
move-result v2
new-array v2, v2, [Lorg/eclipse/jdt/core/IMethod;
invoke-interface {v1, v2}, Ljava/util/List;->toArray([Ljava/lang/Object;)[Ljava/lang/Object;
move-result-object v2
check-cast v2, [Lorg/eclipse/jdt/core/IMethod;
move-object p0, v2
goto :goto_1
.end method
.method public static removeGeneratedNodes(Ljava/util/List;)Ljava/util/List;
.locals 5
.param p0, "list" # Ljava/util/List;
.prologue
:try_start_0
new-instance v2, Ljava/util/ArrayList;
invoke-interface {p0}, Ljava/util/List;->size()I
move-result v3
invoke-direct {v2, v3}, Ljava/util/ArrayList;-><init>(I)V
.local v2, "realNodes":Ljava/util/List;
invoke-interface {p0}, Ljava/util/List;->iterator()Ljava/util/Iterator;
move-result-object v4
:cond_0
:goto_0
invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z
move-result v3
if-eqz v3, :cond_1
invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v1
.local v1, "node":Ljava/lang/Object;
move-object v0, v1
check-cast v0, Lorg/eclipse/jdt/core/dom/ASTNode;
move-object v3, v0
invoke-static {v3}, Llombok/launch/PatchFixesHider$PatchFixes;->isGenerated(Lorg/eclipse/jdt/core/dom/ASTNode;)Z
move-result v3
if-nez v3, :cond_0
invoke-interface {v2, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z
:try_end_0
.catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
.end local v1 # "node":Ljava/lang/Object;
.end local v2 # "realNodes":Ljava/util/List;
:catch_0
move-exception v3
move-object v2, p0
:cond_1
return-object v2
.end method
.method public static removeGeneratedSimpleNames([Lorg/eclipse/jdt/core/dom/SimpleName;)[Lorg/eclipse/jdt/core/dom/SimpleName;
.locals 7
.param p0, "in" # [Lorg/eclipse/jdt/core/dom/SimpleName;
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
.prologue
const-class v5, Lorg/eclipse/jdt/core/dom/SimpleName;
const-string v6, "$isGenerated"
invoke-virtual {v5, v6}, Ljava/lang/Class;->getField(Ljava/lang/String;)Ljava/lang/reflect/Field;
move-result-object v2
.local v2, "f":Ljava/lang/reflect/Field;
const/4 v0, 0x0
.local v0, "count":I
const/4 v3, 0x0
.local v3, "i":I
:goto_0
array-length v5, p0
if-ge v3, v5, :cond_2
aget-object v5, p0, v3
if-eqz v5, :cond_0
aget-object v5, p0, v3
invoke-virtual {v2, v5}, Ljava/lang/reflect/Field;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v5
check-cast v5, Ljava/lang/Boolean;
invoke-virtual {v5}, Ljava/lang/Boolean;->booleanValue()Z
move-result v5
if-nez v5, :cond_1
:cond_0
add-int/lit8 v0, v0, 0x1
:cond_1
add-int/lit8 v3, v3, 0x1
goto :goto_0
:cond_2
array-length v5, p0
if-ne v0, v5, :cond_3
.end local p0 # "in":[Lorg/eclipse/jdt/core/dom/SimpleName;
:goto_1
return-object p0
.restart local p0 # "in":[Lorg/eclipse/jdt/core/dom/SimpleName;
:cond_3
new-array v4, v0, [Lorg/eclipse/jdt/core/dom/SimpleName;
.local v4, "newSimpleNames":[Lorg/eclipse/jdt/core/dom/SimpleName;
const/4 v0, 0x0
const/4 v3, 0x0
:goto_2
array-length v5, p0
if-ge v3, v5, :cond_6
aget-object v5, p0, v3
if-eqz v5, :cond_4
aget-object v5, p0, v3
invoke-virtual {v2, v5}, Ljava/lang/reflect/Field;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v5
check-cast v5, Ljava/lang/Boolean;
invoke-virtual {v5}, Ljava/lang/Boolean;->booleanValue()Z
move-result v5
if-nez v5, :cond_5
:cond_4
add-int/lit8 v1, v0, 0x1
.end local v0 # "count":I
.local v1, "count":I
aget-object v5, p0, v3
aput-object v5, v4, v0
move v0, v1
.end local v1 # "count":I
.restart local v0 # "count":I
:cond_5
add-int/lit8 v3, v3, 0x1
goto :goto_2
:cond_6
move-object p0, v4
goto :goto_1
.end method
.method public static returnFalse(Ljava/lang/Object;)Z
.locals 1
.param p0, "object" # Ljava/lang/Object;
.prologue
const/4 v0, 0x0
return v0
.end method
.method public static returnTrue(Ljava/lang/Object;)Z
.locals 1
.param p0, "object" # Ljava/lang/Object;
.prologue
const/4 v0, 0x1
return v0
.end method
.method public static setIsGeneratedFlag(Lorg/eclipse/jdt/core/dom/ASTNode;Lorg/eclipse/jdt/internal/compiler/ast/ASTNode;)V
.locals 4
.param p0, "domNode" # Lorg/eclipse/jdt/core/dom/ASTNode;
.param p1, "internalNode" # Lorg/eclipse/jdt/internal/compiler/ast/ASTNode;
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
.prologue
const/4 v1, 0x1
if-eqz p1, :cond_0
if-nez p0, :cond_1
:cond_0
:goto_0
return-void
:cond_1
sget-object v2, Llombok/eclipse/EclipseAugments;->ASTNode_generatedBy:Llombok/core/FieldAugment;
invoke-virtual {v2, p1}, Llombok/core/FieldAugment;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v2
if-eqz v2, :cond_2
move v0, v1
.local v0, "isGenerated":Z
:goto_1
if-eqz v0, :cond_0
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v2
const-string v3, "$isGenerated"
invoke-virtual {v2, v3}, Ljava/lang/Class;->getField(Ljava/lang/String;)Ljava/lang/reflect/Field;
move-result-object v2
invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v1
invoke-virtual {v2, p0, v1}, Ljava/lang/reflect/Field;->set(Ljava/lang/Object;Ljava/lang/Object;)V
goto :goto_0
.end local v0 # "isGenerated":Z
:cond_2
const/4 v0, 0x0
goto :goto_1
.end method
.method public static setIsGeneratedFlagForName(Lorg/eclipse/jdt/core/dom/Name;Ljava/lang/Object;)V
.locals 4
.param p0, "name" # Lorg/eclipse/jdt/core/dom/Name;
.param p1, "internalNode" # Ljava/lang/Object;
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
.prologue
const/4 v1, 0x1
instance-of v2, p1, Lorg/eclipse/jdt/internal/compiler/ast/ASTNode;
if-eqz v2, :cond_0
sget-object v2, Llombok/eclipse/EclipseAugments;->ASTNode_generatedBy:Llombok/core/FieldAugment;
check-cast p1, Lorg/eclipse/jdt/internal/compiler/ast/ASTNode;
.end local p1 # "internalNode":Ljava/lang/Object;
invoke-virtual {v2, p1}, Llombok/core/FieldAugment;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v2
if-eqz v2, :cond_1
move v0, v1
.local v0, "isGenerated":Z
:goto_0
if-eqz v0, :cond_0
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v2
const-string v3, "$isGenerated"
invoke-virtual {v2, v3}, Ljava/lang/Class;->getField(Ljava/lang/String;)Ljava/lang/reflect/Field;
move-result-object v2
invoke-static {v1}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;
move-result-object v1
invoke-virtual {v2, p0, v1}, Ljava/lang/reflect/Field;->set(Ljava/lang/Object;Ljava/lang/Object;)V
.end local v0 # "isGenerated":Z
:cond_0
return-void
:cond_1
const/4 v0, 0x0
goto :goto_0
.end method
.method public static skipRewritingGeneratedNodes(Lorg/eclipse/jdt/core/dom/ASTNode;)Z
.locals 2
.param p0, "node" # Lorg/eclipse/jdt/core/dom/ASTNode;
.annotation system Ldalvik/annotation/Throws;
value = {
Ljava/lang/Exception;
}
.end annotation
.prologue
invoke-virtual {p0}, Ljava/lang/Object;->getClass()Ljava/lang/Class;
move-result-object v0
const-string v1, "$isGenerated"
invoke-virtual {v0, v1}, Ljava/lang/Class;->getField(Ljava/lang/String;)Ljava/lang/reflect/Field;
move-result-object v0
invoke-virtual {v0, p0}, Ljava/lang/reflect/Field;->get(Ljava/lang/Object;)Ljava/lang/Object;
move-result-object v0
check-cast v0, Ljava/lang/Boolean;
invoke-virtual {v0}, Ljava/lang/Boolean;->booleanValue()Z
move-result v0
return v0
.end method