1 18 19 package org.objectweb.jac.ide; 20 21 public abstract class TypedElement extends ModelElement implements Typed { 22 23 Type type = Projects.types.resolveType("void"); 24 25 29 public Type getType() { 30 return type; 31 } 32 33 37 public void setType(Type v) { 38 this.type = v; 39 } 40 41 public String getPrototype() { 42 return type.getGenerationFullName()+(array?"[]":"")+" "+getGenerationName(); 43 } 44 45 public String getToString() { 46 return name+":"+type.getName()+(array?"[]":""); 47 } 48 49 public String getTypeName() { 50 return type.getGenerationFullName()+(array?"[]":""); 51 } 52 53 boolean array=false; 54 55 59 public boolean isArray() { 60 return array; 61 } 62 63 67 public void setArray(boolean v) { 68 this.array = v; 69 } 70 71 } 72 | Popular Tags |