Searched refs:bound (Results 1 - 25 of 53) sorted by relevance

123

/openjdk7/jaxws/src/share/jaxws_classes/com/sun/codemodel/internal/
H A DJTypeWildcard.java48 private final JClass bound; field in class:JTypeWildcard
50 JTypeWildcard(JClass bound) { argument
51 super(bound.owner());
52 this.bound = bound;
56 return "? extends "+bound.name();
60 return "? extends "+bound.fullName();
68 * Returns the class bound of this variable.
71 * If no bound is given, this method returns {@link Object}.
74 if(bound!
[all...]
H A DJTypeVar.java42 private JClass bound; field in class:JTypeVar
62 * Adds a bound to this variable.
66 public JTypeVar bound( JClass c ) { method in class:JTypeVar
67 if(bound!=null)
68 throw new IllegalArgumentException("type variable has an existing class bound "+bound);
69 bound = c;
74 * Returns the class bound of this variable.
77 * If no bound is given, this method returns {@link Object}.
80 if(bound!
[all...]
H A DJGenerifiable.java43 * Adds a new type variable to this declaration with a bound.
45 JTypeVar generify( String name, Class<?> bound );
48 * Adds a new type variable to this declaration with a bound.
50 JTypeVar generify( String name, JClass bound );
H A DJGenerifiableImpl.java64 public JTypeVar generify(String name, Class<?> bound) { argument
65 return generify(name,owner().ref(bound));
68 public JTypeVar generify(String name, JClass bound) { argument
69 return generify(name).bound(bound);
/openjdk7/jdk/src/share/classes/sun/io/
H A DByteToCharISO8859_1.java55 int bound = inOff + (outEnd - outOff);
56 if (bound >= inEnd) {
57 bound = inEnd;
64 while(inOff < bound) {
73 if (bound < inEnd)
/openjdk7/jdk/src/share/classes/java/util/concurrent/
H A DThreadLocalRandom.java135 * given least value (inclusive) and bound (exclusive).
138 * @param bound the upper bound (exclusive)
140 * to bound
143 public int nextInt(int least, int bound) { argument
144 if (least >= bound)
146 return nextInt(bound - least) + least;
153 * @param n the bound on the random number to be returned. Must be
180 * given least value (inclusive) and bound (exclusive).
183 * @param bound th
188 nextLong(long least, long bound) argument
219 nextDouble(double least, double bound) argument
[all...]
/openjdk7/jdk/test/java/io/LineNumberInputStream/
H A DAvailable.java34 static void check(int a, int bound) throws Exception { argument
35 if (a > bound) {
36 throw new Exception("Available returned " + a + " > " + bound);
/openjdk7/langtools/test/tools/javadoc/generics/tparamCycle/
H A DMain.java27 * @summary Check a type parameter whose bound cycles back on itself.
49 Type bound = E.bounds()[0];
50 System.out.println("*** " + bound);
54 ParameterizedType enumE = (ParameterizedType)bound;
/openjdk7/corba/src/share/classes/com/sun/corba/se/impl/dynamicany/
H A DDynSequenceImpl.java145 // Increasing the length of a bounded sequence to a value larger than the bound
164 int bound = getBound();
165 if (bound > 0 && len > bound) {
228 // If the length of value exceeds the bound of a bounded sequence,
252 int bound = getBound();
253 if (bound > 0 && value.length > bound) {
/openjdk7/corba/src/share/classes/com/sun/tools/corba/se/idl/toJavaPortable/
H A DStringGen.java79 String bound;
81 bound = "0";
83 bound = Util.parseExpression (stringEntry.maxSize ());
93 + bound + ");");
/openjdk7/jdk/src/share/classes/sun/reflect/generics/reflectiveObjects/
H A DWildcardTypeImpl.java100 * bound(s) of this type variable. Note that if no upper bound is
101 * explicitly declared, the upper bound is <tt>Object</tt>.
103 * <p>For each upper bound B :
111 * @return an array of Types representing the upper bound(s) of this
127 // iterate over bound trees, reifying each in turn
135 // could throw away upper bound ASTs here; thread safety?
142 * lower bound(s) of this type variable. Note that if no lower bound is
143 * explicitly declared, the lower bound i
[all...]
/openjdk7/jdk/src/share/classes/java/beans/
H A DPropertyDescriptor.java43 private boolean bound; field in class:PropertyDescriptor
113 // then we assume that any properties we discover are "bound".
116 this.bound = null != Introspector.findMethod(beanClass, "addPropertyChangeListener", args.length, args);
357 * Updates to "bound" properties will cause a "PropertyChange" event to
360 * @return True if this is a bound property.
363 return bound;
367 * Updates to "bound" properties will cause a "PropertyChange" event to
370 * @param bound True if this is a bound property.
372 public void setBound(boolean bound) { argument
[all...]
/openjdk7/langtools/src/share/classes/com/sun/tools/apt/mirror/util/
H A DTypesImpl.java146 Type bound;
155 bound = env.symtab.objectType;
160 bound = ((TypeMirrorImpl) upperBounds.iterator().next()).type;
165 bound = ((TypeMirrorImpl) lowerBounds.iterator().next()).type;
168 if (bound instanceof Type.WildcardType)
169 throw new IllegalArgumentException(bound.toString());
172 new Type.WildcardType(bound, kind, env.symtab.boundClass));
/openjdk7/jdk/make/tools/src/build/tools/buildmetaindex/
H A DBuildMetaIndex.java254 int bound = 0;
257 bound = pkgElements.length - 1;
260 bound = 4;
263 for (int j = 0; j < bound; j++) {
/openjdk7/langtools/test/tools/javac/processing/model/element/
H A DTypeParamBounds.java67 for (TypeMirror bound : bounds) {
68 Name got = types.asElement(bound).getSimpleName();
/openjdk7/jdk/src/share/classes/java/net/
H A DServerSocket.java57 private boolean bound = false; field in class:ServerSocket
91 * Creates a server socket, bound to the specified port. A port number
322 * is already bound.
351 * is already bound.
362 throw new SocketException("Already bound");
378 bound = true;
380 bound = false;
383 bound = false;
391 * If the socket was bound prior to being {@link #close closed},
395 * @return the address to which this socket is bound,
[all...]
/openjdk7/langtools/src/share/classes/com/sun/tools/javac/code/
H A DTypes.java110 * The upper bound of most types is the type
114 * @return the upper bound of the given type
125 return t.bound == null ? syms.objectType : t.bound.bound;
132 return visit(t.bound);
140 * The lower bound of most types is the type
144 * @return the lower bound of the given type
776 Type bound = upperBound(s);
777 // We should check the new upper bound agains
3618 rewriteAsWildcardType(Type bound, TypeVar formal) argument
3647 makeExtendsWildcard(Type bound, TypeVar formal) argument
3669 makeSuperWildcard(Type bound, TypeVar formal) argument
[all...]
H A DType.java438 public TypeVar bound; field in class:Type.WildcardType
450 public WildcardType(WildcardType t, TypeVar bound) { argument
451 this(t.type, t.kind, t.tsym, bound);
454 public WildcardType(Type type, BoundKind kind, TypeSymbol tsym, TypeVar bound) { argument
456 this.bound = bound;
477 if (bound == t)
479 bound = (TypeVar)t;
489 if (moreInfo && bound != null && !isPrintingBound)
492 s.append("{:").append(bound
1007 public Type bound = null; field in class:Type.TypeVar
1022 TypeVar(TypeSymbol tsym, Type bound, Type lower) argument
[all...]
/openjdk7/langtools/src/share/classes/com/sun/tools/javac/model/
H A DJavacTypes.java187 Type bound;
190 bound = syms.objectType;
193 bound = (Type) extendsBound;
196 bound = (Type) superBound;
201 switch (bound.getKind()) {
206 return new Type.WildcardType(bound, bkind, syms.boundClass);
208 throw new IllegalArgumentException(bound.toString());
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/tools/internal/xjc/reader/
H A DTypeUtil.java175 // compute the lower bound.
176 JClass bound = (JClass)getCommonBaseType(codeModel,argList);
179 allSame &= a.equals(bound);
181 bound = bound.wildcard();
183 paramResult.add(bound);
/openjdk7/langtools/src/share/classes/com/sun/tools/apt/mirror/declaration/
H A DTypeParameterDeclarationImpl.java103 for (Type bound : getExtendsBounds(env, tv)) {
105 s.append(env.typeMaker.typeToString(bound));
/openjdk7/corba/src/share/classes/com/sun/corba/se/impl/orb/
H A DORBSingleton.java202 public TypeCode create_string_tc(int bound) { argument
203 return new TypeCodeImpl(this, TCKind._tk_string, bound);
206 public TypeCode create_wstring_tc(int bound) { argument
207 return new TypeCodeImpl(this, TCKind._tk_wstring, bound);
210 public TypeCode create_sequence_tc(int bound, argument
213 return new TypeCodeImpl(this, TCKind._tk_sequence, bound, element_type);
216 public TypeCode create_recursive_sequence_tc(int bound, argument
219 return new TypeCodeImpl(this, TCKind._tk_sequence, bound, offset);
/openjdk7/langtools/src/share/classes/com/sun/tools/javac/util/
H A DRichDiagnosticFormatter.java496 JCDiagnostic d = diags.fragment("where.captured"+ suffix, t, t.bound, t.lower, t.wildcard);
500 visit(t.bound);
527 //access the bound type and skip error types
528 Type bound = t.bound;
529 while ((bound instanceof ErrorType))
530 bound = ((ErrorType)bound).getOriginalType();
531 //retrieve the bound list - if the type variable
532 //has not been attributed the bound i
[all...]
/openjdk7/langtools/test/tools/javac/types/
H A DTypeHarness.java311 public TypeVar TypeVariable(Type bound) { argument
313 tvsym.type = new TypeVar(tvsym, bound, null);
317 public WildcardType Wildcard(BoundKind bk, Type bound) { argument
318 return new WildcardType(bound, bk, predef.boundClass);
H A DGenericTypeWellFormednessTest.java140 tvar.bound = subst(clazz, Mapping(clazz.getTypeArguments().head, tvar));
200 tv4.bound = decl4;
205 tv5.bound = subst(decl5, Mapping(tv5, fac.Wildcard(BoundKind.EXTENDS, tv5)));
209 tv6.bound = subst(decl6, Mapping(tv6, fac.Wildcard(BoundKind.SUPER, tv6)));
213 tv7.bound = subst(decl7, Mapping(tv7, fac.Wildcard(BoundKind.UNBOUND, predef.objectType)));

Completed in 342 milliseconds

123