KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > jac > samples > calcul > Op


1
2 package org.objectweb.jac.samples.calcul;
3
4 public class Op {
5
6    String JavaDoc name;
7    
8    /**
9     * Get the value of name.
10     * @return value of name.
11     */

12    public String JavaDoc getName() {
13       return name;
14    }
15    
16    /**
17     * Set the value of name.
18     * @param v Value to assign to name.
19     */

20    public void setName(String JavaDoc v) {
21       this.name = v;
22    }
23    
24    String JavaDoc arg;
25    
26    /**
27     * Get the value of arg.
28     * @return value of arg.
29     */

30    public String JavaDoc getArg() {
31       return arg;
32    }
33    
34    /**
35     * Set the value of arg.
36     * @param v Value to assign to arg.
37     */

38    public void setArg(String JavaDoc v) {
39       this.arg = v;
40    }
41    
42
43    public Op(String JavaDoc name,String JavaDoc arg) {
44       this.name=name;
45       this.arg=arg;
46    }
47
48 }
49
Popular Tags