org.drools.eclipse.debug
Class ObjectWrapper

java.lang.Object
  extended by org.drools.eclipse.debug.ObjectWrapper
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.debug.core.model.IDebugElement, org.eclipse.debug.core.model.IValue, org.eclipse.jdt.debug.core.IJavaObject, org.eclipse.jdt.debug.core.IJavaValue

public class ObjectWrapper
extends Object
implements org.eclipse.jdt.debug.core.IJavaObject

Creates a IJavaObject from an IJavaObject and given variables.


Constructor Summary
ObjectWrapper(org.eclipse.jdt.debug.core.IJavaObject object, org.eclipse.jdt.debug.core.IJavaVariable[] variables)
           
 
Method Summary
 void disableCollection()
           
 void enableCollection()
           
 Object getAdapter(Class adapter)
           
 org.eclipse.debug.core.model.IDebugTarget getDebugTarget()
           
 org.eclipse.jdt.debug.core.IJavaFieldVariable getField(String name, boolean superField)
           
 org.eclipse.jdt.debug.core.IJavaFieldVariable getField(String name, String typeSignature)
           
 String getGenericSignature()
           
 org.eclipse.jdt.debug.core.IJavaType getJavaType()
           
 org.eclipse.debug.core.ILaunch getLaunch()
           
 String getModelIdentifier()
           
 org.eclipse.jdt.debug.core.IJavaThread getOwningThread()
           
 String getReferenceTypeName()
           
 org.eclipse.jdt.debug.core.IJavaObject[] getReferringObjects(long max)
           
 String getSignature()
           
 long getUniqueId()
           
 String getValueString()
           
 org.eclipse.debug.core.model.IVariable[] getVariables()
           
 org.eclipse.jdt.debug.core.IJavaThread[] getWaitingThreads()
           
 boolean hasVariables()
           
 boolean isAllocated()
           
 boolean isNull()
           
 org.eclipse.jdt.debug.core.IJavaValue sendMessage(String selector, String signature, org.eclipse.jdt.debug.core.IJavaValue[] args, org.eclipse.jdt.debug.core.IJavaThread thread, boolean superSend)
           
 org.eclipse.jdt.debug.core.IJavaValue sendMessage(String selector, String signature, org.eclipse.jdt.debug.core.IJavaValue[] args, org.eclipse.jdt.debug.core.IJavaThread thread, String typeSignature)
           
protected  void setVariables(org.eclipse.jdt.debug.core.IJavaVariable[] variables)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectWrapper

public ObjectWrapper(org.eclipse.jdt.debug.core.IJavaObject object,
                     org.eclipse.jdt.debug.core.IJavaVariable[] variables)
Method Detail

sendMessage

public org.eclipse.jdt.debug.core.IJavaValue sendMessage(String selector,
                                                         String signature,
                                                         org.eclipse.jdt.debug.core.IJavaValue[] args,
                                                         org.eclipse.jdt.debug.core.IJavaThread thread,
                                                         boolean superSend)
                                                  throws org.eclipse.debug.core.DebugException
Specified by:
sendMessage in interface org.eclipse.jdt.debug.core.IJavaObject
Throws:
org.eclipse.debug.core.DebugException

sendMessage

public org.eclipse.jdt.debug.core.IJavaValue sendMessage(String selector,
                                                         String signature,
                                                         org.eclipse.jdt.debug.core.IJavaValue[] args,
                                                         org.eclipse.jdt.debug.core.IJavaThread thread,
                                                         String typeSignature)
                                                  throws org.eclipse.debug.core.DebugException
Specified by:
sendMessage in interface org.eclipse.jdt.debug.core.IJavaObject
Throws:
org.eclipse.debug.core.DebugException

getField

public org.eclipse.jdt.debug.core.IJavaFieldVariable getField(String name,
                                                              boolean superField)
                                                       throws org.eclipse.debug.core.DebugException
Specified by:
getField in interface org.eclipse.jdt.debug.core.IJavaObject
Throws:
org.eclipse.debug.core.DebugException

getField

public org.eclipse.jdt.debug.core.IJavaFieldVariable getField(String name,
                                                              String typeSignature)
                                                       throws org.eclipse.debug.core.DebugException
Specified by:
getField in interface org.eclipse.jdt.debug.core.IJavaObject
Throws:
org.eclipse.debug.core.DebugException

getSignature

public String getSignature()
                    throws org.eclipse.debug.core.DebugException
Specified by:
getSignature in interface org.eclipse.jdt.debug.core.IJavaValue
Throws:
org.eclipse.debug.core.DebugException

getGenericSignature

public String getGenericSignature()
                           throws org.eclipse.debug.core.DebugException
Specified by:
getGenericSignature in interface org.eclipse.jdt.debug.core.IJavaValue
Throws:
org.eclipse.debug.core.DebugException

getJavaType

public org.eclipse.jdt.debug.core.IJavaType getJavaType()
                                                 throws org.eclipse.debug.core.DebugException
Specified by:
getJavaType in interface org.eclipse.jdt.debug.core.IJavaValue
Throws:
org.eclipse.debug.core.DebugException

getReferenceTypeName

public String getReferenceTypeName()
                            throws org.eclipse.debug.core.DebugException
Specified by:
getReferenceTypeName in interface org.eclipse.debug.core.model.IValue
Throws:
org.eclipse.debug.core.DebugException

getValueString

public String getValueString()
                      throws org.eclipse.debug.core.DebugException
Specified by:
getValueString in interface org.eclipse.debug.core.model.IValue
Throws:
org.eclipse.debug.core.DebugException

isAllocated

public boolean isAllocated()
                    throws org.eclipse.debug.core.DebugException
Specified by:
isAllocated in interface org.eclipse.debug.core.model.IValue
Throws:
org.eclipse.debug.core.DebugException

getVariables

public org.eclipse.debug.core.model.IVariable[] getVariables()
Specified by:
getVariables in interface org.eclipse.debug.core.model.IValue

hasVariables

public boolean hasVariables()
Specified by:
hasVariables in interface org.eclipse.debug.core.model.IValue

setVariables

protected void setVariables(org.eclipse.jdt.debug.core.IJavaVariable[] variables)

getModelIdentifier

public String getModelIdentifier()
Specified by:
getModelIdentifier in interface org.eclipse.debug.core.model.IDebugElement

getDebugTarget

public org.eclipse.debug.core.model.IDebugTarget getDebugTarget()
Specified by:
getDebugTarget in interface org.eclipse.debug.core.model.IDebugElement

getLaunch

public org.eclipse.debug.core.ILaunch getLaunch()
Specified by:
getLaunch in interface org.eclipse.debug.core.model.IDebugElement

getAdapter

public Object getAdapter(Class adapter)
Specified by:
getAdapter in interface org.eclipse.core.runtime.IAdaptable

getWaitingThreads

public org.eclipse.jdt.debug.core.IJavaThread[] getWaitingThreads()
                                                           throws org.eclipse.debug.core.DebugException
Specified by:
getWaitingThreads in interface org.eclipse.jdt.debug.core.IJavaObject
Throws:
org.eclipse.debug.core.DebugException

getOwningThread

public org.eclipse.jdt.debug.core.IJavaThread getOwningThread()
                                                       throws org.eclipse.debug.core.DebugException
Specified by:
getOwningThread in interface org.eclipse.jdt.debug.core.IJavaObject
Throws:
org.eclipse.debug.core.DebugException

getReferringObjects

public org.eclipse.jdt.debug.core.IJavaObject[] getReferringObjects(long max)
                                                             throws org.eclipse.debug.core.DebugException
Specified by:
getReferringObjects in interface org.eclipse.jdt.debug.core.IJavaObject
Throws:
org.eclipse.debug.core.DebugException

disableCollection

public void disableCollection()
                       throws org.eclipse.debug.core.DebugException
Specified by:
disableCollection in interface org.eclipse.jdt.debug.core.IJavaObject
Throws:
org.eclipse.debug.core.DebugException

enableCollection

public void enableCollection()
                      throws org.eclipse.debug.core.DebugException
Specified by:
enableCollection in interface org.eclipse.jdt.debug.core.IJavaObject
Throws:
org.eclipse.debug.core.DebugException

getUniqueId

public long getUniqueId()
                 throws org.eclipse.debug.core.DebugException
Specified by:
getUniqueId in interface org.eclipse.jdt.debug.core.IJavaObject
Throws:
org.eclipse.debug.core.DebugException

isNull

public boolean isNull()
Specified by:
isNull in interface org.eclipse.jdt.debug.core.IJavaValue


Copyright © 2001-2012 JBoss by Red Hat. All Rights Reserved.