src/jdk.jdi/share/classes/com/sun/jdi/ReferenceType.java
Print this page
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 1998, 2013, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 1998, 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
@@ -116,10 +116,25 @@
* loader.
*/
ClassLoaderReference classLoader();
/**
+ * Gets the module object which contains the class corresponding
+ * to this type.
+ *
+ * @return a {@link Module} which mirrors the module in the target VM.
+ *
+ * @throws java.lang.UnsupportedOperationException if
+ * the target virtual machine does not support this
+ * operation.
+ * <UL>
+ *
+ * @since 1.9
+ */
+ Module module();
+
+ /**
* Gets an identifying name for the source corresponding to the
* declaration of this type. Interpretation of this string is
* the responsibility of the source repository mechanism.
* <P>
* The returned name is dependent on VM's default stratum