1 /**********************************************************************
2 Copyright (c) 2000, 2002 IBM Corp. and others.
3 All rights reserved. This program and the accompanying materials
4 are made available under the terms of the Common Public License v1.0
5 which accompanies this distribution, and is available at
6 http://www.eclipse.org/legal/cpl-v10.html
9 IBM Corporation - Initial implementation
10 Vicente Fernando - www.alfersoft.com.ar
11 **********************************************************************/
12 package net.sourceforge.phpdt.internal.debug.core.model;
14 import org.eclipse.debug.core.ILaunch;
15 import org.eclipse.debug.core.model.IDebugTarget;
16 import org.eclipse.debug.core.model.IExpression;
17 import org.eclipse.debug.core.model.IValue;
19 public class PHPExpression implements IExpression {
21 private PHPVariable inspectionResult;
23 private String expression;
25 public PHPExpression(String expression, PHPVariable inspectionResult) {
26 this.inspectionResult = inspectionResult;
27 this.expression = expression;
31 public String getExpressionText() {
35 public IValue getValue() {
36 return inspectionResult.getValue();
39 public IDebugTarget getDebugTarget() {
40 return inspectionResult.getDebugTarget();
43 public void dispose() {
47 public String getModelIdentifier() {
48 return this.getDebugTarget().getModelIdentifier();
51 public ILaunch getLaunch() {
52 return this.getDebugTarget().getLaunch();
55 public Object getAdapter(Class arg0) {