01: package org.acm.seguin.refactor.type;
02:
03: /**
04: * Holds a state for a type change visitor to find the type;
05: *
06: *@author Chris Seguin
07: */
08: class State {
09: private boolean packageRequired;
10: private String className;
11:
12: /**
13: * Constructor for the State object
14: *
15: *@param name Description of Parameter
16: *@param required Description of Parameter
17: */
18: public State(String name, boolean required) {
19: packageRequired = required;
20: className = name;
21: }
22:
23: /**
24: * Gets the ClassName attribute of the State object
25: *
26: *@return The ClassName value
27: */
28: public String getClassName() {
29: return className;
30: }
31:
32: /**
33: * Gets the PackageRequired attribute of the State object
34: *
35: *@return The PackageRequired value
36: */
37: public boolean isPackageRequired() {
38: return packageRequired;
39: }
40: }
|