PTP
Release 5.0

org.eclipse.ptp.debug.core.pdi.model
Interface IPDIVariableDescriptor

All Superinterfaces:
IPDISessionObject, IPDISet
All Known Subinterfaces:
IPDIArgument, IPDIArgumentDescriptor, IPDIGlobalVariable, IPDIGlobalVariableDescriptor, IPDILocalVariable, IPDILocalVariableDescriptor, IPDIRegister, IPDIRegisterDescriptor, IPDIThreadStorage, IPDIThreadStorageDescriptor, IPDIVariable

public interface IPDIVariableDescriptor
extends IPDISessionObject

Represents variable description


Method Summary
 boolean equalDescriptors(IPDIVariableDescriptor variable)
          Determines whether both descriptors are the same
 IAIF getAIF()
          Returns AIF representation of this variable
 int getCastingArrayEnd()
          Returns the end position
 int getCastingArrayStart()
          Returns the start position
 java.lang.String[] getCastingTypes()
           
 java.lang.String getFullName()
          Returns the full name of this variable
 java.lang.String getId()
          Returns a unique id for this variable.
 java.lang.String getName()
          Returns the name of this variable
 int getPosition()
           
 java.lang.String getQualifiedName()
          Return the qualified name of this variable descriptor
 int getStackDepth()
           
 IPDIStackFrame getStackFrame()
           
 IPDIThread getThread()
           
 java.lang.String getTypeName()
          Returns the type name of this variable descriptor
 IPDIVariableDescriptor getVariableDescriptorAsArray(int start, int length)
          Consider the variable object as an Array of type and rang [start, start + length - 1]
 IPDIVariableDescriptor getVariableDescriptorAsType(java.lang.String type)
          Consider the variable object as a type
 void setAIF(IAIF aif)
          Sets IAIF to this variable
 void setCastingArrayEnd(int end)
          Sets end position of casting array
 void setCastingArrayStart(int start)
          Sets start position of casting array
 int sizeof()
          Returns the size of this variable descriptor
 
Methods inherited from interface org.eclipse.ptp.debug.core.pdi.IPDISessionObject
getSession
 
Methods inherited from interface org.eclipse.ptp.debug.core.pdi.IPDISet
getTasks
 

Method Detail

equalDescriptors

boolean equalDescriptors(IPDIVariableDescriptor variable)
Determines whether both descriptors are the same

Parameters:
variable - IPDIVariableDescriptor for comparing
Returns:
true if given descriptors is same as the current descriptors

getAIF

IAIF getAIF()
            throws PDIException
Returns AIF representation of this variable

Returns:
AIF representation of this variable
Throws:
PDIException - on failure

getCastingArrayEnd

int getCastingArrayEnd()
Returns the end position

Returns:
the end position

getCastingArrayStart

int getCastingArrayStart()
Returns the start position

Returns:
the start position

getCastingTypes

java.lang.String[] getCastingTypes()
Returns:

getFullName

java.lang.String getFullName()
Returns the full name of this variable

Returns:
the name of this variable

getName

java.lang.String getName()
Returns the name of this variable

Returns:
the name of this variable

getPosition

int getPosition()
Returns:

getQualifiedName

java.lang.String getQualifiedName()
                                  throws PDIException
Return the qualified name of this variable descriptor

Returns:
the qualified name of this variable descriptor
Throws:
PDIException - on failure

getStackDepth

int getStackDepth()
Returns:

getStackFrame

IPDIStackFrame getStackFrame()
                             throws PDIException
Returns:
Throws:
PDIException

getThread

IPDIThread getThread()
                     throws PDIException
Returns:
Throws:
PDIException

getTypeName

java.lang.String getTypeName()
                             throws PDIException
Returns the type name of this variable descriptor

Returns:
the type name of this variable descriptor
Throws:
PDIException - on failure

getVariableDescriptorAsArray

IPDIVariableDescriptor getVariableDescriptorAsArray(int start,
                                                    int length)
                                                    throws PDIException
Consider the variable object as an Array of type and rang [start, start + length - 1]

Parameters:
start - start index
length - size of array
Returns:
IPDIVariableDescriptor
Throws:
PDIException - on failure

getVariableDescriptorAsType

IPDIVariableDescriptor getVariableDescriptorAsType(java.lang.String type)
                                                   throws PDIException
Consider the variable object as a type

Parameters:
type - type of variable
Returns:
IPDIVariableDescriptor
Throws:
PDIException - on failure

getId

java.lang.String getId()
Returns a unique id for this variable. This id can be used for looking up the value of the variable.

Returns:
a unique id for this variable

setAIF

void setAIF(IAIF aif)
Sets IAIF to this variable

Parameters:
aif - AIF object

setCastingArrayEnd

void setCastingArrayEnd(int end)
Sets end position of casting array

Parameters:
end - position to end

setCastingArrayStart

void setCastingArrayStart(int start)
Sets start position of casting array

Parameters:
start - position to start

sizeof

int sizeof()
           throws PDIException
Returns the size of this variable descriptor

Returns:
the size of this variable descriptor
Throws:
PDIException - on failure

PTP
Release 5.0

Copyright (c) 2011 IBM Corporation and others. All Rights Reserved.