Examples of IJavaClassType


Examples of org.eclipse.jdt.debug.core.IJavaClassType

        try {
            IJavaType type= javaValue.getJavaType();
            if (!(type instanceof IJavaClassType)) {
                return new ILogicalStructureType[0];
            }
            IJavaClassType classType = (IJavaClassType) type;
            IJavaInterfaceType[] interfaceTypes = classType.getAllInterfaces();
           
            for ( int i = 0; i < interfaceTypes.length; i++ ) {
                if ("org.drools.spi.Activation".equals(interfaceTypes[i].getName())) {
                    return agendaLogicalStructures;
                }               
View Full Code Here

Examples of org.eclipse.jdt.debug.core.IJavaClassType

        try {
            IJavaType type= javaValue.getJavaType();
            if (!(type instanceof IJavaClassType)) {
                return false;
            }
            IJavaClassType classType = (IJavaClassType) type;
            IJavaInterfaceType[] interfaceTypes = classType.getAllInterfaces();
            for ( int i = 0; i < interfaceTypes.length; i++ ) {
                if ("org.drools.spi.Activation".equals(interfaceTypes[i].getName())) {
                    return true;
                }               
            }
View Full Code Here

Examples of org.eclipse.jdt.debug.core.IJavaClassType

        try {
            IJavaType type= javaValue.getJavaType();
            if (!(type instanceof IJavaClassType)) {
                return false;
            }
            IJavaClassType classType = (IJavaClassType) type;
            IJavaInterfaceType[] interfaceTypes = classType.getAllInterfaces();
            for ( int i = 0; i < interfaceTypes.length; i++ ) {
                if ("org.drools.core.spi.Activation".equals(interfaceTypes[i].getName())
                    || "org.drools.spi.Activation".equals(interfaceTypes[i].getName())) {
                    return true;
                }
View Full Code Here

Examples of org.eclipse.jdt.debug.core.IJavaClassType

        try {
            IJavaType type= javaValue.getJavaType();
            if (!(type instanceof IJavaClassType)) {
                return false;
            }
            IJavaClassType classType = (IJavaClassType) type;
            IJavaInterfaceType[] interfaceTypes = classType.getAllInterfaces();
            for ( int i = 0; i < interfaceTypes.length; i++ ) {
                if ("org.drools.core.spi.Activation".equals(interfaceTypes[i].getName())
                    || "org.drools.spi.Activation".equals(interfaceTypes[i].getName())) {
                    return true;
                }
View Full Code Here

Examples of org.eclipse.jdt.debug.core.IJavaClassType

        try {
            IJavaType type= javaValue.getJavaType();
            if (!(type instanceof IJavaClassType)) {
                return false;
            }
            IJavaClassType classType = (IJavaClassType) type;
            IJavaInterfaceType[] interfaceTypes = classType.getAllInterfaces();
            for ( int i = 0; i < interfaceTypes.length; i++ ) {
                if ("org.drools.spi.Activation".equals(interfaceTypes[i].getName())) {
                    return true;
                }
            }
View Full Code Here

Examples of org.eclipse.jdt.debug.core.IJavaClassType

    super(keyPathToEOEntity);
  }

  public String getSuffix(String key, NSKeyValueCodingLogicalStructureType keyValueCodingLogicalStructureType) {
    IValue resolvedValue = null;
    IJavaClassType classType;
    try {
      classType = keyValueCodingLogicalStructureType.getIJavaClassType(keyValueCodingLogicalStructureType.getParentValue());
      JavaLogicalStructure entityJavaLogicalStructure = new JavaLogicalStructure(classType.getName(), true, "return valueForKeyPath(\"" + this.getSuffix() + "\");", "bla", new String[0][0]);
      resolvedValue = entityJavaLogicalStructure.getLogicalStructure(keyValueCodingLogicalStructureType.getParentValue());
    } catch (DebugException e) {
      Activator.getDefault().log(e);
    } catch (CoreException e) {
      Activator.getDefault().log(e);
    }
    EOEntityLogicalStructureType entityLogicalStructureType = new EOEntityLogicalStructureType(resolvedValue);
    try {
      classType = keyValueCodingLogicalStructureType.getIJavaClassType(resolvedValue);
      JavaLogicalStructure attributeJavaLogicalStructure = new JavaLogicalStructure(classType.getName(), true, "return attributeNamed(\"" + key + "\");", "bla", new String[0][0]);
      resolvedValue = attributeJavaLogicalStructure.getLogicalStructure(entityLogicalStructureType.getParentValue());
    } catch (DebugException e) {
      Activator.getDefault().log(e);
    } catch (CoreException e) {
      Activator.getDefault().log(e);
View Full Code Here

Examples of org.eclipse.jdt.debug.core.IJavaClassType

  public IValue getLogicalStructure(IValue value) throws CoreException {
    // only useful for wo < 5.3 (since 5.3 NSArray is a collection)
    // never called under 5.3
    IValue attributeKeysResolvedValue = value;
    IJavaClassType classType;
    try {
      classType = this.getIJavaClassType(value);
      JavaLogicalStructure attributeKeysJavaLogicalStructure = new JavaLogicalStructure(classType.getName(), true, "return objects();", "bla", new String[0][0]);
      attributeKeysResolvedValue = attributeKeysJavaLogicalStructure.getLogicalStructure(value);
    } catch (DebugException e) {
      Activator.getDefault().log(e);
    }
    return attributeKeysResolvedValue;
View Full Code Here

Examples of org.eclipse.jdt.debug.core.IJavaClassType

    String[] coolKeys = new String[] { "editingContext", "classDescription", "classDescription.entity" };
    String[] attributeKeys = this.resolveAttributeKeys();
    String[] toOneRelationshipKeys = this.resolveToOneRelationshipKeys();
    String[] toManyRelationshipKeys = this.resolveToManyRelationshipKeys();
    int length = coolKeys.length + attributeKeys.length + toOneRelationshipKeys.length + toManyRelationshipKeys.length;
    IJavaClassType classType = this.getIJavaClassType(value);
    String[][] variablesAndMethods = new String[length][2];
    int offset = 0;
    this.appendKeyPathsToVariablesAndMethodsArray(offset, coolKeys, null, variablesAndMethods);
    offset = offset + coolKeys.length;
    this.appendKeyPathsToVariablesAndMethodsArray(offset, attributeKeys, new EOAttributeSuffixProvider("classDescription.entity"), variablesAndMethods);
    offset = offset + attributeKeys.length;
    this.appendKeyPathsToVariablesAndMethodsArray(offset, toOneRelationshipKeys, new SuffixProvider(" (to one)"), variablesAndMethods);
    offset = offset + toOneRelationshipKeys.length;
    this.appendKeyPathsToVariablesAndMethodsArray(offset, toManyRelationshipKeys, new SuffixProvider(" (to many)"), variablesAndMethods);
    JavaLogicalStructure javaLogicalStructure = new JavaLogicalStructure(classType.getName(), true, null, "bla", variablesAndMethods);
    IValue resolvedValue = javaLogicalStructure.getLogicalStructure(value);
    return resolvedValue;
  }
View Full Code Here

Examples of org.eclipse.jdt.debug.core.IJavaClassType

      }
      JDIClassType jdiClassType = (JDIClassType) javaType;
      if (jdiClassType.getName().equals(superclass)) {
        return true;
      }
      IJavaClassType javaClassType = jdiClassType.getSuperclass();
      while (javaClassType != null) {
        if (javaClassType.getName().equals(superclass)) {
          return true;
        }
        javaClassType = javaClassType.getSuperclass();
      }
    } catch (DebugException e) {
      Activator.getDefault().log(e);
    }
    return false;
View Full Code Here

Examples of org.eclipse.jdt.debug.core.IJavaClassType

    IJavaObject javaValue = (IJavaObject) value;
    IJavaType type = javaValue.getJavaType();
    if (!(type instanceof IJavaClassType)) {
      return null;
    }
    IJavaClassType classType = (IJavaClassType) type;
    return classType;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.