Package net.sf.laja.template.data

Examples of net.sf.laja.template.data.Data


  public static Object callMethodOrAccessFieldIfMatchingMethodNotFound(Class clazz, Object instance, String methodName, List<String> validMethodPrefixes, Args args) {
    int argumentsSize = args == null ? 0 : args.getArguments().size();
    Object[] arguments = new Object[argumentsSize];

    for (int i=0; i<argumentsSize; i++) {
      Data argument = args.getArguments().get(i);
      arguments[i] = argument.evaluate();
    }
    return callMethodOrAccessFieldIfMatchingMethodNotFound(clazz, instance, methodName, validMethodPrefixes, arguments);
  }
View Full Code Here


    return new Stringref(source);
  }

  @Override
  public IData createData() {
    return new Data();
  }
View Full Code Here

    for (String parameter : parameters) {
      if (!argumentsIterator.hasNext()) {
        throw new InterpretationException(source, indexInSource, "Missing argument in parameter list for macro '" + name + "'");
      }
      Data argument = argumentsIterator.next();
      if (argument.isLazy()) {
        populatedArguments.set(parameter, argument);
      } else {
        populatedArguments.set(parameter, argument.evaluate());
      }
    }
    if (argumentsIterator.hasNext()) {
      throw new InterpretationException(source, indexInSource, "Too many arguments in parameter list for macro '" + name + "'");
    }
View Full Code Here

  public void setReturnedData(IData idata) {
    this.returnedData = (Data)idata;
  }

  public void setReturnedComparition(IComparition icomparition) {
    returnedData = new Data();
    returnedData.setComparision((Comparition)icomparition);
  }
View Full Code Here

  public void setData(IData idata) {
    data = (Data)idata;
  }

  public void setComparition(IComparition icomparition) {
    data = new Data();
    data.setComparision((Comparition)icomparition);
  }
View Full Code Here

  public void addData(IData idata, String stringData) {
    arguments.add((Data)idata);
  }

  public void setMapData(IMapData imapData) {
    Data mapData = new Data();
    mapData.setMapData((MapData)imapData);
    arguments.add(mapData);
  }
View Full Code Here

TOP

Related Classes of net.sf.laja.template.data.Data

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.