Aestate
Public Member Functions | Public Attributes | Private Attributes | List of all members
aestate.work.AopContainer.AopModelObject Class Reference
Inheritance diagram for aestate.work.AopContainer.AopModelObject:
Inheritance graph
Collaboration diagram for aestate.work.AopContainer.AopModelObject:
Collaboration graph

Public Member Functions

def __init__ (self, before=None, after=None, before_args=None, before_kwargs=None, after_args=None, after_kwargs=None)
 
def set_args (self, *args, **kwargs)
 
def start (self)
 
def init_fields (self)
 
def __get__ (self, instance, cls)
 
def format_name (self, name)
 
def setters (self, i1, i2, i3, k1, v1, k2, v2, k3, v3)
 
def init_attr (self)
 
def before_run (self)
 
def after_run (self, result)
 

Public Attributes

 args
 
 kwargs
 
 after
 
 after_args
 
 after_kwargs
 
 before
 
 before_args
 
 before_kwargs
 

Private Attributes

 __before_func__
 
 __before_args_data__
 
 __before_kwargs_data__
 
 __after_func__
 
 __after_args_data__
 
 __after_kwargs_data__
 
 __after__
 
 __after_args__
 
 __after_kwargs__
 
 __before_name__
 
 __before_args_name__
 
 __before_kwargs_name__
 
 __after_name__
 
 __after_args_name__
 
 __after_kwargs_name__
 

Detailed Description

    此类为AopModel提供所有操作

Definition at line 6 of file AopContainer.py.

Constructor & Destructor Documentation

◆ __init__()

def aestate.work.AopContainer.AopModelObject.__init__ (   self,
  before = None,
  after = None,
  before_args = None,
  before_kwargs = None,
  after_args = None,
  after_kwargs = None 
)

Definition at line 11 of file AopContainer.py.

Member Function Documentation

◆ __get__()

def aestate.work.AopContainer.AopModelObject.__get__ (   self,
  instance,
  cls 
)

Definition at line 75 of file AopContainer.py.

◆ after_run()

def aestate.work.AopContainer.AopModelObject.after_run (   self,
  result 
)
执行after方法

Definition at line 144 of file AopContainer.py.

Here is the caller graph for this function:

◆ before_run()

def aestate.work.AopContainer.AopModelObject.before_run (   self)
执行before方法

Definition at line 128 of file AopContainer.py.

Here is the caller graph for this function:

◆ format_name()

def aestate.work.AopContainer.AopModelObject.format_name (   self,
  name 
)
格式化名称字符串

Definition at line 81 of file AopContainer.py.

◆ init_attr()

def aestate.work.AopContainer.AopModelObject.init_attr (   self)
初始化cls下的字段
通过使用setters下的setter()功能批量解析是否需要before或者after操作

Definition at line 98 of file AopContainer.py.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ init_fields()

def aestate.work.AopContainer.AopModelObject.init_fields (   self)

Definition at line 50 of file AopContainer.py.

Here is the caller graph for this function:

◆ set_args()

def aestate.work.AopContainer.AopModelObject.set_args (   self,
args,
**  kwargs 
)

Definition at line 23 of file AopContainer.py.

◆ setters()

def aestate.work.AopContainer.AopModelObject.setters (   self,
  i1,
  i2,
  i3,
  k1,
  v1,
  k2,
  v2,
  k3,
  v3 
)
批量设置

Definition at line 87 of file AopContainer.py.

Here is the caller graph for this function:

◆ start()

def aestate.work.AopContainer.AopModelObject.start (   self)
主操作

Definition at line 27 of file AopContainer.py.

Here is the call graph for this function:

Member Data Documentation

◆ __after__

aestate.work.AopContainer.AopModelObject.__after__
private

Definition at line 60 of file AopContainer.py.

◆ __after_args__

aestate.work.AopContainer.AopModelObject.__after_args__
private

Definition at line 61 of file AopContainer.py.

◆ __after_args_data__

aestate.work.AopContainer.AopModelObject.__after_args_data__
private

Definition at line 18 of file AopContainer.py.

◆ __after_args_name__

aestate.work.AopContainer.AopModelObject.__after_args_name__
private

Definition at line 72 of file AopContainer.py.

◆ __after_func__

aestate.work.AopContainer.AopModelObject.__after_func__
private

Definition at line 17 of file AopContainer.py.

◆ __after_kwargs__

aestate.work.AopContainer.AopModelObject.__after_kwargs__
private

Definition at line 62 of file AopContainer.py.

◆ __after_kwargs_data__

aestate.work.AopContainer.AopModelObject.__after_kwargs_data__
private

Definition at line 19 of file AopContainer.py.

◆ __after_kwargs_name__

aestate.work.AopContainer.AopModelObject.__after_kwargs_name__
private

Definition at line 73 of file AopContainer.py.

◆ __after_name__

aestate.work.AopContainer.AopModelObject.__after_name__
private

Definition at line 71 of file AopContainer.py.

◆ __before_args_data__

aestate.work.AopContainer.AopModelObject.__before_args_data__
private

Definition at line 14 of file AopContainer.py.

◆ __before_args_name__

aestate.work.AopContainer.AopModelObject.__before_args_name__
private

Definition at line 66 of file AopContainer.py.

◆ __before_func__

aestate.work.AopContainer.AopModelObject.__before_func__
private

Definition at line 13 of file AopContainer.py.

◆ __before_kwargs_data__

aestate.work.AopContainer.AopModelObject.__before_kwargs_data__
private

Definition at line 15 of file AopContainer.py.

◆ __before_kwargs_name__

aestate.work.AopContainer.AopModelObject.__before_kwargs_name__
private

Definition at line 67 of file AopContainer.py.

◆ __before_name__

aestate.work.AopContainer.AopModelObject.__before_name__
private

Definition at line 65 of file AopContainer.py.

◆ after

aestate.work.AopContainer.AopModelObject.after

Definition at line 52 of file AopContainer.py.

◆ after_args

aestate.work.AopContainer.AopModelObject.after_args

Definition at line 53 of file AopContainer.py.

◆ after_kwargs

aestate.work.AopContainer.AopModelObject.after_kwargs

Definition at line 54 of file AopContainer.py.

◆ args

aestate.work.AopContainer.AopModelObject.args

Definition at line 24 of file AopContainer.py.

◆ before

aestate.work.AopContainer.AopModelObject.before

Definition at line 56 of file AopContainer.py.

◆ before_args

aestate.work.AopContainer.AopModelObject.before_args

Definition at line 57 of file AopContainer.py.

◆ before_kwargs

aestate.work.AopContainer.AopModelObject.before_kwargs

Definition at line 58 of file AopContainer.py.

◆ kwargs

aestate.work.AopContainer.AopModelObject.kwargs

Definition at line 25 of file AopContainer.py.


The documentation for this class was generated from the following file: