Examples of variables()


Examples of com.sun.jdi.Method.variables()

            Method method = getUnderlyingMethod(); // onBreak
            ReferenceType declaringType = method.declaringType(); // org.drools.core.base.mvel.MVELDebugHandler

            try {
                Object var = method.variables().get( 0 );
                LocalVariable v2 = (LocalVariable) var;
                JDILocalVariable frameLocal = new JDILocalVariable( this,
                                                                    v2 );

                IValue knownVars = DebugUtil.getValueByExpression( "return getFactory().getKnownVariables().toArray(new String[0]);",
View Full Code Here

Examples of com.sun.jdi.Method.variables()

        //frame arg
        Method method = getUnderlyingMethod(); // onBreak
        //ReferenceType declaringType = method.declaringType(); // org.drools.core.base.mvel.MVELDebugHandler

        LocalVariable var = (LocalVariable) method.variables().get( 0 );//frame

        ClassType frameType = (ClassType) var.type();

        StackFrame frame = getUnderlyingStackFrame();
        Value value = frame.getValue( var );
View Full Code Here

Examples of com.tinkerpop.gremlin.structure.Graph.variables()

        private void ser(final GraphSONGraph graphSONGraph, final JsonGenerator jsonGenerator) throws IOException {
            final Graph g = graphSONGraph.getGraphToSerialize();
            jsonGenerator.writeStartObject();

            if (g.features().graph().variables().supportsVariables())
                jsonGenerator.writeObjectField(GraphSONTokens.VARIABLES, new HashMap<>(g.variables().asMap()));

            jsonGenerator.writeArrayFieldStart(GraphSONTokens.VERTICES);
            if (normalize)
                g.V().order(Comparators.HELD_VERTEX_COMPARATOR).forEachRemaining(FunctionUtils.wrapConsumer(jsonGenerator::writeObject));
            else
View Full Code Here

Examples of com.tinkerpop.gremlin.tinkergraph.structure.TinkerGraph.variables()

            final ByteArrayInputStream bis = new ByteArrayInputStream(this.getValue().getBytes());
            final KryoReader reader = KryoReader.build().create();
            final TinkerGraph tinkerGraph = TinkerGraph.open();
            reader.readGraph(bis, tinkerGraph);
            bis.close();
            this.tinkerVertex = (TinkerVertex) tinkerGraph.v(tinkerGraph.variables().get(VERTEX_ID).get());
        } catch (final Exception e) {
            throw new IllegalStateException(e.getMessage(), e);
        }
    }
}
View Full Code Here

Examples of de.fuberlin.wiwiss.d2rq.algebra.NodeRelation.variables()

 

  public void testEmptyGraphAndBGP() {
    NodeRelation nodeRel = translate1(Collections.<Triple>emptyList(), Collections.<TripleRelation>emptyList());
    assertEquals(Relation.TRUE, nodeRel.baseRelation());
    assertEquals(Collections.EMPTY_SET, nodeRel.variables());
  }
 
  public void testEmptyGraph() {
    assertNull(translate1("?subject ?predicate ?object", Collections.<TripleRelation>emptyList()));
  }
View Full Code Here

Examples of de.fuberlin.wiwiss.d2rq.algebra.NodeRelation.variables()

  }
 
  public void testEmptyBGP() {
    NodeRelation nodeRel = translate1(Collections.<Triple>emptyList(), "engine/type-bridge.n3");
    assertEquals(Relation.TRUE, nodeRel.baseRelation());
    assertEquals(Collections.EMPTY_SET, nodeRel.variables());
  }
 
  public void testAskNoMatch() {
    assertNull(translate1("ex:res1 rdf:type foaf:Project", "engine/type-bridge.n3"));
  }
View Full Code Here

Examples of de.fuberlin.wiwiss.d2rq.algebra.NodeRelation.variables()

    Relation r = nodeRel.baseRelation();
    assertEquals(Collections.singleton(table1), r.tables());
    assertEquals(Collections.EMPTY_SET, r.projections());
    assertEquals(Equality.createAttributeValue(table1id, "1"), r.condition());
    assertEquals(AliasMap.NO_ALIASES, r.aliases());
    assertEquals(Collections.EMPTY_SET, nodeRel.variables());
  }

  public void testFindNoMatch() {
    assertNull(translate1("ex:res1 ex:foo ?foo", "engine/type-bridge.n3"));
  }
View Full Code Here

Examples of de.fuberlin.wiwiss.d2rq.algebra.NodeRelation.variables()

    Relation r = nodeRel.baseRelation();
    assertEquals(Collections.singleton(table1), r.tables());
    assertEquals(Collections.EMPTY_SET, r.projections());
    assertEquals(Equality.createAttributeValue(table1id, "1"), r.condition());
    assertEquals(AliasMap.NO_ALIASES, r.aliases());
    assertEquals(Collections.singleton(type), nodeRel.variables());
    assertEquals("Fixed(<http://example.org/Class1>)",
        nodeRel.nodeMaker(type).toString());
  }
 
  public void testFindMatch() {
View Full Code Here

Examples of de.fuberlin.wiwiss.d2rq.algebra.NodeRelation.variables()

    Relation r = nodeRel.baseRelation();
    assertEquals(Collections.singleton(table1), r.tables());
    assertEquals(Collections.singleton(table1id), r.projections());
    assertEquals(Expression.TRUE, r.condition());
    assertEquals(AliasMap.NO_ALIASES, r.aliases());
    assertEquals(Collections.singleton(x), nodeRel.variables());
    assertEquals("URI(Pattern(http://example.org/res@@table1.id@@))",
        nodeRel.nodeMaker(x).toString());
  }
 
  public void testConstraintInTripleNoMatch() {
View Full Code Here

Examples of de.fuberlin.wiwiss.d2rq.algebra.NodeRelation.variables()

    NodeRelation nodeRel = translate1("?x rdf:type ?x", "engine/object-uricolumn.n3");
    Relation r = nodeRel.baseRelation();
    assertEquals(Collections.singleton(table1), r.tables());
    assertTrue(r.condition() instanceof Equality)// Too lazy to check both sides
    assertEquals(AliasMap.NO_ALIASES, r.aliases());
    assertEquals(Collections.singleton(x), nodeRel.variables());
  }

  public void testReturnMultipleMatchesForSingleTriplePattern() {
    NodeRelation[] rels = translate("?s ?p ?o", "engine/simple.n3");
    assertEquals(2, rels.length);
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.