示例#1
0
 static public void AddLinkInfo <REPRESENTATION_TYPE, VALUE_TYPE>(this RepresentationEngine item, string n, Process <REPRESENTATION_TYPE, VALUE_TYPE> a, Operation <VALUE_TYPE, REPRESENTATION_TYPE> r, Operation <bool, REPRESENTATION_TYPE> i)
 {
     item.AddLinkInfo <REPRESENTATION_TYPE>(
         new Variable_Operation <REPRESENTATION_TYPE, VALUE_TYPE>(n, a, r),
         i
         );
 }
示例#2
0
        public CmlTargetInfo(object req, object t, IEnumerable <object> p, RepresentationEngine e)
        {
            requester = req;

            target  = t;
            parents = p.ToList();

            engine = e;
        }
示例#3
0
 static public void AddSimpleConstructor <T>(this RepresentationEngine item, Operation <T> o)
 {
     item.AddSimpleConstructor <T>(typeof(T).Name, o);
 }
示例#4
0
 static public void AddLinkInfo(this RepresentationEngine item, string n, Variable v)
 {
     item.AddInfo(new RepresentationInfo_Link(n, v));
 }
示例#5
0
 static public void AddSimpleConstructor <T>(this RepresentationEngine item, string n, Operation <T> o)
 {
     item.AddConstructor(new RepresentationConstructor_Operation <T>(n, o));
 }
示例#6
0
 public CmlTargetInfo(object req, object t, object p, RepresentationEngine e) : this(req, t, new object[] { p }, e)
 {
 }
示例#7
0
 static public RepresentationInfoSet_SelectableChildren AddSelectableDynamicChildrenInfo(this RepresentationEngine item, string n, EffigyInfo_Collection e)
 {
     return(item.AddAndGetInfoSet(new RepresentationInfoSet_SelectableChildren(n, e)));
 }
示例#8
0
 static public void AddFunctionHookInfo(this RepresentationEngine item, Hook h)
 {
     item.AddFunctionHookInfo(h.GetHookName(), h);
 }
示例#9
0
 static public void AddFunctionInfo <REPRESENTATION_TYPE, DELEGATE_TYPE>(this RepresentationEngine item, string n, Process <REPRESENTATION_TYPE, DELEGATE_TYPE> a)
 {
     item.AddFunctionHookInfo(n,
                              new Hook_Operation <REPRESENTATION_TYPE, DELEGATE_TYPE>(n, a, null)
                              );
 }
示例#10
0
        static public T AddAndGetInfoSet <T>(this RepresentationEngine item, T info) where T : RepresentationInfoSet
        {
            item.AddInfoSet(info);

            return(info);
        }
示例#11
0
 static public void AddStaticChildrenInfo(this RepresentationEngine item, string n, StaticEffigyInfo effigy)
 {
     item.AddInfo(new RepresentationInfo_StaticChildren(n, effigy));
 }
示例#12
0
 static public void AddLinkInfo <REPRESENTATION_TYPE>(this RepresentationEngine item, string n, Variable v, Operation <bool, REPRESENTATION_TYPE> i)
 {
     item.AddLinkInfo(n, new Variable_Blockable <REPRESENTATION_TYPE>(v, i));
 }
示例#13
0
 static public void AddLinkInfo <REPRESENTATION_TYPE>(this RepresentationEngine item, Variable v, Operation <bool, REPRESENTATION_TYPE> i)
 {
     item.AddLinkInfo <REPRESENTATION_TYPE>(v.GetVariableName(), v, i);
 }
示例#14
0
 static public void AddLinkInfos <REPRESENTATION_TYPE>(this RepresentationEngine item, params string[] nps)
 {
     item.AddLinkInfos <REPRESENTATION_TYPE>((IEnumerable <string>)nps);
 }
示例#15
0
 static public void AddLinkInfos <REPRESENTATION_TYPE>(this RepresentationEngine item, IEnumerable <string> nps)
 {
     nps.Process(np => item.AddLinkInfo <REPRESENTATION_TYPE>(np));
 }
示例#16
0
 static public void AddLinkInfo <REPRESENTATION_TYPE>(this RepresentationEngine item, string np)
 {
     item.AddLinkInfo <REPRESENTATION_TYPE>(np, np);
 }
示例#17
0
 static public void AddLinkInfo <REPRESENTATION_TYPE>(this RepresentationEngine item, string n, string p)
 {
     item.AddLinkInfo(n, typeof(REPRESENTATION_TYPE).GetVariableByPath(p));
 }
示例#18
0
 static public void AddLinkInfo(this RepresentationEngine item, Variable v)
 {
     item.AddLinkInfo(v.GetVariableName(), v);
 }
示例#19
0
 static public void AddFunctionInfo <REPRESENTATION_TYPE>(this RepresentationEngine item, string n, Process <REPRESENTATION_TYPE, FunctionSyncro> p)
 {
     item.AddInfo(new RepresentationInfo_Function_Process <REPRESENTATION_TYPE>(n, p));
 }
示例#20
0
 static public void AddLinkInfo <REPRESENTATION_TYPE, VALUE_TYPE>(this RepresentationEngine item, string n, Process <REPRESENTATION_TYPE, VALUE_TYPE> a)
 {
     item.AddLinkInfo(new Variable_Operation <REPRESENTATION_TYPE, VALUE_TYPE>(n, a, null));
 }
示例#21
0
 static public void AddFunctionHookInfo(this RepresentationEngine item, string n, Hook h)
 {
     item.AddInfo(new RepresentationInfo_FunctionHook(n, h));
 }
示例#22
0
 static public void AddDynamicChildrenInfo <REPRESENTATION_TYPE, CHILD_TYPE>(this RepresentationEngine item, string n, Process <REPRESENTATION_TYPE, IEnumerable <CHILD_TYPE> > sp)
 {
     item.AddDynamicChildrenInfo(n,
                                 new EffigyInfo_Collection_Flush_Process <REPRESENTATION_TYPE, CHILD_TYPE>(sp)
                                 );
 }
示例#23
0
 static public void AddFunctionHookInfo <REPRESENTATION_TYPE>(this RepresentationEngine item, string n, string p)
 {
     item.AddFunctionHookInfo(n, typeof(REPRESENTATION_TYPE).GetHookByPath(p));
 }
示例#24
0
 static public void AddDynamicChildrenInfo <REPRESENTATION_TYPE, CHILD_TYPE>(this RepresentationEngine item, Process <REPRESENTATION_TYPE, IEnumerable <CHILD_TYPE> > sp)
 {
     item.AddDynamicChildrenInfo <REPRESENTATION_TYPE, CHILD_TYPE>(RepresentationInfo.UnamedChildren, sp);
 }
示例#25
0
 static public RepresentationInfoSet_SelectableChildren AddSelectableDynamicChildrenInfo <REPRESENTATION_TYPE, CHILD_TYPE>(this RepresentationEngine item, string n, Process <REPRESENTATION_TYPE, IEnumerable <CHILD_TYPE> > sp)
 {
     return(item.AddSelectableDynamicChildrenInfo(n,
                                                  new EffigyInfo_Collection_Flush_Process <REPRESENTATION_TYPE, CHILD_TYPE>(sp)
                                                  ));
 }
示例#26
0
 static public RepresentationInfoSet_SelectableChildren AddSelectableDynamicChildrenInfo <REPRESENTATION_TYPE, CHILD_TYPE>(this RepresentationEngine item, Process <REPRESENTATION_TYPE, IEnumerable <CHILD_TYPE> > sp)
 {
     return(item.AddSelectableDynamicChildrenInfo <REPRESENTATION_TYPE, CHILD_TYPE>(RepresentationInfo.UnamedChildren, sp));
 }
示例#27
0
 public CmlTargetInfo(object t, RepresentationEngine e) : this(t, t, Empty.IEnumerable <object>(), e)
 {
 }
示例#28
0
 static public void AddVariationInstancer <REPRESENTATION_TYPE>(this RepresentationEngine item, string t, string b, Process <REPRESENTATION_TYPE> p)
 {
     item.AddInstancer(
         new RepresentationInstancer_Variation_Process <REPRESENTATION_TYPE>(t, b, p)
         );
 }
示例#29
0
 static public RepresentationInfoSet_SelectableChildren AddSelectableDynamicChildrenInfo(this RepresentationEngine item, EffigyInfo_Collection e)
 {
     return(item.AddSelectableDynamicChildrenInfo(RepresentationInfo.UnamedChildren, e));
 }
示例#30
0
 static public RepresentationResult AssertCreateRepresentation(this RepresentationEngine item, object target, string layout = CmlLinkSource.DEFAULT_LAYOUT)
 {
     return(item.GetClassLibrary().AssertGetClass(target.GetTypeEX(), layout)
            .IfNotNull(c => c.CreateResults(new CmlContext_Base(new CmlTargetInfo(target, item)))));
 }