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.

GeneratedReferenceTypeDelegate.java 5.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155
  1. /* *******************************************************************
  2. * Copyright (c) 2008 Contributors.
  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://eclipse.org/legal/epl-v10.html
  8. *
  9. * ******************************************************************/
  10. package org.aspectj.weaver;
  11. import java.util.Collection;
  12. import org.aspectj.weaver.patterns.Declare;
  13. import org.aspectj.weaver.patterns.PerClause;
  14. /**
  15. * A delegate that can sit in the ReferenceType instance created for an aspect generated from aop.xml. Only answers the minimal set
  16. * of information required as the type is processed.
  17. *
  18. * @author Andy Clement
  19. */
  20. public class GeneratedReferenceTypeDelegate extends AbstractReferenceTypeDelegate {
  21. private ResolvedType superclass;
  22. public GeneratedReferenceTypeDelegate(ReferenceType backing) {
  23. super(backing, false);
  24. }
  25. public boolean isAspect() {
  26. throw new UnsupportedOperationException("Not supported for GeneratedReferenceTypeDelegate");
  27. }
  28. public boolean isAnnotationStyleAspect() {
  29. throw new UnsupportedOperationException("Not supported for GeneratedReferenceTypeDelegate");
  30. }
  31. public boolean isInterface() {
  32. throw new UnsupportedOperationException("Not supported for GeneratedReferenceTypeDelegate");
  33. }
  34. public boolean isEnum() {
  35. throw new UnsupportedOperationException("Not supported for GeneratedReferenceTypeDelegate");
  36. }
  37. public boolean isAnnotation() {
  38. throw new UnsupportedOperationException("Not supported for GeneratedReferenceTypeDelegate");
  39. }
  40. public boolean isAnnotationWithRuntimeRetention() {
  41. throw new UnsupportedOperationException("Not supported for GeneratedReferenceTypeDelegate");
  42. }
  43. public boolean isAnonymous() {
  44. throw new UnsupportedOperationException("Not supported for GeneratedReferenceTypeDelegate");
  45. }
  46. public boolean isNested() {
  47. throw new UnsupportedOperationException("Not supported for GeneratedReferenceTypeDelegate");
  48. }
  49. public ResolvedType getOuterClass() {
  50. throw new UnsupportedOperationException("Not supported for GeneratedReferenceTypeDelegate");
  51. }
  52. public String getRetentionPolicy() {
  53. throw new UnsupportedOperationException("Not supported for GeneratedReferenceTypeDelegate");
  54. }
  55. public boolean canAnnotationTargetType() {
  56. throw new UnsupportedOperationException("Not supported for GeneratedReferenceTypeDelegate");
  57. }
  58. public AnnotationTargetKind[] getAnnotationTargetKinds() {
  59. throw new UnsupportedOperationException("Not supported for GeneratedReferenceTypeDelegate");
  60. }
  61. public boolean isGeneric() {
  62. throw new UnsupportedOperationException("Not supported for GeneratedReferenceTypeDelegate");
  63. }
  64. public String getDeclaredGenericSignature() {
  65. throw new UnsupportedOperationException("Not supported for GeneratedReferenceTypeDelegate");
  66. }
  67. public boolean hasAnnotation(UnresolvedType ofType) {
  68. throw new UnsupportedOperationException("Not supported for GeneratedReferenceTypeDelegate");
  69. }
  70. public AnnotationAJ[] getAnnotations() {
  71. throw new UnsupportedOperationException("Not supported for GeneratedReferenceTypeDelegate");
  72. }
  73. public boolean hasAnnotations() {
  74. throw new UnsupportedOperationException("Not supported for GeneratedReferenceTypeDelegate");
  75. }
  76. public ResolvedType[] getAnnotationTypes() {
  77. throw new UnsupportedOperationException("Not supported for GeneratedReferenceTypeDelegate");
  78. }
  79. public ResolvedMember[] getDeclaredFields() {
  80. throw new UnsupportedOperationException("Not supported for GeneratedReferenceTypeDelegate");
  81. }
  82. public ResolvedType[] getDeclaredInterfaces() {
  83. return ResolvedType.NONE;
  84. }
  85. public ResolvedMember[] getDeclaredMethods() {
  86. throw new UnsupportedOperationException("Not supported for GeneratedReferenceTypeDelegate");
  87. }
  88. public ResolvedMember[] getDeclaredPointcuts() {
  89. throw new UnsupportedOperationException("Not supported for GeneratedReferenceTypeDelegate");
  90. }
  91. public PerClause getPerClause() {
  92. throw new UnsupportedOperationException("Not supported for GeneratedReferenceTypeDelegate");
  93. }
  94. public Collection<Declare> getDeclares() {
  95. throw new UnsupportedOperationException("Not supported for GeneratedReferenceTypeDelegate");
  96. }
  97. public Collection<ConcreteTypeMunger> getTypeMungers() {
  98. throw new UnsupportedOperationException("Not supported for GeneratedReferenceTypeDelegate");
  99. }
  100. public Collection<ResolvedMember> getPrivilegedAccesses() {
  101. throw new UnsupportedOperationException("Not supported for GeneratedReferenceTypeDelegate");
  102. }
  103. public int getModifiers() {
  104. throw new UnsupportedOperationException("Not supported for GeneratedReferenceTypeDelegate");
  105. }
  106. public void setSuperclass(ResolvedType superclass) {
  107. this.superclass = superclass;
  108. }
  109. public ResolvedType getSuperclass() {
  110. return this.superclass;
  111. }
  112. public WeaverStateInfo getWeaverState() {
  113. throw new UnsupportedOperationException("Not supported for GeneratedReferenceTypeDelegate");
  114. }
  115. public TypeVariable[] getTypeVariables() {
  116. throw new UnsupportedOperationException("Not supported for GeneratedReferenceTypeDelegate");
  117. }
  118. }