Package com.sun.jdi

Examples of com.sun.jdi.Type


  private static void checkReferenceType(ReferenceType valueType,
      ReferenceType type) throws InvalidTypeException {
    if (valueType instanceof ArrayType) {
      if (type instanceof ArrayType) {
        try {
          Type valueComponentType = ((ArrayType) valueType)
              .componentType();
          Type componentType = ((ArrayType) type).componentType();
          if (valueComponentType instanceof PrimitiveType) {
            if (valueComponentType.equals(componentType)) {
              return;
            }
          } else if (valueComponentType instanceof ReferenceType
View Full Code Here


   * @see IJavaStackFrame#getDeclaringType()
   */
  public IJavaClassType getDeclaringType() throws DebugException {
    Method method = getUnderlyingMethod();
    try {
      Type type = method.declaringType();
      if (type instanceof ClassType) {
        return (IJavaClassType) JDIType.createType(
            (JDIDebugTarget) getDebugTarget(), type);
      }
      targetRequestFailed(JDIDebugModelMessages.JDIStackFrame_0, null);
View Full Code Here

   * @see org.eclipse.jdt.debug.core.IJavaStackFrame#getReferenceType()
   */
  public IJavaReferenceType getReferenceType() throws DebugException {
    Method method = getUnderlyingMethod();
    try {
      Type type = method.declaringType();
      return (IJavaReferenceType) JDIType.createType(
          (JDIDebugTarget) getDebugTarget(), type);
    } catch (RuntimeException e) {
      targetRequestFailed(
          MessageFormat.format(
View Full Code Here

  public String getReferenceTypeName() throws DebugException {
    String genericSignature = getField().genericSignature();
    if (genericSignature != null) {
      return JDIReferenceType.getTypeName(genericSignature);
    }
    Type underlyingType = getUnderlyingType();
    if (underlyingType instanceof ReferenceType) {
      return JDIReferenceType
          .getGenericName((ReferenceType) underlyingType);
    }
    return getField().typeName();
View Full Code Here

  /**
   * @see IJavaArray#getComponentType()
   */
  public IJavaType getComponentType() throws DebugException {
    try {
      Type type = ((ArrayType) getUnderlyingType()).componentType();
      return JDIType.createType(getJavaDebugTarget(), type);
    } catch (ClassNotLoadedException e) {
      targetRequestFailed(
          MessageFormat.format(
              JDIDebugModelMessages.JDIArrayType_exception_while_retrieving_component_type_of_array,
View Full Code Here

        }
        try {
            // Set up parameters.
            Iterator<Type> argumentTypes = method.argumentTypes().iterator();
            while (argumentTypes.hasNext()) {
                Type next = argumentTypes.next();
                m.addParameter(TypeUtils.getTypeInfo(next));
            }
        } catch (ClassNotLoadedException ex) {
            Logger.getLogger(TypeUtils.class.getName()).log(Level.INFO, null, ex);
        }
View Full Code Here

TOP

Related Classes of com.sun.jdi.Type

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.