# Path: formatters/log.py
# class Log:
# 
#     DEBUG = False
# 
#     @staticmethod
#     def d(tag, message):
#         if Log.DEBUG: print "D/%s: %s" %(tag, message)
# 
#     @staticmethod
#     def i(tag, message):
#         print "I/%s: %s" %(tag, message)
# 
#     @staticmethod
#     def w(tag, message):
#         print "W/%s: %s" %(tag, message)
# 
#     @staticmethod
#     def e(tag, message):
#         print "E/%s: %s" %(tag, message)
# 
# class Paint:
# 
#     @staticmethod
#     def bold(s):
#         return "%s[01m%s%s[0m" % (chr(27), s.rstrip(), chr(27))
# 
#     @staticmethod
#     def red(s):
#         return "%s[33;31m%s%s[0m" % (chr(27), s.rstrip(), chr(27))
# 
#     @staticmethod
#     def green(s):
#         return "%s[31;32m%s%s[0m" % (chr(27), s.rstrip(), chr(27))
# 
#     @staticmethod
#     def blue(s):
#         return "%s[34;01m%s%s[0m" % (chr(27), s.rstrip(), chr(27))
# 
#     @staticmethod
#     def yellow(s):
#         return "%s[31;33m%s%s[0m" % (chr(27), s.rstrip(), chr(27))


import os, sys
import re
import Smali
import SmaliEntry
import time
import getpass
from formatters.log import Log, Paint

# only use in methods
KEY_ABSTRACT = "abstract"
KEY_CONSTRUCTOR = "constructor"
KEY_BRIDGE = "bridge"
KEY_DECLARED_SYNCHRONIZED = "declared-synchronized"
KEY_NATIVE = "native"
KEY_SYNCHRONIZED = "synchronized"
KEY_VARARGS = "varargs"

# only use in field
KEY_ENUM = "enum"
KEY_TRANSIENT = "transient"
KEY_VOLATILE = "volatile"

KEY_INTERFACE = "interface"

class SLog():
    TAG = "smali-parser"
    DEBUG = False
    FAILED_LIST = []
    SUCCESS_LIST = []
    
    ADVICE = ""
    SUCCESS = ""
    @staticmethod
    def e(s):
        Log.e(SLog.TAG, s)
    @staticmethod
    def w(s):

# Path: formatters/log.py
# class Log:
# 
#     DEBUG = False
# 
#     @staticmethod
#     def d(tag, message):
#         if Log.DEBUG: print "D/%s: %s" %(tag, message)
# 
#     @staticmethod
#     def i(tag, message):
#         print "I/%s: %s" %(tag, message)
# 
#     @staticmethod
#     def w(tag, message):
#         print "W/%s: %s" %(tag, message)
# 
#     @staticmethod
#     def e(tag, message):
#         print "E/%s: %s" %(tag, message)
# 
# class Paint:
# 
#     @staticmethod
#     def bold(s):
#         return "%s[01m%s%s[0m" % (chr(27), s.rstrip(), chr(27))
# 
#     @staticmethod
#     def red(s):
#         return "%s[33;31m%s%s[0m" % (chr(27), s.rstrip(), chr(27))
# 
#     @staticmethod
#     def green(s):
#         return "%s[31;32m%s%s[0m" % (chr(27), s.rstrip(), chr(27))
# 
#     @staticmethod
#     def blue(s):
#         return "%s[34;01m%s%s[0m" % (chr(27), s.rstrip(), chr(27))
# 
#     @staticmethod
#     def yellow(s):
#         return "%s[31;33m%s%s[0m" % (chr(27), s.rstrip(), chr(27))


# Path: smaliparser/utils.py
import os, sys
import re
import Smali
import SmaliEntry
import time
import getpass
from formatters.log import Log, Paint


# only use in methods
KEY_ABSTRACT = "abstract"
KEY_CONSTRUCTOR = "constructor"
KEY_BRIDGE = "bridge"
KEY_DECLARED_SYNCHRONIZED = "declared-synchronized"
KEY_NATIVE = "native"
KEY_SYNCHRONIZED = "synchronized"
KEY_VARARGS = "varargs"

# only use in field
KEY_ENUM = "enum"
KEY_TRANSIENT = "transient"
KEY_VOLATILE = "volatile"

KEY_INTERFACE = "interface"

class SLog():
    TAG = "smali-parser"
    DEBUG = False
    FAILED_LIST = []
    SUCCESS_LIST = []
    
    ADVICE = ""
    SUCCESS = ""
    @staticmethod
    def e(s):
        Log.e(SLog.TAG, s)
    @staticmethod
    def w(s):

        Log.w(SLog.TAG, s)