Package org.omegahat.Environment.Parser.Parse

Examples of org.omegahat.Environment.Parser.Parse.Name


*/
public String evalMethod(String objKey, String methodName, String[] argumentKeys, String resultKey)
  throws Throwable
{
ExpressionInt expr = null;
    expr = new MethodCall(new Name(objKey), methodName, argsToList(argumentKeys));
if(resultKey != null) {
   expr = new AssignExpression(new Name(resultKey), expr);
}

  return(eval(resultKey, expr));
}
View Full Code Here


   return(new List()); // currently necessary, but the expressions should handle null arguments.

int n = names.length;
  l = new List(n);
for(int i = 0; i < n; i++)
   l.addElement(new Name(names[i]));

return(l);
}
View Full Code Here

  */
public Object genericCallMethod(String []qualifier, Object[] args, String[] names,
                                  String returnName, boolean convert)
                   throws Throwable
{
  MethodCall call = new MethodCall(new Name(qualifier), new List(args));

  return(genericCallMethod(call, returnName, convert));
}
View Full Code Here

 
  if(debug())
    System.err.println("[A] # arguments "+ (args == null ? 0 : args.length));

  if(qualifier != null)
      call = new MethodCall(new Name(qualifier),
                                    methodName, new ArgList(args));
  else
      call = new MethodCall(new Name(methodName), new ArgList(args));


  if(debug()) 
    System.err.println("[A] # call arguments "+ call.args().size());
View Full Code Here

from R/S as a string and convert it to an expression.
@see evalConstructor(String,String[],String)
*/
protected String eval(String resultName, ExpressionInt expr) throws Throwable {

  evaluator().evaluate(new AssignExpression(new Name(resultName), expr));

return(resultName);
}
View Full Code Here

TOP

Related Classes of org.omegahat.Environment.Parser.Parse.Name

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.