* @author Jim Hugunin
*/
public abstract class InterTypeDeclaration extends AjMethodDeclaration {
- public TypeReference onType;
+ protected TypeReference onType;
protected ReferenceBinding onTypeBinding;
protected List phantomTypeVariableToRealIndex;
public char[] getDeclaredSelector() {
return declaredSelector;
}
+
+ public void setOnType(TypeReference onType) {
+ this.onType = onType;
+ }
+
+ public TypeReference getOnType() {
+ return onType;
+ }
}
* @see org.eclipse.jdt.internal.compiler.parser.Parser.IDeclarationFactory#setOnType(org.eclipse.jdt.internal.compiler.ast.MethodDeclaration, org.eclipse.jdt.internal.compiler.ast.TypeReference)
*/
public void setOnType(MethodDeclaration interTypeDecl, TypeReference onType) {
- ((InterTypeDeclaration)interTypeDecl).onType = onType;
+ ((InterTypeDeclaration)interTypeDecl).setOnType(onType);
}
/* (non-Javadoc)
} else if (methodDeclaration instanceof InterTypeDeclaration) {
InterTypeDeclaration itd = (InterTypeDeclaration)methodDeclaration;
- String name = itd.onType.toString() + "." + new String(itd.getDeclaredSelector());
+ String name = itd.getOnType().toString() + "." + new String(itd.getDeclaredSelector());
if (methodDeclaration instanceof InterTypeFieldDeclaration) {
node.setKind(IProgramElement.Kind.INTER_TYPE_FIELD);
node.setName(name);
// }
// argumentsSignature.append(")");
// InterTypeConstructorDeclaration itcd = (InterTypeConstructorDeclaration)methodDeclaration;
- node.setName(itd.onType.toString() + "." + itd.onType.toString()/*+argumentsSignature.toString()*/);
+ node.setName(itd.getOnType().toString() + "." + itd.getOnType().toString()/*+argumentsSignature.toString()*/);
} else {
node.setKind(IProgramElement.Kind.ERROR);
node.setName(name);