Package org.xvr.s3D.impl

Examples of org.xvr.s3D.impl.formalParamListImpl


    if(element instanceof funcDecl){
      //funcDecl e = ;
      IFunctionDefinition f = ((funcDecl) element).getBase();
      builder = new StringBuilder(f.getName().getFunctionName());
     
      formalParamListImpl params = (formalParamListImpl) f.getParams();
      if(params != null){
        EList<String> list = params.getParams();
        Iterator<String> it = list.iterator();
        builder.append("(");
        while(it.hasNext()){
          builder.append(it.next());
          if(it.hasNext())
            builder.append(",");
        }
        builder.append(")");
      }
      return builder.toString();
    }
   
    if(element instanceof function){
      IFunctionDefinition f = ((function) element).getDeclaration();
      builder = new StringBuilder(f.getName().getFunctionName());
      formalParamListImpl params = (formalParamListImpl) f.getParams();
      if(params != null){
        EList<String> list = params.getParams();
        Iterator<String> it = list.iterator();
        builder.append("(");
        while(it.hasNext()){
          builder.append(it.next());
          if(it.hasNext())
            builder.append(",");
        }
        builder.append(")");
      }
      return builder.toString();
    }
   
    if(element instanceof classMethodDeclImpl){
      classMethodDeclImpl e = ((classMethodDeclImpl)element);
      builder = new StringBuilder(e.getName().getFunctionName());
      formalParamListImpl params = (formalParamListImpl) e.getParams();
      if(params != null){
        EList<String> list = params.getParams();
        Iterator<String> it = list.iterator();
        builder.append("(");
        while(it.hasNext()){
          builder.append(it.next());
          if(it.hasNext())
View Full Code Here

TOP

Related Classes of org.xvr.s3D.impl.formalParamListImpl

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.