A massive organize imports and formatting of the sources using default Eclipse code...
[phpeclipse.git] / net.sourceforge.phpeclipse.debug.core / src / net / sourceforge / phpdt / internal / debug / core / model / PHPExpression.java
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
7
8  Contributors:
9  IBM Corporation - Initial implementation
10  Vicente Fernando - www.alfersoft.com.ar
11  **********************************************************************/
12 package net.sourceforge.phpdt.internal.debug.core.model;
13
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;
18
19 public class PHPExpression implements IExpression {
20
21         private PHPVariable inspectionResult;
22
23         private String expression;
24
25         public PHPExpression(String expression, PHPVariable inspectionResult) {
26                 this.inspectionResult = inspectionResult;
27                 this.expression = expression;
28
29         }
30
31         public String getExpressionText() {
32                 return expression;
33         }
34
35         public IValue getValue() {
36                 return inspectionResult.getValue();
37         }
38
39         public IDebugTarget getDebugTarget() {
40                 return inspectionResult.getDebugTarget();
41         }
42
43         public void dispose() {
44
45         }
46
47         public String getModelIdentifier() {
48                 return this.getDebugTarget().getModelIdentifier();
49         }
50
51         public ILaunch getLaunch() {
52                 return this.getDebugTarget().getLaunch();
53         }
54
55         public Object getAdapter(Class arg0) {
56                 return null;
57         }
58
59 }