I want to add a type - Typedef and set its bse type.
I was able to add type and set its kind to Typedef
IRPType type = class.addType("typeVariable");
but to set the base type of this typedef
IRPClassifier typedefBaseType = ? (I could not find a way to create this object )
a IRPClassifier object is required to pass as an argument. Can some one help me out in creating the right Classifier to be sent as an argument to setTypedefBaseType() API.
ZvikaV. 270003VBW218 Posts
Re: Adding Base type of Typedef.2012-01-29T09:49:04ZThis is the accepted answer. This is the accepted answer.Hi Rajath,
It depends if you want to put there a Class or a Type.
Class can be added to a package using the addClass method and Type can be added to a package using the addType method.
Both are derived from IRPClassifier.