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, type);
36 return new TempDescriptor(name, type, tag);
39 public static TempDescriptor tempFactory() {
40 return new TempDescriptor("temp_"+currentid);
43 public static TempDescriptor tempFactory(String name) {
44 return new TempDescriptor(name+currentid);
47 public static TempDescriptor tempFactory(String name, TypeDescriptor td) {
48 return new TempDescriptor(name+currentid,td);
51 public static TempDescriptor tempFactory(String name, TypeDescriptor type, TagDescriptor tag) {
52 return new TempDescriptor(name+currentid,type,tag);
55 public static TempDescriptor paramtempFactory(String name, TypeDescriptor td) {
56 return new TempDescriptor(name,td);
59 public static TempDescriptor paramtempFactory(String name, TypeDescriptor tagtype, TagDescriptor tag) {
60 return new TempDescriptor(name, tagtype, tag);
63 public String toString() {
67 public void setType(TypeDescriptor td) {
71 public TypeDescriptor getType() {
75 public TagDescriptor getTag() {
79 public void setTag(TagDescriptor tag) {