fr.inria.corese.kgram.core.Query.getGlobalQuery()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(3.5k)|赞(0)|评价(0)|浏览(168)

本文整理了Java中fr.inria.corese.kgram.core.Query.getGlobalQuery方法的一些代码示例,展示了Query.getGlobalQuery的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Query.getGlobalQuery方法的具体详情如下:
包路径:fr.inria.corese.kgram.core.Query
类名称:Query
方法名:getGlobalQuery

Query.getGlobalQuery介绍

暂无

代码示例

代码示例来源:origin: fr.inria.corese/kgram

  1. public Expr getGlobalExpression(String name) {
  2. if (getGlobalQuery() != this) {
  3. Expr ee = getGlobalQuery().getLocalExpression(name);
  4. if (ee != null) {
  5. return ee;
  6. }
  7. }
  8. return null;
  9. }

代码示例来源:origin: fr.inria.corese/kgram

  1. public void addError(String mes, Object obj, boolean duplicate) {
  2. getGlobalQuery().setError(mes, obj, duplicate);
  3. }

代码示例来源:origin: fr.inria.corese/kgram

  1. public Filter getGlobalFilter(String name) {
  2. return getGlobalQuery().getFilter(name);
  3. }

代码示例来源:origin: fr.inria.corese/kgram

  1. public void setTransformer(String p, Object transformer) {
  2. getGlobalQuery().setPPrinter(p, transformer);
  3. }

代码示例来源:origin: fr.inria.corese/kgram

  1. boolean needEdge(){
  2. return getGlobalQuery().isRelax() || getGlobalQuery().isRule();
  3. }

代码示例来源:origin: fr.inria.corese/kgram

  1. public void addError(String mes, Object obj) {
  2. getGlobalQuery().setError(mes, obj);
  3. }

代码示例来源:origin: fr.inria.corese/kgram

  1. public Object getTransformer(String p) {
  2. return getGlobalQuery().getPPrinter(p);
  3. }

代码示例来源:origin: fr.inria.corese/kgram

  1. public Object getTransformer() {
  2. return getGlobalQuery().getPPrinter(null);
  3. }

代码示例来源:origin: fr.inria.corese/kgram

  1. public Extension getActualExtension(){
  2. return getGlobalQuery().getExtension();
  3. }

代码示例来源:origin: fr.inria.corese/kgram

  1. boolean acceptable(Mapping m) {
  2. return query.getGlobalQuery().isAlgebra() || results.acceptable(m);
  3. }

代码示例来源:origin: fr.inria.corese/compiler

  1. IDatatype pathNode(Environment env) {
  2. Query q = env.getQuery();
  3. int num = q.getGlobalQuery().nbPath();
  4. IDatatype dt = DatatypeMap.createBlank(Query.BPATH + Integer.toString(num));
  5. return dt;
  6. }

代码示例来源:origin: Wimmics/corese

  1. IDatatype pathNode(Environment env) {
  2. Query q = env.getQuery();
  3. int num = q.getGlobalQuery().nbPath();
  4. IDatatype dt = DatatypeMap.createBlank(Query.BPATH + Integer.toString(num));
  5. return dt;
  6. }

代码示例来源:origin: fr.inria.corese/kgram

  1. public boolean hasDefinition(){
  2. return getExtension() != null || getGlobalQuery().getExtension() != null;
  3. }

代码示例来源:origin: fr.inria.corese/kgram

  1. void submit(Mapping map) {
  2. if (query.getGlobalQuery().isAlgebra()){
  3. // eval distinct later
  4. results.add(map);
  5. }
  6. else {
  7. results.submit(map);
  8. }
  9. }

代码示例来源:origin: Wimmics/corese

  1. int getTimeout(Query q, Node serv, Environment env) {
  2. Integer time = (Integer) q.getGlobalQuery().getPragma(Pragma.TIMEOUT);
  3. if (time == null) {
  4. return env.getEval().getVisitor().timeout(serv);
  5. }
  6. return time;
  7. }

代码示例来源:origin: fr.inria.corese/corese-core

  1. int getTimeout(Query q, Node serv, Environment env) {
  2. Integer time = (Integer) q.getGlobalQuery().getPragma(Pragma.TIMEOUT);
  3. if (time == null) {
  4. return env.getEval().getVisitor().timeout(serv);
  5. }
  6. return time;
  7. }

代码示例来源:origin: fr.inria.corese/corese-core

  1. int getSlice(Query q, Node serv, Environment env, Mappings map) {
  2. // former:
  3. q.getGlobalQuery().getSlice();
  4. return env.getEval().getVisitor().slice(serv, map);
  5. }

代码示例来源:origin: Wimmics/corese

  1. int getSlice(Query q, Node serv, Environment env, Mappings map) {
  2. // former:
  3. q.getGlobalQuery().getSlice();
  4. return env.getEval().getVisitor().slice(serv, map);
  5. }

代码示例来源:origin: Wimmics/corese

  1. Context getQueryContext(Environment env, Producer p) {
  2. Query q = env.getQuery().getGlobalQuery();
  3. Context c = (Context) q.getContext();
  4. if (c == null && ! q.isTransformationTemplate()){
  5. // std Query or Template alone
  6. c = new Context();
  7. q.setContext(c);
  8. }
  9. return c;
  10. }

代码示例来源:origin: fr.inria.corese/kgram

  1. boolean isFederate(Exp exp) {
  2. return memory.getQuery().getGlobalQuery().isFederate()
  3. || exp.size() == 1 && exp.get(0).isService();
  4. }

相关文章