mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 14:55:41 +02:00
First draft interface of the types for CDI
This commit is contained in:
parent
7b1c64d5fe
commit
e73328b981
74 changed files with 1648 additions and 0 deletions
|
@ -0,0 +1,19 @@
|
|||
/*
|
||||
*(c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.core.cdi.model.type;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Represents the type of a variable.
|
||||
*
|
||||
* @since Apr 15, 2003
|
||||
*/
|
||||
public interface ICDIAggregateType extends ICDIType {
|
||||
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
/*
|
||||
*(c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.core.cdi.model.type;
|
||||
|
||||
import org.eclipse.cdt.debug.core.cdi.model.ICDIValue;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Represents the type of a variable.
|
||||
*
|
||||
* @since Apr 15, 2003
|
||||
*/
|
||||
public interface ICDIAggregateValue extends ICDIValue {
|
||||
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
/*
|
||||
*(c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.core.cdi.model.type;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Represents the type of a variable.
|
||||
*
|
||||
* @since Apr 15, 2003
|
||||
*/
|
||||
public interface ICDIArrayType extends ICDIDerivedType {
|
||||
|
||||
int getDimension();
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
/*
|
||||
*(c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
*/
|
||||
package org.eclipse.cdt.debug.core.cdi.model.type;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Represents a value of a array type.
|
||||
*
|
||||
* @since April 15, 2003
|
||||
*/
|
||||
public interface ICDIArrayValue extends ICDIDerivedValue {
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
*(c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.core.cdi.model.type;
|
||||
|
||||
/**
|
||||
*/
|
||||
public interface ICDIBoolType extends ICDIIntegralType {
|
||||
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
/*
|
||||
* (c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.core.cdi.model.type;
|
||||
|
||||
/**
|
||||
*/
|
||||
public interface ICDIBoolValue extends ICDIIntegralValue {
|
||||
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
*(c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.core.cdi.model.type;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Represents the type of a variable.
|
||||
*
|
||||
* @since Apr 15, 2003
|
||||
*/
|
||||
public interface ICDICharType extends ICDIIntegralType {
|
||||
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
*(c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.core.cdi.model.type;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Represents the value of a variable.
|
||||
*
|
||||
* @since April 15, 2003
|
||||
*/
|
||||
public interface ICDICharValue extends ICDIIntegralValue {
|
||||
|
||||
}
|
|
@ -0,0 +1,20 @@
|
|||
/*
|
||||
*(c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.core.cdi.model.type;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Represents the type of a variable.
|
||||
*
|
||||
* @since Apr 15, 2003
|
||||
*/
|
||||
public interface ICDIDerivedType extends ICDIType {
|
||||
|
||||
ICDIType getComponentType();
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
/*
|
||||
*(c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.core.cdi.model.type;
|
||||
|
||||
import org.eclipse.cdt.debug.core.cdi.model.ICDIValue;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Represents the type of a variable.
|
||||
*
|
||||
* @since Apr 15, 2003
|
||||
*/
|
||||
public interface ICDIDerivedValue extends ICDIValue {
|
||||
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
*(c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.core.cdi.model.type;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Represents the type of a variable.
|
||||
*
|
||||
* @since Apr 15, 2003
|
||||
*/
|
||||
public interface ICDIDoubleType extends ICDIFloatingPointType {
|
||||
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
*(c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.core.cdi.model.type;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Represents the value of a variable.
|
||||
*
|
||||
* @since April 15, 2003
|
||||
*/
|
||||
public interface ICDIDoubleValue extends ICDIFloatingPointValue {
|
||||
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
/*
|
||||
* (c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.core.cdi.model.type;
|
||||
|
||||
/**
|
||||
*/
|
||||
public interface ICDIEnumType extends ICDIIntegralType {
|
||||
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
*(c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.core.cdi.model.type;
|
||||
|
||||
/**
|
||||
*/
|
||||
public interface ICDIEnumValue extends ICDIIntegralValue {
|
||||
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
*(c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.core.cdi.model.type;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Represents the type of a variable.
|
||||
*
|
||||
* @since Apr 15, 2003
|
||||
*/
|
||||
public interface ICDIFloatType extends ICDIFloatingPointType {
|
||||
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
*(c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.core.cdi.model.type;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Represents the value of a variable.
|
||||
*
|
||||
* @since April 15, 2003
|
||||
*/
|
||||
public interface ICDIFloatValue extends ICDIFloatingPointValue {
|
||||
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
/*
|
||||
*(c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.core.cdi.model.type;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Represents the type of a variable.
|
||||
*
|
||||
* @since Apr 15, 2003
|
||||
*/
|
||||
public interface ICDIFloatingPointType extends ICDIType {
|
||||
|
||||
boolean isImaginary();
|
||||
|
||||
boolean isComplex();
|
||||
|
||||
boolean isLong();
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
/*
|
||||
*(c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.core.cdi.model.type;
|
||||
|
||||
import org.eclipse.cdt.debug.core.cdi.model.ICDIValue;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Represents the value of a variable.
|
||||
*
|
||||
* @since April 15, 2003
|
||||
*/
|
||||
public interface ICDIFloatingPointValue extends ICDIValue {
|
||||
|
||||
// Implement type conversion here
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
/*
|
||||
*(c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.core.cdi.model.type;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Represents the type of a variable.
|
||||
*
|
||||
* @since Apr 15, 2003
|
||||
*/
|
||||
public interface ICDIFunctionType extends ICDIDerivedType {
|
||||
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
/*
|
||||
*(c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.core.cdi.model.type;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Represents the type of a variable.
|
||||
*
|
||||
* @since Apr 15, 2003
|
||||
*/
|
||||
public interface ICDIFunctionValue extends ICDIDerivedValue {
|
||||
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
*(c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.core.cdi.model.type;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Represents the type of a variable.
|
||||
*
|
||||
* @since Apr 15, 2003
|
||||
*/
|
||||
public interface ICDIIntType extends ICDIIntegralType {
|
||||
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
*(c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.core.cdi.model.type;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Represents the value of a variable.
|
||||
*
|
||||
* @since April 15, 2003
|
||||
*/
|
||||
public interface ICDIIntValue extends ICDIIntegralValue {
|
||||
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
/*
|
||||
*(c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.core.cdi.model.type;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Represents the type of a variable.
|
||||
*
|
||||
* @since Apr 15, 2003
|
||||
*/
|
||||
public interface ICDIIntegralType extends ICDIType{
|
||||
|
||||
boolean isUnsigned();
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
/*
|
||||
*(c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.core.cdi.model.type;
|
||||
|
||||
import org.eclipse.cdt.debug.core.cdi.model.ICDIValue;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Represents the value of a variable.
|
||||
*
|
||||
* @since April 15, 2003
|
||||
*/
|
||||
public interface ICDIIntegralValue extends ICDIValue {
|
||||
|
||||
// Implement type conversion here
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
*(c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.core.cdi.model.type;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Represents the type of a variable.
|
||||
*
|
||||
* @since Apr 15, 2003
|
||||
*/
|
||||
public interface ICDILongLongType extends ICDIIntegralType {
|
||||
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
*(c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.core.cdi.model.type;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Represents the value of a variable.
|
||||
*
|
||||
* @since April 15, 2003
|
||||
*/
|
||||
public interface ICDILongLongValue extends ICDIIntegralValue {
|
||||
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
*(c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.core.cdi.model.type;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Represents the type of a variable.
|
||||
*
|
||||
* @since Apr 15, 2003
|
||||
*/
|
||||
public interface ICDILongType extends ICDIIntegralType {
|
||||
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
*(c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.core.cdi.model.type;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Represents the value of a variable.
|
||||
*
|
||||
* @since April 15, 2003
|
||||
*/
|
||||
public interface ICDILongValue extends ICDIIntegralValue {
|
||||
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
*(c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.core.cdi.model.type;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Represents the type of a variable.
|
||||
*
|
||||
* @since Apr 15, 2003
|
||||
*/
|
||||
public interface ICDIPointerType extends ICDIDerivedType {
|
||||
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
*(c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.core.cdi.model.type;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Represents the type of a variable.
|
||||
*
|
||||
* @since Apr 15, 2003
|
||||
*/
|
||||
public interface ICDIPointerValue extends ICDIDerivedValue {
|
||||
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
* (c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.core.cdi.model.type;
|
||||
|
||||
|
||||
/**
|
||||
*/
|
||||
public interface ICDIReferenceType extends ICDIDerivedType {
|
||||
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
/*
|
||||
* (c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*/
|
||||
package org.eclipse.cdt.debug.core.cdi.model.type;
|
||||
|
||||
|
||||
/**
|
||||
*/
|
||||
public interface ICDIReferenceValue extends ICDIDerivedValue {
|
||||
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
*(c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.core.cdi.model.type;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Represents the type of a variable.
|
||||
*
|
||||
* @since Apr 15, 2003
|
||||
*/
|
||||
public interface ICDIShortType extends ICDIIntegralType {
|
||||
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
*(c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.core.cdi.model.type;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Represents the value of a variable.
|
||||
*
|
||||
* @since April 15, 2003
|
||||
*/
|
||||
public interface ICDIShortValue extends ICDIIntegralValue {
|
||||
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
/*
|
||||
*(c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.core.cdi.model.type;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Represents the type of a variable.
|
||||
*
|
||||
* @since Apr 15, 2003
|
||||
*/
|
||||
public interface ICDIStructType extends ICDIAggregateType {
|
||||
|
||||
boolean isClass();
|
||||
|
||||
boolean isStruct();
|
||||
|
||||
boolean isUnion();
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
*(c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.core.cdi.model.type;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Represents the type of a variable.
|
||||
*
|
||||
* @since Apr 15, 2003
|
||||
*/
|
||||
public interface ICDIStructValue extends ICDIAggregateValue {
|
||||
|
||||
}
|
|
@ -0,0 +1,31 @@
|
|||
/*
|
||||
*(c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.core.cdi.model.type;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Represents the type of a variable.
|
||||
*
|
||||
* @since Apr 15, 2003
|
||||
*/
|
||||
public interface ICDIType {
|
||||
|
||||
/**
|
||||
* Returns the name.
|
||||
*
|
||||
* @return the name of the data type
|
||||
* @throws CDIException if this method fails.
|
||||
*/
|
||||
String getTypeName();
|
||||
|
||||
/**
|
||||
* Returns a more desciptive name.
|
||||
* @return
|
||||
*/
|
||||
String getDetailTypeName();
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
/*
|
||||
*(c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.core.cdi.model.type;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* Represents the type of a variable.
|
||||
*
|
||||
* @since Apr 15, 2003
|
||||
*/
|
||||
public interface ICDIVoidType extends ICDIType {
|
||||
|
||||
}
|
|
@ -0,0 +1,13 @@
|
|||
/*
|
||||
*(c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.core.cdi.model.type;
|
||||
|
||||
/**
|
||||
*/
|
||||
public interface ICDIWCharType extends ICDIIntegralType {
|
||||
|
||||
}
|
|
@ -0,0 +1,12 @@
|
|||
/*
|
||||
*(c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
*/
|
||||
package org.eclipse.cdt.debug.core.cdi.model.type;
|
||||
|
||||
/**
|
||||
*/
|
||||
public interface ICDIWCharValue extends ICDIIntegralValue {
|
||||
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
/*
|
||||
* (c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.mi.core.cdi.model.type;
|
||||
|
||||
import org.eclipse.cdt.debug.core.cdi.model.type.ICDIAggregateType;
|
||||
|
||||
/**
|
||||
*/
|
||||
public abstract class AggregateType extends Type implements ICDIAggregateType {
|
||||
|
||||
public AggregateType(String typename) {
|
||||
super(typename);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,36 @@
|
|||
/*
|
||||
* (c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.mi.core.cdi.model.type;
|
||||
|
||||
import org.eclipse.cdt.debug.core.cdi.model.type.ICDIArrayType;
|
||||
import org.eclipse.cdt.debug.core.cdi.model.type.ICDIType;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class ArrayType extends DerivedType implements ICDIArrayType {
|
||||
|
||||
/**
|
||||
* @param typename
|
||||
*/
|
||||
public ArrayType(String typename) {
|
||||
super(typename);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.cdt.debug.core.cdi.model.ICDIArrayType#getComponentType()
|
||||
*/
|
||||
public ICDIType getComponentType() {
|
||||
return null;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.cdt.debug.core.cdi.model.type.ICDIArrayType#getDimension()
|
||||
*/
|
||||
public int getDimension() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
/*
|
||||
* (c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.mi.core.cdi.model.type;
|
||||
|
||||
import org.eclipse.cdt.debug.core.cdi.model.type.ICDIBoolType;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class BoolType extends IntegralType implements ICDIBoolType {
|
||||
|
||||
/**
|
||||
* @param typename
|
||||
*/
|
||||
public BoolType(String typename) {
|
||||
this(typename, false);
|
||||
}
|
||||
|
||||
public BoolType(String typename, boolean usigned) {
|
||||
super(typename, usigned);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
* (c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.mi.core.cdi.model.type;
|
||||
|
||||
import org.eclipse.cdt.debug.core.cdi.model.type.ICDIBoolValue;
|
||||
import org.eclipse.cdt.debug.mi.core.cdi.model.Variable;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class BoolValue extends IntegralValue implements ICDIBoolValue {
|
||||
|
||||
/**
|
||||
* @param v
|
||||
*/
|
||||
public BoolValue(Variable v) {
|
||||
super(v);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,24 @@
|
|||
/*
|
||||
* (c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.mi.core.cdi.model.type;
|
||||
|
||||
import org.eclipse.cdt.debug.core.cdi.model.type.ICDICharType;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class CharType extends IntegralType implements ICDICharType {
|
||||
|
||||
/**
|
||||
* @param typename
|
||||
*/
|
||||
public CharType(String typename) {
|
||||
this(typename, false);
|
||||
}
|
||||
|
||||
public CharType(String typename, boolean usigned) {
|
||||
super(typename, usigned);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,31 @@
|
|||
/*
|
||||
* (c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.mi.core.cdi.model.type;
|
||||
|
||||
import org.eclipse.cdt.debug.core.cdi.CDIException;
|
||||
import org.eclipse.cdt.debug.core.cdi.model.type.ICDICharValue;
|
||||
import org.eclipse.cdt.debug.mi.core.cdi.model.Variable;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class CharValue extends IntegralValue implements ICDICharValue {
|
||||
|
||||
/**
|
||||
* @param v
|
||||
*/
|
||||
public CharValue(Variable v) {
|
||||
super(v);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.cdt.debug.core.cdi.model.ICDICharValue#getValue()
|
||||
*/
|
||||
public char getValue() throws CDIException {
|
||||
// TODO Auto-generated method stub
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
/*
|
||||
* (c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.mi.core.cdi.model.type;
|
||||
|
||||
import org.eclipse.cdt.debug.core.cdi.model.type.ICDIDerivedType;
|
||||
import org.eclipse.cdt.debug.core.cdi.model.type.ICDIType;
|
||||
|
||||
/**
|
||||
*/
|
||||
public abstract class DerivedType extends Type implements ICDIDerivedType {
|
||||
|
||||
public DerivedType(String typename) {
|
||||
super(typename);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.cdt.debug.core.cdi.model.type.ICDIDerivedType#getComponentType()
|
||||
*/
|
||||
public ICDIType getComponentType() {
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,24 @@
|
|||
/*
|
||||
* (c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.mi.core.cdi.model.type;
|
||||
|
||||
import org.eclipse.cdt.debug.core.cdi.model.type.ICDIDoubleType;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class DoubleType extends FloatingPointType implements ICDIDoubleType {
|
||||
|
||||
/**
|
||||
* @param typename
|
||||
*/
|
||||
public DoubleType(String typename) {
|
||||
this(typename, false, false, false);
|
||||
}
|
||||
|
||||
public DoubleType(String typename, boolean isComplex, boolean isImg, boolean isLong) {
|
||||
super(typename, isComplex, isImg, isLong);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
* (c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.mi.core.cdi.model.type;
|
||||
|
||||
import org.eclipse.cdt.debug.core.cdi.model.type.ICDIDoubleValue;
|
||||
import org.eclipse.cdt.debug.mi.core.cdi.model.Variable;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class DoubleValue extends FloatingPointValue implements ICDIDoubleValue {
|
||||
|
||||
/**
|
||||
* @param Variable
|
||||
*/
|
||||
public DoubleValue(Variable v) {
|
||||
super(v);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
/*
|
||||
*(c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.mi.core.cdi.model.type;
|
||||
|
||||
import org.eclipse.cdt.debug.core.cdi.model.type.ICDIEnumType;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class EnumType extends IntegralType implements ICDIEnumType {
|
||||
|
||||
/**
|
||||
* @param typename
|
||||
*/
|
||||
public EnumType(String typename) {
|
||||
this(typename, false);
|
||||
}
|
||||
|
||||
public EnumType(String typename, boolean usigned) {
|
||||
super(typename, usigned);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
* (c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.mi.core.cdi.model.type;
|
||||
|
||||
import org.eclipse.cdt.debug.core.cdi.model.type.ICDIEnumValue;
|
||||
import org.eclipse.cdt.debug.mi.core.cdi.model.Variable;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class EnumValue extends IntegralValue implements ICDIEnumValue {
|
||||
|
||||
/**
|
||||
* @param v
|
||||
*/
|
||||
public EnumValue(Variable v) {
|
||||
super(v);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,24 @@
|
|||
/*
|
||||
* (c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.mi.core.cdi.model.type;
|
||||
|
||||
import org.eclipse.cdt.debug.core.cdi.model.type.ICDIFloatType;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class FloatType extends FloatingPointType implements ICDIFloatType {
|
||||
|
||||
/**
|
||||
* @param typename
|
||||
*/
|
||||
public FloatType(String typename) {
|
||||
this(typename, false, false);
|
||||
}
|
||||
|
||||
public FloatType(String typename, boolean isComplex, boolean isImg) {
|
||||
super(typename, isComplex, isImg, false);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
* (c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.mi.core.cdi.model.type;
|
||||
|
||||
import org.eclipse.cdt.debug.core.cdi.model.type.ICDIFloatValue;
|
||||
import org.eclipse.cdt.debug.mi.core.cdi.model.Variable;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class FloatValue extends FloatingPointValue implements ICDIFloatValue {
|
||||
|
||||
/**
|
||||
* @param Variable
|
||||
*/
|
||||
public FloatValue(Variable v) {
|
||||
super(v);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,46 @@
|
|||
/*
|
||||
* (c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.mi.core.cdi.model.type;
|
||||
|
||||
import org.eclipse.cdt.debug.core.cdi.model.type.ICDIFloatingPointType;
|
||||
|
||||
/**
|
||||
*/
|
||||
public abstract class FloatingPointType extends Type implements ICDIFloatingPointType {
|
||||
|
||||
boolean complex;
|
||||
boolean imaginary;
|
||||
boolean islong;
|
||||
|
||||
public FloatingPointType(String typename, boolean comp, boolean img, boolean l) {
|
||||
super(typename);
|
||||
complex = comp;
|
||||
imaginary = img;
|
||||
islong = l;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.cdt.debug.core.cdi.model.type.ICDIFloatingPointType#isComplex()
|
||||
*/
|
||||
public boolean isComplex() {
|
||||
return complex;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.cdt.debug.core.cdi.model.type.ICDIFloatingPointType#isImaginary()
|
||||
*/
|
||||
public boolean isImaginary() {
|
||||
return imaginary;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.cdt.debug.core.cdi.model.type.ICDIFloatingPointType#isLong()
|
||||
*/
|
||||
public boolean isLong() {
|
||||
return islong;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,23 @@
|
|||
/*
|
||||
* (c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.mi.core.cdi.model.type;
|
||||
|
||||
import org.eclipse.cdt.debug.core.cdi.model.type.ICDIFloatingPointValue;
|
||||
import org.eclipse.cdt.debug.mi.core.cdi.model.Value;
|
||||
import org.eclipse.cdt.debug.mi.core.cdi.model.Variable;
|
||||
|
||||
/**
|
||||
*/
|
||||
public abstract class FloatingPointValue extends Value implements ICDIFloatingPointValue {
|
||||
|
||||
/**
|
||||
* @param v
|
||||
*/
|
||||
public FloatingPointValue(Variable v) {
|
||||
super(v);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
/*
|
||||
* (c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.mi.core.cdi.model.type;
|
||||
|
||||
import org.eclipse.cdt.debug.core.cdi.model.type.ICDIFunctionType;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class FunctionType extends DerivedType implements ICDIFunctionType {
|
||||
|
||||
public FunctionType(String typename) {
|
||||
super(typename);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,20 @@
|
|||
/*
|
||||
* (c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.mi.core.cdi.model.type;
|
||||
|
||||
|
||||
/**
|
||||
*/
|
||||
public class IncompleteType extends Type {
|
||||
|
||||
/**
|
||||
* @param name
|
||||
*/
|
||||
public IncompleteType(String name) {
|
||||
super(name);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
/*
|
||||
* (c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.mi.core.cdi.model.type;
|
||||
|
||||
import org.eclipse.cdt.debug.core.cdi.model.type.ICDIIntType;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class IntType extends IntegralType implements ICDIIntType {
|
||||
|
||||
/**
|
||||
* @param typename
|
||||
*/
|
||||
public IntType(String typename) {
|
||||
this(typename, false);
|
||||
}
|
||||
|
||||
public IntType(String typename, boolean usigned) {
|
||||
super(typename, usigned);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
* (c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.mi.core.cdi.model.type;
|
||||
|
||||
import org.eclipse.cdt.debug.core.cdi.model.type.ICDIIntValue;
|
||||
import org.eclipse.cdt.debug.mi.core.cdi.model.Variable;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class IntValue extends IntegralValue implements ICDIIntValue {
|
||||
|
||||
/**
|
||||
* @param v
|
||||
*/
|
||||
public IntValue(Variable v) {
|
||||
super(v);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,28 @@
|
|||
/*
|
||||
* (c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.mi.core.cdi.model.type;
|
||||
|
||||
import org.eclipse.cdt.debug.core.cdi.model.type.ICDIIntegralType;
|
||||
|
||||
/**
|
||||
*/
|
||||
public abstract class IntegralType extends Type implements ICDIIntegralType {
|
||||
|
||||
boolean unSigned;
|
||||
|
||||
public IntegralType(String typename, boolean usigned) {
|
||||
super(typename);
|
||||
unSigned = usigned;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.cdt.debug.core.cdi.model.ICDIIntegralType#isUnsigned()
|
||||
*/
|
||||
public boolean isUnsigned() {
|
||||
return unSigned;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,92 @@
|
|||
/*
|
||||
* (c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.mi.core.cdi.model.type;
|
||||
|
||||
import org.eclipse.cdt.debug.core.cdi.CDIException;
|
||||
import org.eclipse.cdt.debug.core.cdi.model.type.ICDIIntegralValue;
|
||||
import org.eclipse.cdt.debug.mi.core.cdi.model.Value;
|
||||
import org.eclipse.cdt.debug.mi.core.cdi.model.Variable;
|
||||
|
||||
/**
|
||||
*/
|
||||
public abstract class IntegralValue extends Value implements ICDIIntegralValue {
|
||||
|
||||
/**
|
||||
* @param v
|
||||
*/
|
||||
public IntegralValue(Variable v) {
|
||||
super(v);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.cdt.debug.core.cdi.model.ICDIIntegralValue#longValue()
|
||||
*/
|
||||
public long longValue() throws CDIException {
|
||||
long value = 0;
|
||||
String valueString = getValueString();
|
||||
int space = valueString.indexOf(' ');
|
||||
if (space != -1) {
|
||||
valueString = valueString.substring(0, space).trim();
|
||||
}
|
||||
try {
|
||||
value = Long.decode(valueString).longValue();
|
||||
} catch (NumberFormatException e) {
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.cdt.debug.core.cdi.model.ICDIIntegralValue#longValue()
|
||||
*/
|
||||
public int intValue() throws CDIException {
|
||||
int value = 0;
|
||||
String valueString = getValueString();
|
||||
int space = valueString.indexOf(' ');
|
||||
if (space != -1) {
|
||||
valueString = valueString.substring(0, space).trim();
|
||||
}
|
||||
try {
|
||||
value = Integer.decode(valueString).intValue();
|
||||
} catch (NumberFormatException e) {
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.cdt.debug.core.cdi.model.ICDIIntegralValue#shortValue()
|
||||
*/
|
||||
public short shortValue() throws CDIException {
|
||||
short value = 0;
|
||||
String valueString = getValueString();
|
||||
int space = valueString.indexOf(' ');
|
||||
if (space != -1) {
|
||||
valueString = valueString.substring(0, space).trim();
|
||||
}
|
||||
try {
|
||||
value = Short.decode(valueString).shortValue();
|
||||
} catch (NumberFormatException e) {
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.cdt.debug.core.cdi.model.ICDIIntegralValue#byteValue()
|
||||
*/
|
||||
public int byteValue() throws CDIException {
|
||||
byte value = 0;
|
||||
String valueString = getValueString();
|
||||
int space = valueString.indexOf(' ');
|
||||
if (space != -1) {
|
||||
valueString = valueString.substring(0, space).trim();
|
||||
}
|
||||
try {
|
||||
value = Byte.decode(valueString).byteValue();
|
||||
} catch (NumberFormatException e) {
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,25 @@
|
|||
/*
|
||||
*(c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.mi.core.cdi.model.type;
|
||||
|
||||
import org.eclipse.cdt.debug.core.cdi.model.type.ICDILongLongType;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class LongLongType extends IntegralType implements ICDILongLongType {
|
||||
|
||||
/**
|
||||
* @param typename
|
||||
*/
|
||||
public LongLongType(String typename) {
|
||||
this(typename, false);
|
||||
}
|
||||
|
||||
public LongLongType(String typename, boolean usigned) {
|
||||
super(typename, usigned);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
* (c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.mi.core.cdi.model.type;
|
||||
|
||||
import org.eclipse.cdt.debug.core.cdi.model.type.ICDILongLongValue;
|
||||
import org.eclipse.cdt.debug.mi.core.cdi.model.Variable;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class LongLongValue extends IntegralValue implements ICDILongLongValue {
|
||||
|
||||
/**
|
||||
* @param v
|
||||
*/
|
||||
public LongLongValue(Variable v) {
|
||||
super(v);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,24 @@
|
|||
/*
|
||||
* (c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.mi.core.cdi.model.type;
|
||||
|
||||
import org.eclipse.cdt.debug.core.cdi.model.type.ICDILongType;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class LongType extends IntegralType implements ICDILongType {
|
||||
|
||||
/**
|
||||
* @param typename
|
||||
*/
|
||||
public LongType(String typename) {
|
||||
this(typename, false);
|
||||
}
|
||||
|
||||
public LongType(String typename, boolean usigned) {
|
||||
super(typename, usigned);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
* (c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.mi.core.cdi.model.type;
|
||||
|
||||
import org.eclipse.cdt.debug.core.cdi.model.type.ICDILongValue;
|
||||
import org.eclipse.cdt.debug.mi.core.cdi.model.Variable;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class LongValue extends IntegralValue implements ICDILongValue {
|
||||
|
||||
/**
|
||||
* @param v
|
||||
*/
|
||||
public LongValue(Variable v) {
|
||||
super(v);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
/*
|
||||
* (c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.mi.core.cdi.model.type;
|
||||
|
||||
import org.eclipse.cdt.debug.core.cdi.model.type.ICDIPointerType;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class PointerType extends DerivedType implements ICDIPointerType {
|
||||
|
||||
public PointerType(String typename) {
|
||||
super(typename);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
/*
|
||||
* (c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.mi.core.cdi.model.type;
|
||||
|
||||
import org.eclipse.cdt.debug.core.cdi.model.type.ICDIReferenceType;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class ReferenceType extends DerivedType implements ICDIReferenceType {
|
||||
|
||||
/**
|
||||
* @param name
|
||||
*/
|
||||
public ReferenceType(String name) {
|
||||
super(name);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,24 @@
|
|||
/*
|
||||
* (c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.mi.core.cdi.model.type;
|
||||
|
||||
import org.eclipse.cdt.debug.core.cdi.model.type.ICDIShortType;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class ShortType extends IntegralType implements ICDIShortType {
|
||||
|
||||
/**
|
||||
* @param typename
|
||||
*/
|
||||
public ShortType(String typename) {
|
||||
this(typename, false);
|
||||
}
|
||||
|
||||
public ShortType(String typename, boolean usigned) {
|
||||
super(typename, usigned);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
/*
|
||||
* (c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.mi.core.cdi.model.type;
|
||||
|
||||
import org.eclipse.cdt.debug.core.cdi.model.type.ICDIShortValue;
|
||||
import org.eclipse.cdt.debug.mi.core.cdi.model.Variable;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class ShortValue extends IntegralValue implements ICDIShortValue {
|
||||
|
||||
/**
|
||||
* @param v
|
||||
*/
|
||||
public ShortValue(Variable v) {
|
||||
super(v);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,44 @@
|
|||
/*
|
||||
*(c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.mi.core.cdi.model.type;
|
||||
|
||||
import org.eclipse.cdt.debug.core.cdi.model.type.ICDIStructType;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class StructType extends AggregateType implements ICDIStructType {
|
||||
|
||||
/**
|
||||
* @param typename
|
||||
*/
|
||||
public StructType(String typename) {
|
||||
super(typename);
|
||||
}
|
||||
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.cdt.debug.core.cdi.model.type.ICDIStructType#isClass()
|
||||
*/
|
||||
public boolean isClass() {
|
||||
return getDetailTypeName().startsWith("class");
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.cdt.debug.core.cdi.model.type.ICDIStructType#isStruct()
|
||||
*/
|
||||
public boolean isStruct() {
|
||||
return getDetailTypeName().startsWith("struct");
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.cdt.debug.core.cdi.model.type.ICDIStructType#isUnion()
|
||||
*/
|
||||
public boolean isUnion() {
|
||||
return getDetailTypeName().startsWith("union");
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,42 @@
|
|||
/*
|
||||
*(c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.mi.core.cdi.model.type;
|
||||
|
||||
import org.eclipse.cdt.debug.core.cdi.model.type.ICDIType;
|
||||
|
||||
/**
|
||||
*/
|
||||
public abstract class Type implements ICDIType {
|
||||
|
||||
String typename;
|
||||
String detailName;
|
||||
|
||||
public Type(String name) {
|
||||
typename = name;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.cdt.debug.core.cdi.model.ICDIType#getTypeName()
|
||||
*/
|
||||
public String getTypeName() {
|
||||
return typename;
|
||||
}
|
||||
|
||||
public void setDetailTypeName(String name) {
|
||||
detailName = name;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.cdt.debug.core.cdi.model.ICDIType#getDetailTypeName()
|
||||
*/
|
||||
public String getDetailTypeName() {
|
||||
if (detailName == null) {
|
||||
return getTypeName();
|
||||
}
|
||||
return detailName;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
/*
|
||||
* (c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.mi.core.cdi.model.type;
|
||||
|
||||
import org.eclipse.cdt.debug.core.cdi.model.type.ICDIVoidType;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class VoidType extends Type implements ICDIVoidType {
|
||||
|
||||
public VoidType(String typename) {
|
||||
super(typename);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,26 @@
|
|||
/*
|
||||
*(c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
package org.eclipse.cdt.debug.mi.core.cdi.model.type;
|
||||
|
||||
import org.eclipse.cdt.debug.core.cdi.model.type.ICDIWCharType;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class WCharType extends IntegralType implements ICDIWCharType {
|
||||
|
||||
/**
|
||||
* @param typename
|
||||
*/
|
||||
public WCharType(String typename) {
|
||||
this(typename, false);
|
||||
}
|
||||
|
||||
public WCharType(String typename, boolean usigned) {
|
||||
super(typename, usigned);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,32 @@
|
|||
/*
|
||||
*(c) Copyright QNX Software Systems Ltd. 2002.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
*/
|
||||
|
||||
package org.eclipse.cdt.debug.mi.core.cdi.model.type;
|
||||
|
||||
import org.eclipse.cdt.debug.core.cdi.CDIException;
|
||||
import org.eclipse.cdt.debug.core.cdi.model.type.ICDIWCharValue;
|
||||
import org.eclipse.cdt.debug.mi.core.cdi.model.Variable;
|
||||
|
||||
/**
|
||||
*/
|
||||
public class WCharValue extends IntegralValue implements ICDIWCharValue {
|
||||
|
||||
/**
|
||||
* @param v
|
||||
*/
|
||||
public WCharValue(Variable v) {
|
||||
super(v);
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
* @see org.eclipse.cdt.debug.core.cdi.model.ICDICharValue#getValue()
|
||||
*/
|
||||
public char getValue() throws CDIException {
|
||||
// TODO Auto-generated method stub
|
||||
return 0;
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Reference in a new issue