Examples of Generic


Examples of com.language.dataobjects.Generic

  public void addGenerics(Generic generics[]){
    for(int i=0;i<generics.length;i++)
      addGeneric(generics[i]);
  }
  public boolean removeGeneric(String generic_name){
    Generic sgl;
    boolean item_found = false;
    for(int i=0;i<generics.size();i++){
      sgl = (Generic) generics.get(i);
      if (sgl.name.equals(generic_name)){
        item_found = generics.remove(i) != null;
View Full Code Here

Examples of com.language.dataobjects.Generic

    String tab = "     ";
    str += "ENTITY " + name + " IS";
   
    if (generics.size() > 0){
      str += tab + "\nGENERIC (";
      Generic gen;
      for(int i=0;i<generics.size();i++){
        gen = (Generic) generics.get(i);
        str += "\n" + tab + gen.toString()+";";
      }
      str = str.substring(0, str.length() - 1) + "\n" + tab + ");";
    }
   
    if (ports.size() > 0){
View Full Code Here

Examples of com.language.dataobjects.Generic

        else{
          data_type = new ArrayType(index_scheme,entity_ui.tf_starting_index.getText(),
              entity_ui.tf_ending_index.getText());
          data_type.name = entity_ui.tf_pgtype.getText();
        }
        entity_ui.entity.addGeneric(new Generic(entity_ui.tf_pgname.getText(),
            data_type));
       
        String str = "Generic " + entity_ui.tf_pgname.getText() + " of type "
            + entity_ui.tf_pgtype.getText().toUpperCase();
        str += !index_scheme.equals("Select") ?
View Full Code Here

Examples of com.redhat.ceylon.compiler.java.runtime.model.TypeDescriptor.Generic

    @Ignore
    @Override
    public void $serialize$(Callable<? extends Deconstructor> deconstructor) {
        // Don't call super.$serialize$() since our runtime super class is
        // an implementation detail
        Generic myTd = (TypeDescriptor.Generic)$getType$();
        Deconstructor dtor = deconstructor.$call$(ceylon.language.meta.typeLiteral_.typeLiteral(myTd));
       
        TypeDescriptor reifiedElement = myTd.getTypeArguments()[0];
        TypeDescriptor reifiedFirst = myTd.getTypeArguments()[1];
        TypeDescriptor reifiedRest = myTd.getTypeArguments()[2];
       
        dtor.putTypeArgument(
                ((GenericDeclaration)Metamodel.getOrCreateMetamodel(Tuple.class)).getTypeParameterDeclaration("Element"),
                Metamodel.getAppliedMetamodel(reifiedElement));
       
View Full Code Here

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

            checkSuperInvocation(that);
        }
    }

    private void typeArgumentsImplicit(Tree.StaticMemberOrTypeExpression that) {
        Generic dec = (Generic) that.getDeclaration();
        StringBuilder params = new StringBuilder();
        for (TypeParameter tp: dec.getTypeParameters()) {
            if (params.length()>0) params.append(", ");
            params.append("'").append(tp.getName()).append("'");
        }
        that.addError("missing type arguments to generic declaration: '" +
                that.getDeclaration().getName(unit) +
View Full Code Here

Examples of org.jboss.metatype.api.annotations.Generic

   {
      if (typeInfo instanceof ClassInfo == false)
         return null;
     
      ClassInfo classInfo = (ClassInfo) typeInfo;
      Generic generic = classInfo.getUnderlyingAnnotation(Generic.class);
      if (generic != null)
         return new GenericMetaType(typeInfo.getName(), typeInfo.getName());
      return null;
   }
View Full Code Here

Examples of org.jboss.metatype.api.annotations.Generic

   {
      if (typeInfo instanceof ClassInfo == false)
         return null;
     
      ClassInfo classInfo = (ClassInfo) typeInfo;
      Generic generic = classInfo.getUnderlyingAnnotation(Generic.class);
      if (generic != null)
         return new GenericMetaType(typeInfo.getName(), typeInfo.getName());
      return null;
   }
View Full Code Here

Examples of org.jboss.metatype.api.annotations.Generic

   {
      if (typeInfo instanceof ClassInfo == false)
         return null;
     
      ClassInfo classInfo = (ClassInfo) typeInfo;
      Generic generic = classInfo.getUnderlyingAnnotation(Generic.class);
      if (generic != null)
         return new GenericMetaType(typeInfo.getName(), typeInfo.getName());
      return null;
   }
View Full Code Here

Examples of org.jboss.metatype.api.annotations.Generic

   {
      if (typeInfo instanceof ClassInfo == false)
         return null;
     
      ClassInfo classInfo = (ClassInfo) typeInfo;
      Generic generic = classInfo.getUnderlyingAnnotation(Generic.class);
      if (generic != null)
         return new GenericMetaType(typeInfo.getName(), typeInfo.getName());
      return null;
   }
View Full Code Here

Examples of org.jboss.metatype.api.annotations.Generic

/*     */   {
/* 395 */     if (!(typeInfo instanceof ClassInfo)) {
/* 396 */       return null;
/*     */     }
/* 398 */     ClassInfo classInfo = (ClassInfo)typeInfo;
/* 399 */     Generic generic = (Generic)classInfo.getUnderlyingAnnotation(Generic.class);
/* 400 */     if (generic != null)
/* 401 */       return new GenericMetaType(typeInfo.getName(), typeInfo.getName());
/* 402 */     return null;
/*     */   }
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.