Ejemplo n.º 1
0
        private static void GenerateTypeSupport(Type type)
        {
            CachedNodeType newCachedType = new CachedNodeType(type);

            CachedNodeTypes[type] = newCachedType;
            NodeWrenches[type]    = new NodeWrench(newCachedType);
        }
Ejemplo n.º 2
0
        public NodeWrench(CachedNodeType cachedNodeType)
        {
            _cachedNodeType = cachedNodeType;

            _classWirers = cachedNodeType.Attributes.Where(a => a is IClassWirer).Cast <IClassWirer>().ToArray();

            foreach (CachedNodeStateInfo state in cachedNodeType.GetStates())
            {
                _stateWirers[state] = state.Attributes.Where(a => a is IStateWirer).Cast <IStateWirer>().ToArray();
            }

            foreach (CachedNodeMethodInfo method in cachedNodeType.GetMethods())
            {
                _methodWirers[method] = method.Attributes.Where(a => a is IMethodWirer).Cast <IMethodWirer>().ToArray();
            }
        }
 public CachedTokenElement(CachedNodeType tokenNodeType) : base(tokenNodeType)
 {
 }
Ejemplo n.º 4
0
 public void Wire(Node node, CachedNodeType @class)
 {
     node.AddToGroup(_group);
 }
 public CachedTokenElement(CachedNodeType tokenNodeType) : base(tokenNodeType) { }