Examples of Class


Examples of com.redhat.ceylon.compiler.java.metadata.Class

     * Returns true if the given object satisfies ceylon.language.Identifiable
     */
    public static boolean isIdentifiable(java.lang.Object o) {
        if(o == null)
            return false;
        Class classAnnotation = getClassAnnotationForIdentifiableOrBasic(o);
        // unless marked as NOT identifiable, every instance is Identifiable
        return classAnnotation != null ? classAnnotation.identifiable() : true;
    }
View Full Code Here

Examples of com.redhat.ceylon.compiler.typechecker.model.Class

    private void classDeclaration(final Tree.ClassDeclaration that) {
        //Don't even bother with nodes that have errors
        if (errVisitor.hasErrors(that))return;
        comment(that);
        final Class d = that.getDeclarationModel();
        final String aname = names.name(d);
        final Tree.ClassSpecifier ext = that.getClassSpecifier();
        out(function, aname, "(");
        //Generate each parameter because we need to append one at the end
        for (Parameter p: that.getParameterList().getParameters()) {
            p.visit(this);
            out(", ");
        }
        if (d.getTypeParameters() != null && !d.getTypeParameters().isEmpty()) {
            out("$$targs$$,");
        }
        out(names.self(d), "){return ");
        TypeDeclaration aliased = ext.getType().getDeclarationModel();
        qualify(that, aliased);
View Full Code Here

Examples of com.sun.java.util.jar.pack.Package.Class

            for (int j = 0; j < interfaces.length; j++) {
                interfaces[j] = (ClassEntry) class_interface.getRef();
            }
            // Packer encoded rare case of null superClass as thisClass:
            if (superClass == thisClasssuperClass = null;
            Class cls = pkg.new Class(NO_FLAGS_YET,
                                      thisClass, superClass, interfaces);
            classes[i] = cls;
        }
        class_this.doneDisbursing();
        class_super.doneDisbursing();
View Full Code Here

Examples of easysm.stores.Class

 
  @Test
  public void Generator_generateBasicSO_OneValidSO()
  {
    ClassDiagram cd = new ClassDiagram(new ClassDiagramInfo());
    Class cl = new Class(new ClassInfo(cPine));
    cd.addCDElement(cl);
    Attribute a = new Attribute(new AttributeInfo(cIffy, cl, Type.INTEGER));
    cd.addCDElement(a);
    cd.changeContext(cl);
View Full Code Here

Examples of edu.mayo.bmi.guoqian.claml.Class

    /**
     * Create an instance of {@link Class }
     *
     */
    public Class createClass() {
        return new Class();
    }
View Full Code Here

Examples of eu.admire.dispel.classifiers.Class

   *
   * @param javaClass
   */
  public static void addDefaultSuperClass(Class javaClass) {
    if (javaClass.getExtends() == null && javaClass.getDefaultExtends() == null) {
      Class objectClass = javaClass.getObjectClass();
      ClassifierReference classifierReference = TypesFactory.eINSTANCE.createClassifierReference();
      classifierReference.setTarget(objectClass);
      javaClass.setDefaultExtends(classifierReference);
    }
  }
View Full Code Here

Examples of fr.tm.elibel.smartqvt.qvt.emof.Class

  private List getObjectsFromSuperClassOf(Class cl) {
    List objects = new ArrayList();
    for (Iterator iter = cl.getSuperClass().iterator(); iter.hasNext();) {
      Object objIter = iter.next();
      if (objIter instanceof Class) {
        Class clIter = (Class) objIter;
        objects.addAll(getObjectsOf(clIter));
        objects.addAll(getObjectsFromSuperClassOf(clIter));
      }
    }
    return objects;
View Full Code Here

Examples of java.lang.Class

    //  return true;                            //BEFORE - BUGFIX - different class loaders (Tomcat)
    //else                                  //BEFORE - BUGFIX - different class loaders (Tomcat)
    //  return false;                            //BEFORE - BUGFIX - different class loaders (Tomcat)

    else {                                  //PLUS - BUGFIX - different class loaders (Tomcat)
      Class actualFormalParameterType = formalParameterType;        //PLUS - BUGFIX
      try {                                //PLUS - BUGFIX
        actualFormalParameterType = actualParameterType.getClassLoader().loadClass(formalParameterType.getName())//PLUS - BUGFIX
        if (actualFormalParameterType == null) actualFormalParameterType = formalParameterType;            //PLUS - BUGFIX
      } catch(Exception e) { }                                            //PLUS - BUGFIX
      boolean result = (actualFormalParameterType.isAssignableFrom(actualParameterType));                //PLUS - BUGFIX
      //System.err.println("SignaturePattern - isAssignable - Class  => " + formalParameterType + " is assignable from " + actualFormalParameterType + ":" + result);
      return result;                                                  //PLUS - BUGFIX
    }

  }
View Full Code Here

Examples of java.lang.Class


  private void initAdviceMethod(Class methodClass,String adviceName,Class hierarchyTop) {
    int      ambigousCnt = 0;
    Method   mObj = null;
    Class    crtClass = methodClass;

    // look up a method with the name 'adviceName'; if such a method is found,
    while (crtClass != null &&
        !crtClass.equals(hierarchyTop) &&          // (e.g., crtClass != MethodCut)
        hierarchyTop.isAssignableFrom(crtClass) && // (e.g., crtClass subclass of MethodCut)
        mObj == null) {

      Method[] methods = crtClass.getDeclaredMethods();
      ambigousCnt = 0;

      // we have to select some method
      // try to match a method with such a name

      for (int i=0; i < methods.length; i++)
        if ( methods[i].getName().equals(adviceName)) {
          mObj = methods[i];
          ambigousCnt++;
        }

      crtClass=crtClass.getSuperclass();
    }

    if (mObj == null)
      throw new MissingInformationException("No advice action specified");
    if (ambigousCnt > 1)
View Full Code Here

Examples of java.lang.Class

    */
   public boolean isInstanceOf(Object object, String instanceName)
   {
   try
     {
     Class type = getClass().forName(instanceName);
     return type.isInstance(object);
     }
    catch( ClassNotFoundException ex )
     {
     return false;
     }
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.