01: /*******************************************************************************
02: * Portions created by Sebastian Thomschke are copyright (c) 2005-2007 Sebastian
03: * Thomschke.
04: *
05: * All Rights Reserved. This program and the accompanying materials
06: * are made available under the terms of the Eclipse Public License v1.0
07: * which accompanies this distribution, and is available at
08: * http://www.eclipse.org/legal/epl-v10.html
09: *
10: * Contributors:
11: * Sebastian Thomschke - initial implementation.
12: *******************************************************************************/package net.sf.oval.context;
13:
14: /**
15: * @author Sebastian Thomschke
16: */
17: public class ClassContext extends OValContext {
18: private static final long serialVersionUID = 1L;
19:
20: private final Class clazz;
21:
22: public ClassContext(final Class clazz) {
23: this .clazz = clazz;
24: }
25:
26: /**
27: * @return the clazz
28: */
29: public Class getClazz() {
30: return clazz;
31: }
32:
33: @Override
34: public String toString() {
35: return clazz.getName();
36: }
37: }
|