History

My first initial commit with all of mine experimental changes.

Dmitry Kabak (userdima committed 13 years ago

Commit d37b88d1 parent 3f5b46618352 files · +2598093 −-8690Browse files

Showing the changes to java/pkg/com/sun/tools/jdi/NonConcreteMethodImpl.java (1 of 18352 files). Show all

Unified · Split

java/pkg/com/sun/tools/jdi/NonConcreteMethodImpl.java+112−0
@@ -0,0 +1,112 @@
1+/*
2+ * Copyright (c) 2000, 2003, Oracle and/or its affiliates. All rights reserved.
3+ * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4+ *
5+ * This code is free software; you can redistribute it and/or modify it
6+ * under the terms of the GNU General Public License version 2 only, as
7+ * published by the Free Software Foundation. Oracle designates this
8+ * particular file as subject to the "Classpath" exception as provided
9+ * by Oracle in the LICENSE file that accompanied this code.
10+ *
11+ * This code is distributed in the hope that it will be useful, but WITHOUT
12+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
13+ * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
14+ * version 2 for more details (a copy is included in the LICENSE file that
15+ * accompanied this code).
16+ *
17+ * You should have received a copy of the GNU General Public License version
18+ * 2 along with this work; if not, write to the Free Software Foundation,
19+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
20+ *
21+ * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
22+ * or visit www.oracle.com if you need additional information or have any
23+ * questions.
24+ */
25+
26+package com.sun.tools.jdi;
27+
28+import com.sun.jdi.*;
29+
30+import java.util.List;
31+import java.util.Map;
32+import java.util.Iterator;
33+import java.util.ListIterator;
34+import java.util.HashMap;
35+import java.util.ArrayList;
36+import java.util.Collections;
37+
38+/**
39+ * Represents non-concrete (that is, native or abstract) methods.
40+ * Private to MethodImpl.
41+ */
42+public class NonConcreteMethodImpl extends MethodImpl {
43+
44+ private Location location = null;
45+
46+ NonConcreteMethodImpl(VirtualMachine vm,
47+ ReferenceTypeImpl declaringType,
48+ long ref,
49+ String name, String signature,
50+ String genericSignature, int modifiers) {
51+
52+ // The generic signature is set when this is created
53+ super(vm, declaringType, ref, name, signature,
54+ genericSignature, modifiers);
55+ }
56+
57+ public Location location() {
58+ if (isAbstract()) {
59+ return null;
60+ }
61+ if (location == null) {
62+ location = new LocationImpl(vm, this, -1);
63+ }
64+ return location;
65+ }
66+
67+ public List<Location> allLineLocations(String stratumID,
68+ String sourceName) {
69+ return new ArrayList<Location>(0);
70+ }
71+
72+ public List<Location> allLineLocations(SDE.Stratum stratum,
73+ String sourceName) {
74+ return new ArrayList<Location>(0);
75+ }
76+
77+ public List<Location> locationsOfLine(String stratumID,
78+ String sourceName,
79+ int lineNumber) {
80+ return new ArrayList<Location>(0);
81+ }
82+
83+ public List<Location> locationsOfLine(SDE.Stratum stratum,
84+ String sourceName,
85+ int lineNumber) {
86+ return new ArrayList<Location>(0);
87+ }
88+
89+ public Location locationOfCodeIndex(long codeIndex) {
90+ return null;
91+ }
92+
93+ public List<LocalVariable> variables() throws AbsentInformationException {
94+ throw new AbsentInformationException();
95+ }
96+
97+ public List<LocalVariable> variablesByName(String name) throws AbsentInformationException {
98+ throw new AbsentInformationException();
99+ }
100+
101+ public List<LocalVariable> arguments() throws AbsentInformationException {
102+ throw new AbsentInformationException();
103+ }
104+
105+ public byte[] bytecodes() {
106+ return new byte[0];
107+ }
108+
109+ int argSlotCount() throws AbsentInformationException {
110+ throw new InternalException("should not get here");
111+ }
112+}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t