diff --git a/baksmali/src/main/resources/templates/templates/baksmali.stg b/baksmali/src/main/resources/templates/templates/baksmali.stg deleted file mode 100644 index 8b5b42f7..00000000 --- a/baksmali/src/main/resources/templates/templates/baksmali.stg +++ /dev/null @@ -1,436 +0,0 @@ -group baksmali; - -smaliFile(AccessFlags, ClassType, SuperType, SourceFile, Interfaces, Annotations, StaticFields, - InstanceFields, DirectMethods, VirtualMethods) ::= -<< -.class }> - -.super - - - -.source "" - - - - - -# interfaces - - - - - - -# annotations - - - - - - -# static fields - - - - - - -# instance fields - - - - - - -# direct methods - - - - - - -# virtual methods - - - ->> - - - - -implement(interface) ::= -<< -.implements ->> - - -annotation(Visibility, AnnotationType, Elements) ::= -<< -.annotation - - - - - - - -.end annotation ->> - - - -field(AccessFlags, FieldName, FieldType, Annotations, InitialValue, Comments) ::= -<< -} ; separator="\n"> - - -.field }>: = - - -.end field - - ->> - - -method(AccessFlags, MethodName, Prototype, HasCode, RegistersDirective, RegisterCount, Parameters, Annotations, - MethodItems) ::= -<< -.method }> - - - - - - - - - - - - - -.end method ->> - -Parameter(ParameterName, Annotations) ::= -<< -.parameter "" - - -.end parameter - ->> - -Format10t(Opcode, TargetLabel) ::= -<< - ->> - -Format10x(Opcode) ::= -<< - ->> - -Format11n(Opcode, RegisterA, Literal) ::= -<< - , ->> - -Format11x(Opcode, RegisterA) ::= -<< - ->> - -Format12x(Opcode, RegisterA, RegisterB) ::= -<< - , ->> - -Format20t(Opcode, TargetLabel) ::= -<< - ->> - -Format21c(Opcode, RegisterA, Reference) ::= -<< - , ->> - -Format21h(Opcode, RegisterA, Literal) ::= -<< - , ->> - -Format21s(Opcode, RegisterA, Literal) ::= -<< - , ->> - -Format21t(Opcode, RegisterA, TargetLabel) ::= -<< - , ->> - -Format22b(Opcode, RegisterA, RegisterB, Literal) ::= -<< - , , ->> - -Format22c(Opcode, RegisterA, RegisterB, Reference) ::= -<< - , , ->> - -Format22cs(Opcode, RegisterA, RegisterB, FieldOffset) ::= -<< - , , field@ ->> - -Format22s(Opcode, RegisterA, RegisterB, Literal) ::= -<< - , , ->> - -Format22t(Opcode, RegisterA, RegisterB, TargetLabel) ::= -<< - , , ->> - -Format22x(Opcode, RegisterA, RegisterB) ::= -<< - , ->> - -Format23x(Opcode, RegisterA, RegisterB, RegisterC) ::= -<< - , , ->> - -Format30t(Opcode, TargetLabel) ::= -<< - ->> - -Format31c(Opcode, RegisterA, Reference) ::= -<< - , ->> - -Format31i(Opcode, RegisterA, Literal) ::= -<< - , ->> - -Format31t(Opcode, RegisterA, TargetLabel) ::= -<< - , ->> - -Format32x(Opcode, RegisterA, RegisterB) ::= -<< - , ->> - -Format35c(Opcode, Registers, Reference) ::= -<< - {}, ->> - -Format35s(Opcode, Registers, Reference) ::= -<< - {}, ->> - -Format35ms(Opcode, Registers, MethodIndex) ::= -<< - {}, vtable@ ->> - -Format3rc(Opcode, StartRegister, LastRegister, Reference) ::= -<< - { .. }, ->> - -Format3rms(Opcode, StartRegister, LastRegister, MethodIndex) ::= -<< - { .. }, vtable@ ->> - -Format51l(Opcode, RegisterA, Literal) ::= -<< - , ->> - -CommentedOutMethodItem(MethodItem) ::= -<< -# ->> - -UnresolvedNullReference(Opcode, Register, UseInvokeRange, AddGoto) ::= -<< - -#Replaced unresolvable optimized invoke-*-range-quick instruction -#with a generic method call that will throw a NullPointerException -invoke-virtual/range { .. }, Ljava/lang/Object;->hashCode()I -goto/32 0 - -#Replaced unresolvable optimized instruction with a throw -throw - ->> - - -ArrayData(Opcode, ElementWidth, Values, Dead) ::= -<< -#.array-data - -}; separator="\n"> - -}; separator="\n"> - - -#.end array-data ->> - -ArrayElement(Bytes) ::= -<< - ->> - -PackedSwitchData(Opcode, FirstKey, Targets, Dead) ::= -<< -#.packed-switch - -}; separator="\n"> - -}; separator="\n"> - - -#.end packed-switch ->> - -SparseSwitchData(Opcode, Targets, Dead) ::= -<< -#.sparse-switch - - -> }; separator="\n"> - - -> }; separator="\n"> - - -#.end sparse-switch ->> - - -Label(Prefix, Suffix) ::= -<< -: ->> - -Line(Line) ::= -<< -.line ->> - -EndPrologue(Prologue) ::= -<< -.prologue ->> - -StartEpilogue(Epilogue) ::= -<< -.epilogue ->> - -StartLocal(Register, Name, Type, Signature) ::= -<< -.local , :,"" ->> - -EndLocal(Register, Name, Type, Signature) ::= -<< -.end local #:,, "" ->> - -RestartLocal(Register, Name, Type, Signature) ::= -<< -.restart local #:,, "" ->> - -SetFile(FileName) ::= -<< -.source "" ->> - -Blank(Blank) ::= -<< - ->> - -Catch(ExceptionType, StartLabel, EndLabel, HandlerLabel) ::= -<< -.catch .catchall { .. } ->> - - -StringReference(EscapedValue) ::= -<< -"" ->> - -FieldReference(ContainingClass, FieldName, FieldType) ::= -<< -->: ->> - -MethodReference(ContainingClass, MethodName, Prototype) ::= -<< --> ->> - -TypeReference(TypeDescriptor) ::= -<< - ->> - - -SimpleEncodedValue(Value) ::= -<< - ->> - -EncodedIndexedItemReference(Value) ::= -<< - ->> - -ArrayEncodedValue(Value) ::= -<< -{ - -} ->> - -EnumEncodedValue(Value) ::= -<< -.enum ->> - -AnnotationEncodedValue(AnnotationType, Elements) ::= -<< -.subannotation - -.end subannotation ->> - -AnnotationElement(Name, Value) ::= -<< - = ->> - -Comment(Comment) ::= -<< -# ->> \ No newline at end of file