Package com.whatevernot.flatlang

Examples of com.whatevernot.flatlang.INode


    super(node.getName() == null ? node.getValue() : node.getName());
   
    // If the name is null, we have to look for the child 'class=value' line.
    if(node.getName() == null)
    {
      INode classChild = node.getChildByName(CLASS);
     
      if(classChild == null)
      {
        Log.error(this, "<ctor>", "No class name defined");
       
        className_ = null;
      }
      else
      {
        className_ = classChild.getValue();
      }
    }
    else
    {
      className_ = node.getValue()
View Full Code Here


   
    // Handle each child node, which represent setter calls (or declarations).
    INode[] nodes = node_.getChildren();
    for(int i = 0; i < nodes.length; ++i)
    {
      INode node = nodes[i];
     
      String name = node.getName();
      String value = node.getValue();
           
      // Look up the method and call it.
      MethodInvocation mi = null;
     
      // Is this a map or a list?
      if(name == null)
      {
        String methodName = value;
       
        if(node.isList())
        {
          String[] list = node.toList();
          mi = SetterUtil.handleList(methodName, list, className_, methods);
        }
        else if(node.isMap())
        {
          Properties props = node.toMap();
          mi = SetterUtil.handleMap(methodName, props, className_, methods);
        }
        else
        {
          Log.error(this, "setupInvocation", "Invalid node with value '" + value + "'.");
View Full Code Here

TOP

Related Classes of com.whatevernot.flatlang.INode

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.