Package org.xvr.s3D

Examples of org.xvr.s3D.IFunctionDefinition


      return ((classDeclImpl)element).getName();
     
   
    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()){
View Full Code Here


   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetBase(IFunctionDefinition newBase, NotificationChain msgs)
  {
    IFunctionDefinition oldBase = base;
    base = newBase;
    if (eNotificationRequired())
    {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, S3DPackage.FUNC_DECL__BASE, oldBase, newBase);
      if (msgs == null) msgs = notification; else msgs.add(notification);
View Full Code Here

   * <!-- end-user-doc -->
   * @generated
   */
  public NotificationChain basicSetDeclaration(IFunctionDefinition newDeclaration, NotificationChain msgs)
  {
    IFunctionDefinition oldDeclaration = declaration;
    declaration = newDeclaration;
    if (eNotificationRequired())
    {
      ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, S3DPackage.FUNCTION__DECLARATION, oldDeclaration, newDeclaration);
      if (msgs == null) msgs = notification; else msgs.add(notification);
View Full Code Here

TOP

Related Classes of org.xvr.s3D.IFunctionDefinition

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.