Package cs227b.teamIago.resolver

Examples of cs227b.teamIago.resolver.Variable


public static Expression parseExpression(Object _s){
  if (_s instanceof ArrayList)
    _s = ((ArrayList)_s).get(0);
  if (_s instanceof String){
    if (((String)_s).startsWith("?"))
      return new Variable(new Atom((String)_s));
    return new Atom((String)_s);
  }
  Statement s = (Statement) _s;
  String opt = s.operator.toUpperCase();
  Expression res=null;
View Full Code Here


    res = new Predicate(opt, parseExpList(s.members));
  }
  return res;
}
static Variable parseVariable(String str){
  Variable v=null;
  v = new Variable(new Atom(str));
  return v;
}
View Full Code Here

TOP

Related Classes of cs227b.teamIago.resolver.Variable

Copyright © 2018 www.massapicom. 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.