src/java.base/share/classes/java/lang/invoke/VarHandle.java
changeset 53563 a4b7ea85d668
parent 53284 a995647f4911
child 54206 003cc64366da
equal deleted inserted replaced
53559:1ae0b76bb5df 53563:a4b7ea85d668
  2158 
  2158 
  2159         /**
  2159         /**
  2160          * Construct a {@linkplain VarHandleDesc} given a kind, name, and declaring
  2160          * Construct a {@linkplain VarHandleDesc} given a kind, name, and declaring
  2161          * class.
  2161          * class.
  2162          *
  2162          *
  2163          * @param kind the kind of of the var handle
  2163          * @param kind the kind of the var handle
  2164          * @param name the unqualified name of the field, for field var handles; otherwise ignored
  2164          * @param name the unqualified name of the field, for field var handles; otherwise ignored
  2165          * @param declaringClass a {@link ClassDesc} describing the declaring class,
  2165          * @param declaringClass a {@link ClassDesc} describing the declaring class,
  2166          *                       for field var handles
  2166          *                       for field var handles
  2167          * @param varType a {@link ClassDesc} describing the type of the variable
  2167          * @param varType a {@link ClassDesc} describing the type of the variable
  2168          * @throws NullPointerException if any required argument is null
  2168          * @throws NullPointerException if any required argument is null
  2215             return new VarHandleDesc(Kind.STATIC_FIELD, name, declaringClass, fieldType);
  2215             return new VarHandleDesc(Kind.STATIC_FIELD, name, declaringClass, fieldType);
  2216         }
  2216         }
  2217 
  2217 
  2218         /**
  2218         /**
  2219          * Returns a {@linkplain VarHandleDesc} corresponding to a {@link VarHandle}
  2219          * Returns a {@linkplain VarHandleDesc} corresponding to a {@link VarHandle}
  2220          * for for an array type.
  2220          * for an array type.
  2221          *
  2221          *
  2222          * @param arrayClass a {@link ClassDesc} describing the type of the array
  2222          * @param arrayClass a {@link ClassDesc} describing the type of the array
  2223          * @return the {@linkplain VarHandleDesc}
  2223          * @return the {@linkplain VarHandleDesc}
  2224          * @throws NullPointerException if any of the arguments are null
  2224          * @throws NullPointerException if any of the arguments are null
  2225          */
  2225          */