1 11 package org.eclipse.jdt.internal.debug.core.logicalstructures; 12 13 import org.eclipse.debug.core.DebugException; 14 import org.eclipse.debug.core.ILaunch; 15 import org.eclipse.debug.core.model.IDebugTarget; 16 import org.eclipse.debug.core.model.IVariable; 17 import org.eclipse.jdt.debug.core.IJavaFieldVariable; 18 import org.eclipse.jdt.debug.core.IJavaObject; 19 import org.eclipse.jdt.debug.core.IJavaThread; 20 import org.eclipse.jdt.debug.core.IJavaType; 21 import org.eclipse.jdt.debug.core.IJavaValue; 22 import org.eclipse.jdt.debug.core.IJavaVariable; 23 24 27 public class LogicalObjectStructureValue implements IJavaObject { 28 29 private IJavaObject fObject; 30 private IJavaVariable[] fVariables; 31 32 38 public LogicalObjectStructureValue(IJavaObject object, IJavaVariable[] variables) { 39 fObject = object; 40 fVariables = variables; 41 } 42 43 46 public IJavaValue sendMessage(String selector, String signature, IJavaValue[] args, IJavaThread thread, boolean superSend) throws DebugException { 47 return fObject.sendMessage(selector, signature, args, thread, superSend); 48 } 49 50 53 public IJavaValue sendMessage(String selector, String signature, IJavaValue[] args, IJavaThread thread, String typeSignature) throws DebugException { 54 return fObject.sendMessage(selector, signature, args, thread, typeSignature); 55 } 56 57 60 public IJavaFieldVariable getField(String name, boolean superField) throws DebugException { 61 return fObject.getField(name, superField); 62 } 63 64 67 public IJavaFieldVariable getField(String name, String typeSignature) throws DebugException { 68 return fObject.getField(name, typeSignature); 69 } 70 71 74 public String getSignature() throws DebugException { 75 return fObject.getSignature(); 76 } 77 78 81 public String getGenericSignature() throws DebugException { 82 return fObject.getGenericSignature(); 83 } 84 85 88 public IJavaType getJavaType() throws DebugException { 89 return fObject.getJavaType(); 90 } 91 92 95 public String getReferenceTypeName() throws DebugException { 96 return fObject.getReferenceTypeName(); 97 } 98 99 102 public String getValueString() throws DebugException { 103 return fObject.getValueString(); 104 } 105 106 109 public boolean isAllocated() throws DebugException { 110 return fObject.isAllocated(); 111 } 112 113 116 public IVariable[] getVariables() { 117 return fVariables; 118 } 119 120 123 public boolean hasVariables() { 124 return fVariables.length > 0; 125 } 126 127 130 public String getModelIdentifier() { 131 return fObject.getModelIdentifier(); 132 } 133 134 137 public IDebugTarget getDebugTarget() { 138 return fObject.getDebugTarget(); 139 } 140 141 144 public ILaunch getLaunch() { 145 return fObject.getLaunch(); 146 } 147 148 151 public Object getAdapter(Class adapter) { 152 return fObject.getAdapter(adapter); 153 } 154 155 156 157 160 public IJavaThread[] getWaitingThreads() throws DebugException { 161 return null; 162 } 163 164 165 168 public IJavaThread getOwningThread() throws DebugException { 169 return null; 170 } 171 172 175 public IJavaObject[] getReferringObjects(long max) throws DebugException { 176 return fObject.getReferringObjects(max); 177 } 178 } 179 | Popular Tags |