Package org.eclipse.jdt.internal.debug.core.logicalstructures

Examples of org.eclipse.jdt.internal.debug.core.logicalstructures.JavaLogicalStructure


  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


    // 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

    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

  public String resolve(String method, IValue value) {
    String resolvedString = null;
    IJavaClassType classType;
    try {
      classType = this.getIJavaClassType(value);
      JavaLogicalStructure countJavaLogicalStructure = new JavaLogicalStructure(classType.getName(), true, method, "bla", new String[0][0]);
      IValue resolvedValue = countJavaLogicalStructure.getLogicalStructure(value);
      resolvedString = resolvedValue.getValueString();
    } catch (DebugException e) {
      Activator.getDefault().log(e);
    } catch (CoreException e) {
      Activator.getDefault().log(e);
View Full Code Here

  public String[] resolveNSArrayToKeys(String method) {
    String[] resolvedArrayToKeys = new String[0];
    IJavaClassType classType;
    try {
      classType = this.getIJavaClassType(this.getParentValue());
      JavaLogicalStructure attributeKeysJavaLogicalStructure = new JavaLogicalStructure(classType.getName(), true, method, "bla", new String[0][0]);
      IValue attributeKeysResolvedValue = attributeKeysJavaLogicalStructure.getLogicalStructure(this.getParentValue());
      NSArrayLogicalStructureType arrayLogicalStructureType = new NSArrayLogicalStructureType(attributeKeysResolvedValue);
      resolvedArrayToKeys = arrayLogicalStructureType.resolveObjects();
    } catch (DebugException e) {
      Activator.getDefault().log(e);
    } catch (CoreException e) {
View Full Code Here

    IJavaClassType classType = this.getIJavaClassType(value);
    String[][] variablesAndMethods = new String[length][2];
    int offset = 0;
    this.appendMethodsToVariablesAndMethodsArray(offset, coolMethods, null, variablesAndMethods);
    offset = offset + coolMethods.length;
    JavaLogicalStructure javaLogicalStructure = new JavaLogicalStructure(classType.getName(), true, null, "bla", variablesAndMethods);
    IValue resolvedValue = javaLogicalStructure.getLogicalStructure(value);
    return resolvedValue;
  }
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.internal.debug.core.logicalstructures.JavaLogicalStructure

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.