static public ActionInstance GetActionInstanceByParentablePath(this TargetInstance item, TargetInstance parent, string full_path, IEnumerable <object> arguments) { if (full_path.TryTrimPrefix("parent.", out full_path)) { return(parent.GetActionInstanceByPath(full_path, arguments)); } return(item.GetActionInstanceByPath(full_path, arguments)); }
static public VariableInstance GetVariableInstanceByParentablePath(this TargetInstance item, TargetInstance parent, string full_path) { if (full_path.TryTrimPrefix("parent.", out full_path)) { return(parent.GetVariableInstanceByPath(full_path)); } return(item.GetVariableInstanceByPath(full_path)); }
public ActionInstance(TargetInstance t, Action a) : base(t) { action = a; }
static public VariableInstance GetVariableInstanceByComponent(this TargetInstance item, string component) { return(item.GetTargetType().GetVariableByComponent(component) .IfNotNull(v => v.CreateInstance(item))); }
static public VariableInstance GetVariableInstanceByPath(this TargetInstance item, string full_path) { return(item.GetTargetType().GetVariableByPath(full_path) .IfNotNull(v => v.CreateInstance(item))); }
static public FunctionInstance CreateInstance(this Function item, TargetInstance target) { return(new FunctionInstance(target, item)); }
public FunctionInstance(TargetInstance t, Function f) : base(t) { function = f; }
public VariableInstance(TargetInstance t, Variable v) : base(t) { variable = v; }
static public VariableInstance CreateInstance(this Variable item, TargetInstance target) { return(new VariableInstance(target, item)); }
static public Type GetTargetType(this TargetInstance item) { return(item.GetTarget().GetTypeEX()); }
public MemberInstance(TargetInstance t) { target_instance = t; }
static public ActionInstance GetActionInstanceByParentablePath(this TargetInstance item, TargetInstance parent, string full_path, params object[] arguments) { return(item.GetActionInstanceByParentablePath(parent, full_path, (IEnumerable <object>)arguments)); }
static public ActionInstance GetActionInstanceByPath(this TargetInstance item, string full_path, IEnumerable <object> arguments) { return(item.GetTargetType().GetActionByPath(full_path, arguments) .IfNotNull(a => a.CreateInstance(item))); }
static public ActionInstance GetActionInstanceByPathAndComponent(this TargetInstance item, string path, string component, params object[] arguments) { return(item.GetActionInstanceByPathAndComponent(path, component, (IEnumerable <object>)arguments)); }
static public ActionInstance GetActionInstanceByPathAndComponent(this TargetInstance item, string path, string component, IEnumerable <object> arguments) { return(item.GetTargetType().GetActionByPathAndComponent(path, component, arguments) .IfNotNull(a => a.CreateInstance(item))); }