You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

InterSuperReference.java 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /* *******************************************************************
  2. * Copyright (c) 2002 Palo Alto Research Center, Incorporated (PARC).
  3. * All rights reserved.
  4. * This program and the accompanying materials are made available
  5. * under the terms of the Eclipse Public License v1.0
  6. * which accompanies this distribution and is available at
  7. * http://www.eclipse.org/legal/epl-v10.html
  8. *
  9. * Contributors:
  10. * PARC initial implementation
  11. * ******************************************************************/
  12. package org.aspectj.ajdt.internal.compiler.ast;
  13. import org.aspectj.org.eclipse.jdt.internal.compiler.ast.SuperReference;
  14. import org.aspectj.org.eclipse.jdt.internal.compiler.impl.Constant;
  15. import org.aspectj.org.eclipse.jdt.internal.compiler.lookup.BlockScope;
  16. import org.aspectj.org.eclipse.jdt.internal.compiler.lookup.TypeBinding;
  17. /**
  18. * Used to represent super references inside of inter-type declarations. Special mechanism
  19. * needed for handling in an interface context.
  20. *
  21. * @author Jim Hugunin
  22. */
  23. public class InterSuperReference extends SuperReference {
  24. public InterSuperReference(SuperReference template, TypeBinding myType) {
  25. super(template.sourceStart, template.sourceEnd);
  26. this.resolvedType = myType;
  27. this.constant=Constant.NotAConstant;
  28. }
  29. public TypeBinding resolveType(BlockScope scope) {
  30. return resolvedType;
  31. }
  32. }