Examples of ItemList


Examples of com.hp.hpl.jena.sparql.sse.ItemList

    {
        Expr expr = null ;
   
        if ( item.isList() )
        {
            ItemList list = item.getList() ;
           
            if ( list.size() == 0 )
                BuilderLib.broken(item, "Empty list for expression") ;
           
            Item head = list.get(0) ;
           
            if ( head.isNode() )
            {
                if ( head.getNode().isVariable() && list.size() == 1 )
                {
                    // The case of (?z)
                    return new ExprVar(Var.alloc(head.getNode())) ;
                }
                return buildFunctionCall(list) ;
            }
            else if ( head.isList() )
                BuilderLib.broken(item, "Head is a list") ;
            else if ( head.isSymbol() )
            {
                if ( item.isTagged(Tags.tagExpr) )
                {
                    BuilderLib.checkLength(2, list, "Wrong length: "+item.shortString()) ;
                    item = list.get(1) ;
                    return buildItem(item) ;
                }
               
                return buildKnownFunction(list) ;               
            }
View Full Code Here

Examples of com.hp.hpl.jena.sparql.sse.ItemList

    static abstract class BuildAggCommon implements Build
    {
        @Override
        public final Expr make(ItemList list)
        {
            ItemList x = list.cdr();    // drop "sum"
            boolean distinct = startsWithDistinct(x) ;
            if ( distinct )
                x = x.cdr();
            BuilderLib.checkLength(1, x, "Broken syntax: "+list.shortString()) ;
            // (sum ?var)
            Expr expr = buildExpr(x.get(0)) ;
            return make(distinct, expr) ;
        }
View Full Code Here

Examples of com.hp.hpl.jena.sparql.sse.ItemList

        {
            if ( ! item.isTagged(Tags.tagGraph) )
                BuilderLib.broken(item, "Expected (graph ...) as elements of a dataset") ;
           
            Node name = null ;
            ItemList graphContent = item.getList().cdr();

            if ( !graphContent.isEmpty() && graphContent.car().isNode() )
            {
                name = graphContent.car().getNode();
                graphContent = graphContent.cdr() ;
            }
           
            Graph g ;
            if ( name == null )
            {
View Full Code Here

Examples of com.hp.hpl.jena.sparql.sse.ItemList

    }
   
    @Override
    public void listStart(int line, int column)
    {
        ItemList list = new ItemList(line, column) ;
        pushList(list) ;
        setCurrentItem(Item.createList(list)) ;
    }
View Full Code Here

Examples of com.hp.hpl.jena.sparql.sse.ItemList

    }

    @Override
    public void listFinish(int line, int column)
    {
        ItemList list = popList() ;
        Item item = Item.createList(list) ;
        listAdd(item) ;
    }
View Full Code Here

Examples of com.hp.hpl.jena.sparql.sse.ItemList

            return ;
        }
       
        if ( item != null )
        {
            ItemList list = currentList() ;
            list.add(item) ;
        }
        setCurrentItem(item) ;
    }
View Full Code Here

Examples of com.hp.hpl.jena.sparql.sse.ItemList

    }
   
    private static Item format(Map<Node, Integer> predicates, Map<Node, Integer> types, long count)
    {
        Item stats = Item.createList() ;
        ItemList statsList = stats.getList() ;
        statsList.add("stats") ;

        Item meta = createTagged(StatsMatcher.META) ;
        addPair(meta.getList(), "timestamp", NodeFactoryExtra.nowAsDateTime()) ;
        addPair(meta.getList(), "run@",  Utils.nowAsString()) ;
        if ( count >= 0 )
            addPair(meta.getList(), StatsMatcher.COUNT, NodeFactoryExtra.intToNode((int)count)) ;
        statsList.add(meta) ;
       
        for ( Entry<Node, Integer> entry : types.entrySet() )
        {
            Node type = entry.getKey() ;
            addTypeTriple(statsList, type, NodeFactoryExtra.intToNode(entry.getValue()) ) ;
View Full Code Here

Examples of com.hp.hpl.jena.sparql.sse.ItemList

        return stats ;
    }

    private static void addTypeTriple(ItemList statsList, Node type, Node intCount)
    {
        ItemList triple = new ItemList() ;
        triple.add("VAR") ;
        triple.add(NodeConst.nodeRDFType) ;
        triple.add(type) ;
        addPair(statsList, Item.createList(triple), Item.createNode(intCount)) ;
    }
View Full Code Here

Examples of com.l2client.network.game.ServerPackets.ItemList

        break;
      case 0x10:
        pa = new CharCreateFail();
        break;
      case 0x11:
        pa = new ItemList();
        break;
      case 0x12:
//        pa = new SunRise();
        break;
      case 0x13:
View Full Code Here

Examples of com.l2jfrozen.gameserver.network.serverpackets.ItemList

      // client.getConnection().sendPacket(iu);
      activeChar.sendPacket(iu);
    }
    else
    {
      sendPacket(new ItemList(activeChar, true));
    }
   
    StatusUpdate su = new StatusUpdate(activeChar.getObjectId());
    su.addAttribute(StatusUpdate.CUR_LOAD, activeChar.getCurrentLoad());
    activeChar.sendPacket(su);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.