Package com.sun.istack

Examples of com.sun.istack.FinalArrayList


/*  543 */         return arg;
/*  544 */     return null;
/*      */   }
/*      */
/*      */   private static <T> List<T> makeSet(T[] args) {
/*  548 */     List l = new FinalArrayList();
/*  549 */     for (Object arg : args) {
/*  550 */       if (arg == null) continue; l.add(arg);
/*  551 */     }return l;
/*      */   }
View Full Code Here


/*     */   }
/*     */
/*     */   public List<? extends TypeRefImpl<TypeT, ClassDeclT>> getTypes()
/*     */   {
/* 103 */     if (this.types == null) {
/* 104 */       this.types = new FinalArrayList();
/* 105 */       XmlElement[] ann = null;
/*     */
/* 107 */       XmlElement xe = (XmlElement)this.seed.readAnnotation(XmlElement.class);
/* 108 */       XmlElements xes = (XmlElements)this.seed.readAnnotation(XmlElements.class);
/*     */
View Full Code Here

/* 208 */       if (!this.superClazz.hasElementOnlyContentModel()) {
/* 209 */         hasElementOnlyContentModel(false);
/*     */       }
/*     */     }
/*     */
/* 213 */     List attProps = new FinalArrayList();
/* 214 */     List uriProps = new FinalArrayList();
/* 215 */     for (ClassBeanInfoImpl bi = this; bi != null; bi = bi.superClazz) {
/* 216 */       for (int i = bi.properties.length - 1; i >= 0; i--) {
/* 217 */         Property p = bi.properties[i];
/* 218 */         if ((p instanceof AttributeProperty))
/* 219 */           attProps.add((AttributeProperty)p);
/* 220 */         if (p.hasSerializeURIAction())
/* 221 */           uriProps.add(p);
/*     */       }
/*     */     }
/* 224 */     if (grammar.c14nSupport) {
/* 225 */       Collections.sort(attProps);
/*     */     }
/* 227 */     if (attProps.isEmpty())
/* 228 */       this.attributeProperties = EMPTY_PROPERTIES;
/*     */     else {
/* 230 */       this.attributeProperties = ((AttributeProperty[])attProps.toArray(new AttributeProperty[attProps.size()]));
/*     */     }
/* 232 */     if (uriProps.isEmpty())
/* 233 */       this.uriProperties = EMPTY_PROPERTIES;
/*     */     else
/* 235 */       this.uriProperties = ((Property[])uriProps.toArray(new Property[uriProps.size()]));
/*     */   }
View Full Code Here

/* 429 */     }super.link();
/*     */   }
/*     */
/*     */   private void addSubstitutionMember(ElementInfoImpl<T, C, F, M> child) {
/* 433 */     if (this.substitutionMembers == null)
/* 434 */       this.substitutionMembers = new FinalArrayList();
/* 435 */     this.substitutionMembers.add(child);
/*     */   }
View Full Code Here

/*     */   }
/*     */
/*     */   public static JAXBContext createContext(String contextPath, ClassLoader classLoader, Map<String, Object> properties)
/*     */     throws JAXBException
/*     */   {
/* 148 */     FinalArrayList classes = new FinalArrayList();
/* 149 */     StringTokenizer tokens = new StringTokenizer(contextPath, ":");
/*     */
/* 156 */     while (tokens.hasMoreTokens())
/*     */     {
/*     */       boolean foundJaxbIndex;
/* 157 */       boolean foundObjectFactory = foundJaxbIndex = 0;
/* 158 */       String pkg = tokens.nextToken();
/*     */       try
/*     */       {
/* 163 */         Class o = classLoader.loadClass(pkg + ".ObjectFactory");
/* 164 */         classes.add(o);
/* 165 */         foundObjectFactory = true;
/*     */       }
/*     */       catch (ClassNotFoundException e) {
/*     */       }
/*     */       List indexedClasses;
/*     */       try {
/* 172 */         indexedClasses = loadIndexedClasses(pkg, classLoader);
/*     */       }
/*     */       catch (IOException e) {
/* 175 */         throw new JAXBException(e);
/*     */       }
/* 177 */       if (indexedClasses != null) {
/* 178 */         classes.addAll(indexedClasses);
/* 179 */         foundJaxbIndex = true;
/*     */       }
/*     */
/* 182 */       if ((!foundObjectFactory) && (!foundJaxbIndex)) {
/* 183 */         throw new JAXBException(Messages.BROKEN_CONTEXTPATH.format(new Object[] { pkg }));
/*     */       }
/*     */
/*     */     }
/*     */
/* 188 */     return createContext((Class[])classes.toArray(new Class[classes.size()]), properties);
/*     */   }
View Full Code Here

/*     */     }
/*     */
/* 208 */     BufferedReader in = new BufferedReader(new InputStreamReader(resourceAsStream, "UTF-8"));
/*     */     try
/*     */     {
/* 211 */       FinalArrayList classes = new FinalArrayList();
/* 212 */       String className = in.readLine();
/* 213 */       while (className != null) {
/* 214 */         className = className.trim();
/* 215 */         if ((className.startsWith("#")) || (className.length() == 0)) {
/* 216 */           className = in.readLine();
/* 217 */           continue;
/*     */         }
/*     */
/* 220 */         if (className.endsWith(".class")) {
/* 221 */           throw new JAXBException(Messages.ILLEGAL_ENTRY.format(new Object[] { className }));
/*     */         }
/*     */         try
/*     */         {
/* 225 */           classes.add(classLoader.loadClass(pkg + '.' + className));
/*     */         } catch (ClassNotFoundException e) {
/* 227 */           throw new JAXBException(Messages.ERROR_LOADING_CLASS.format(new Object[] { className, resource }), e);
/*     */         }
/*     */
/* 230 */         className = in.readLine();
View Full Code Here

TOP

Related Classes of com.sun.istack.FinalArrayList

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.