< prev index next >

src/jdk.xml.bind/share/classes/com/sun/codemodel/internal/JClass.java

Print this page

        

@@ -49,22 +49,22 @@
      * Gets the name of this class.
      *
      * @return
      *  name of this class, without any qualification.
      *  For example, this method returns "String" for
-     *  <code>java.lang.String</code>.
+     *  {@code java.lang.String}.
      */
     abstract public String name();
 
         /**
      * Gets the package to which this class belongs.
      * TODO: shall we move move this down?
      */
     abstract public JPackage _package();
 
     /**
-     * Returns the class in which this class is nested, or <tt>null</tt> if
+     * Returns the class in which this class is nested, or {@code null} if
      * this is a top-level class.
      */
     public JClass outer() {
         return null;
     }

@@ -100,11 +100,11 @@
     /**
      * Iterates all the type parameters of this class/interface.
      *
      * <p>
      * For example, if this {@link JClass} represents
-     * <code>Set&lt;T></code>, this method returns an array
+     * {@code Set<T>}, this method returns an array
      * that contains single {@link JTypeVar} for 'T'.
      */
     public JTypeVar[] typeParams() {
         return EMPTY_ARRAY;
     }

@@ -132,11 +132,11 @@
     public JPrimitiveType getPrimitiveType() { return null; }
 
     /**
      * @deprecated calling this method from {@link JClass}
      * would be meaningless, since it's always guaranteed to
-     * return <tt>this</tt>.
+     * return {@code this}.
      */
     public JClass boxify() { return this; }
 
     public JType unboxify() {
         JPrimitiveType pt = getPrimitiveType();

@@ -182,21 +182,21 @@
     /**
      * Gets the parameterization of the given base type.
      *
      * <p>
      * For example, given the following
-     * <pre><xmp>
+     * <pre>{@code
      * interface Foo<T> extends List<List<T>> {}
      * interface Bar extends Foo<String> {}
-     * </xmp></pre>
+     * }</pre>
      * This method works like this:
-     * <pre><xmp>
+     * <pre>{@code
      * getBaseClass( Bar, List ) = List<List<String>
      * getBaseClass( Bar, Foo  ) = Foo<String>
      * getBaseClass( Foo<? extends Number>, Collection ) = Collection<List<? extends Number>>
      * getBaseClass( ArrayList<? extends BigInteger>, List ) = List<? extends BigInteger>
-     * </xmp></pre>
+     * }</pre>
      *
      * @param baseType
      *      The class whose parameterization we are interested in.
      * @return
      *      The use of {@code baseType} in {@code this} type.

@@ -239,11 +239,11 @@
     /**
      * "Narrows" a generic class to a concrete class by specifying
      * a type argument.
      *
      * <p>
-     * <code>.narrow(X)</code> builds <code>Set&lt;X></code> from <code>Set</code>.
+     * {@code .narrow(X)} builds {@code Set<X>} from {@code Set}.
      */
     public JClass narrow( Class<?> clazz ) {
         return narrow(owner().ref(clazz));
     }
 

@@ -257,11 +257,11 @@
     /**
      * "Narrows" a generic class to a concrete class by specifying
      * a type argument.
      *
      * <p>
-     * <code>.narrow(X)</code> builds <code>Set&lt;X></code> from <code>Set</code>.
+     * {@code .narrow(X)} builds {@code Set<X>} from {@code Set}.
      */
     public JClass narrow( JClass clazz ) {
         return new JNarrowedClass(this,clazz);
     }
 

@@ -305,11 +305,11 @@
      *
      * <p>
      * For example, when this class is Map&lt;String,Map&lt;V>>,
      * (where V then doing
      * substituteParams( V, Integer ) returns a {@link JClass}
-     * for <code>Map&lt;String,Map&lt;Integer>></code>.
+     * for {@code Map<String,Map<Integer>>}.
      *
      * <p>
      * This method needs to work recursively.
      */
     protected abstract JClass substituteParams( JTypeVar[] variables, List<JClass> bindings );
< prev index next >