Package org.omegahat.Environment.Parser.Parse

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


*/
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


  */
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

public Object genericCallMethod(String qualifier, String methodName,
                                 Object[] args, String[] names,
                                   String returnName, boolean convert)
                 throws Throwable 
{
  MethodCall call;
 
  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());

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

      may be null, but that is the value stored in the reference.
    */
This = qualifier.eval(evaluator());

MethodCall call =   new MethodCall(new ConstantExpression(This),
                                     methodName, new ArgList(args));

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

TOP

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

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.