4 public class TempDescriptor extends Descriptor {
5 static int currentid=0;
11 public TempDescriptor(String name) {
16 public TempDescriptor(String name, TypeDescriptor td) {
21 public TempDescriptor(String name, ClassDescriptor cd) {
23 type=new TypeDescriptor(cd);
26 public TempDescriptor(String name, TypeDescriptor type, TagDescriptor td) {
32 public TempDescriptor createNew() {
34 return new TempDescriptor(name+"_"+currentid, type);
36 return new TempDescriptor(name+"_"+currentid, type, tag);
39 public TempDescriptor createNew(String x) {
41 return new TempDescriptor(name+"_"+currentid+"_"+x, type);
43 return new TempDescriptor(name+"_"+currentid+"_"+x, type, tag);
46 public static TempDescriptor tempFactory() {
47 return new TempDescriptor("temp_"+currentid);
50 public static TempDescriptor tempFactory(String name) {
51 return new TempDescriptor(name+currentid);
54 public static TempDescriptor tempFactory(String name, TypeDescriptor td) {
55 return new TempDescriptor(name+currentid,td);
58 public static TempDescriptor tempFactory(String name, TypeDescriptor type, TagDescriptor tag) {
59 return new TempDescriptor(name+currentid,type,tag);
62 public static TempDescriptor paramtempFactory(String name, TypeDescriptor td) {
63 return new TempDescriptor(name,td);
66 public static TempDescriptor paramtempFactory(String name, TypeDescriptor tagtype, TagDescriptor tag) {
67 return new TempDescriptor(name, tagtype, tag);
70 public String toString() {
74 public void setType(TypeDescriptor td) {
78 public TypeDescriptor getType() {
82 public TagDescriptor getTag() {
86 public void setTag(TagDescriptor tag) {