private static List <NodeType> createNonterminalTypes() { return(getAllTypes().Where(t => t != NodeType.dirEntryPoint && NodeFactory.createNode(t).successors.count != 0).ToList()); }
private static List <NodeType> createAllTypes() { return(Enum.GetValues(typeof(NodeType)).Cast <NodeType>().OrderBy(t => NodeFactory.createNode(t).successors.count).ToList()); }
private static List <NodeType> createTerminalTypes() { return(getAllTypes().Where(t => NodeFactory.createNode(t).successors.count == 0).ToList()); }
/// <summary> /// Creates a shallow copy of the object. Should not be called directly. /// </summary> /// <returns></returns> public virtual object Clone() { return(NodeFactory.createNode(this.type)); }