Examples of MethodEntry


Examples of com.sun.tools.corba.se.idl.MethodEntry

    int count = -1;
    Enumeration e = methodList.elements ();
    while (e.hasMoreElements ())
    {
      MethodEntry method = (MethodEntry)e.nextElement ();
      if (method instanceof AttributeEntry)
      {
        stream.println ("    _methods.put (\"_get_" + Util.stripLeadingUnderscores (method.name ()) + "\", new java.lang.Integer (" + (++count) + "));");
        if (!((AttributeEntry)method).readOnly ())
          stream.println ("    _methods.put (\"_set_" + Util.stripLeadingUnderscores (method.name ()) + "\", new java.lang.Integer (" + (++count) + "));");
      }
      else
        stream.println ("    _methods.put (\"" + Util.stripLeadingUnderscores (method.name ()) + "\", new java.lang.Integer (" + (++count) + "));");
    }
    stream.println ("  }");
    stream.println ();
  } // writeMethodTable
View Full Code Here

Examples of com.sun.tools.corba.se.idl.MethodEntry

  protected void writeMethods ()
  {
      int realI = 0;
      for (int i = 0; i < methodList.size (); ++i)
          {
              MethodEntry method = (MethodEntry)methodList.elementAt (i);
              ((MethodGen)method.generator ()).skeleton
                  (symbolTable, method, stream, realI);
              if (method instanceof AttributeEntry &&
                  !((AttributeEntry)method).readOnly ())
                  realI += 2;
              else
View Full Code Here

Examples of com.sun.tools.corba.se.idl.MethodEntry

    while (e.hasMoreElements ())
    {
      SymtabEntry contained = (SymtabEntry)e.nextElement ();
      if (contained instanceof MethodEntry)
      {
        MethodEntry element = (MethodEntry)contained;
        ((MethodGen)element.generator ()).interfaceMethod (symbolTable, element, stream);
      }
      else
        if ( !(contained instanceof ConstEntry))
          contained.generate (symbolTable, stream);
    }
View Full Code Here

Examples of com.sun.tools.corba.se.idl.MethodEntry

   * Determine whether method entry m is a valuetype initializer.
   * @return true if is m is valuetype initializer, false otherwise.
   **/
  protected boolean isValueInitializer ()
  {
    MethodEntry currentInit = null;
    if ((m.container () instanceof ValueEntry))
    {
      Enumeration e = ((ValueEntry)m.container ()).initializers ().elements ();
      while (currentInit != m && e.hasMoreElements ())
        currentInit = (MethodEntry)e.nextElement ();
View Full Code Here

Examples of com.sun.tools.corba.se.idl.MethodEntry

    if (init != null)
    {
      stream.println ();
      for (int i = 0; i < init.size (); i++)
      {
        MethodEntry element = (MethodEntry) init.elementAt (i);
        element.valueMethod (true); //tag value method if not tagged previously
        ((MethodGen24) element.generator ()). helperFactoryMethod (symbolTable, element, entry, stream);
      }
    }
  } // writeHelperFactories
View Full Code Here

Examples of com.sun.tools.corba.se.idl.MethodEntry

    Vector init = ((ValueEntry)entry).initializers ();
    if (init != null)
    {
      for (int i = 0; i < init.size (); i++)
      {
        MethodEntry element = (MethodEntry) init.elementAt (i);
        element.valueMethod (true); //tag value method if not tagged previously
        ((MethodGen) element.generator ()). interfaceMethod (symbolTable, element, stream);
      }
    }
  } // writeBody
View Full Code Here

Examples of com.sun.tools.corba.se.idl.MethodEntry

    // Write the methods
    int realI = 0;
    for (int i = 0; i < methodList.size (); ++i)
    {
      MethodEntry method = (MethodEntry)methodList.elementAt (i);
      if (!localStub) {
      ((MethodGen)method.generator ()).stub (this.i.name(), isAbstract, symbolTable, method, stream, realI);
      } else {
      ((MethodGen)method.generator ()).localstub (symbolTable, method, stream, realI, this.i);
      }
      if (method instanceof AttributeEntry && !((AttributeEntry)method).readOnly ())
        realI += 2;
      else
        ++realI;
View Full Code Here

Examples of cuchaz.enigma.mapping.MethodEntry

      {
        behaviorEntry = new ConstructorEntry( classEntry );
      }
      else
      {
        behaviorEntry = new MethodEntry( classEntry, ref.getName(), ref.getSignature() );
      }
    }
    if( behaviorEntry != null )
    {
      // get the node for the token
View Full Code Here

Examples of cuchaz.enigma.mapping.MethodEntry

    {
      behaviorEntry = new ConstructorEntry( classEntry, methodDef.getSignature() );
    }
    else
    {
      behaviorEntry = new MethodEntry( classEntry, methodDef.getName(), methodDef.getSignature() );
    }
    ArgumentEntry argumentEntry = new ArgumentEntry( behaviorEntry, def.getPosition(), node.getName() );
    index.addDeclaration( node.getNameToken(), argumentEntry );
   
    return recurse( node, index );
View Full Code Here

Examples of cuchaz.enigma.mapping.MethodEntry

  public void relatedMethodImplementations( )
  {
    Set<MethodEntry> entries;
   
    // getName()
    entries = m_index.getRelatedMethodImplementations( new MethodEntry( m_baseClass, "a", "()Ljava/lang/String;" ) );
    assertThat( entries, containsInAnyOrder(
      new MethodEntry( m_baseClass, "a", "()Ljava/lang/String;" ),
      new MethodEntry( m_subClassAA, "a", "()Ljava/lang/String;" )
    ) );
    entries = m_index.getRelatedMethodImplementations( new MethodEntry( m_subClassAA, "a", "()Ljava/lang/String;" ) );
    assertThat( entries, containsInAnyOrder(
      new MethodEntry( m_baseClass, "a", "()Ljava/lang/String;" ),
      new MethodEntry( m_subClassAA, "a", "()Ljava/lang/String;" )
    ) );
   
    // doBaseThings()
    entries = m_index.getRelatedMethodImplementations( new MethodEntry( m_baseClass, "a", "()V" ) );
    assertThat( entries, containsInAnyOrder(
      new MethodEntry( m_baseClass, "a", "()V" ),
      new MethodEntry( m_subClassAA, "a", "()V" ),
      new MethodEntry( m_subClassB, "a", "()V" )
    ) );
    entries = m_index.getRelatedMethodImplementations( new MethodEntry( m_subClassAA, "a", "()V" ) );
    assertThat( entries, containsInAnyOrder(
      new MethodEntry( m_baseClass, "a", "()V" ),
      new MethodEntry( m_subClassAA, "a", "()V" ),
      new MethodEntry( m_subClassB, "a", "()V" )
    ) );
    entries = m_index.getRelatedMethodImplementations( new MethodEntry( m_subClassB, "a", "()V" ) );
    assertThat( entries, containsInAnyOrder(
      new MethodEntry( m_baseClass, "a", "()V" ),
      new MethodEntry( m_subClassAA, "a", "()V" ),
      new MethodEntry( m_subClassB, "a", "()V" )
    ) );
   
    // doBThings
    entries = m_index.getRelatedMethodImplementations( new MethodEntry( m_subClassB, "b", "()V" ) );
    assertThat( entries, containsInAnyOrder(
      new MethodEntry( m_subClassB, "b", "()V" )
    ) );
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.