~ubuntu-branches/ubuntu/wily/aspectj/wily-proposed

« back to all changes in this revision

Viewing changes to org.aspectj/modules/asm/src/org/aspectj/asm/IProgramElement.java

  • Committer: Bazaar Package Importer
  • Author(s): Damien Raude-Morvan
  • Date: 2011-03-15 23:54:31 UTC
  • mfrom: (1.2.5 upstream)
  • mto: This revision was merged to the branch mainline in revision 9.
  • Revision ID: james.westby@ubuntu.com-20110315235431-iq2gxbsx08kpwuiw
* New upstream release.
* Updated Standards-Version to 3.9.1 (no changes needed).
* Fix local Javadoc links:
  - d/patches/07_javadoc_links.diff: Use locally installed
   javadoc packages and hyperlink with them.
  - d/control: Add B-D on default-java-doc and libasm3-java-doc.
* d/control: Drop B-D on itself (our new bootstrap infrastructure doesn't need
  that anymore).
* Split packages into :
  - aspectj: only contains CLI tools.
  - libaspectj-java: JAR librairies for /usr/share/java.
  - libaspectj-java-doc: 4 API's Javadoc.
  - aspectj-doc: Programming Guides and SDK Documentation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
import java.io.Serializable;
17
17
import java.util.ArrayList;
18
18
import java.util.List;
 
19
import java.util.Map;
19
20
 
20
21
import org.aspectj.bridge.IMessage;
21
22
import org.aspectj.bridge.ISourceLocation;
27
28
 */
28
29
public interface IProgramElement extends Serializable {
29
30
 
30
 
        public List/* IProgramElement */getChildren();
 
31
        public List<IProgramElement> getChildren();
31
32
 
32
 
        public void setChildren(List children);
 
33
        public void setChildren(List<IProgramElement> children);
33
34
 
34
35
        public void addChild(IProgramElement child);
35
36
 
67
68
 
68
69
        public void setParent(IProgramElement parent);
69
70
 
70
 
        public void setParentTypes(List parentTypes);
 
71
        public void setParentTypes(List<String> parentTypes);
71
72
 
72
 
        public List getParentTypes();
 
73
        public List<String> getParentTypes();
73
74
 
74
75
        public String getName();
75
76
 
83
84
 
84
85
        public void setKind(Kind kind);
85
86
 
86
 
        public List getModifiers();
 
87
        public List<IProgramElement.Modifiers> getModifiers();
87
88
 
88
89
        public void setModifiers(int i);
89
90
 
94
95
        public String getPackageName();
95
96
 
96
97
        /**
97
 
         * @param method return types or field types
 
98
         * @param method
 
99
         *            return types or field types
98
100
         */
99
101
        public void setCorrespondingType(String returnType);
100
102
 
152
154
 
153
155
        public String toLabelString(boolean getFullyQualifiedArgTypes);
154
156
 
155
 
        public List getParameterNames();
156
 
 
157
 
        public void setParameterNames(List list);
158
 
 
159
 
        public List getParameterSignatures();
160
 
 
161
 
        public List getParameterSignaturesSourceRefs();
162
 
 
163
 
        public void setParameterSignatures(List list, List paramSourceRefs);
164
 
 
165
 
        public List getParameterTypes();
 
157
        public List<String> getParameterNames();
 
158
 
 
159
        public void setParameterNames(List<String> list);
 
160
 
 
161
        public List<char[]> getParameterSignatures();
 
162
 
 
163
        public List<String> getParameterSignaturesSourceRefs();
 
164
 
 
165
        public void setParameterSignatures(List<char[]> list, List<String> paramSourceRefs);
 
166
 
 
167
        public List<char[]> getParameterTypes();
166
168
 
167
169
        /**
168
170
         * The format of the string handle is not specified, but is stable across compilation sessions.
329
331
 
330
332
                public static Kind getKindForString(String kindString) {
331
333
                        for (int i = 0; i < ALL.length; i++) {
332
 
                                if (ALL[i].toString().equals(kindString))
 
334
                                if (ALL[i].toString().equals(kindString)) {
333
335
                                        return ALL[i];
 
336
                                }
334
337
                        }
335
338
                        return ERROR;
336
339
                }
345
348
                        return name;
346
349
                }
347
350
 
348
 
                public static List getNonAJMemberKinds() {
349
 
                        List list = new ArrayList();
 
351
                public static List<Kind> getNonAJMemberKinds() {
 
352
                        List<Kind> list = new ArrayList<Kind>();
350
353
                        list.add(METHOD);
351
354
                        list.add(ENUM_VALUE);
352
355
                        list.add(FIELD);
387
390
                        return name.startsWith("declare parents");
388
391
                }
389
392
 
 
393
                public boolean isDeclareSoft() {
 
394
                        return name.startsWith("declare soft");
 
395
                }
 
396
 
 
397
                public boolean isDeclareWarning() {
 
398
                        return name.startsWith("declare warning");
 
399
                }
 
400
 
 
401
                public boolean isDeclareError() {
 
402
                        return name.startsWith("declare error");
 
403
                }
 
404
 
 
405
                public boolean isDeclarePrecedence() {
 
406
                        return name.startsWith("declare precedence");
 
407
                }
 
408
 
390
409
                // The 4 declarations below are necessary for serialization
391
410
                private static int nextOrdinal = 0;
392
411
                private final int ordinal = nextOrdinal++;
398
417
                public boolean isPackageDeclaration() {
399
418
                        return this == PACKAGE_DECLARATION;
400
419
                }
 
420
 
401
421
        }
402
422
 
403
423
        public void setAnnotationStyleDeclaration(boolean b);
405
425
        public boolean isAnnotationStyleDeclaration();
406
426
 
407
427
        /**
408
 
         * @param fullyQualifiedannotationType the annotation type, eg. p.q.r.Foo
 
428
         * @param fullyQualifiedannotationType
 
429
         *            the annotation type, eg. p.q.r.Foo
409
430
         */
410
431
        public void setAnnotationType(String fullyQualifiedannotationType);
411
432
 
413
434
         * @return the fully qualified annotation type, eg. p.q.r.Foo
414
435
         */
415
436
        public String getAnnotationType();
 
437
 
 
438
        public String[] getRemovedAnnotationTypes();
 
439
 
 
440
        public Map<String, List<String>> getDeclareParentsMap();
 
441
 
 
442
        public void setDeclareParentsMap(Map<String, List<String>> newmap);
 
443
 
 
444
        public void addFullyQualifiedName(String fqname);
 
445
 
 
446
        public String getFullyQualifiedName();
 
447
 
 
448
        public void setAnnotationRemover(boolean isRemover);
 
449
 
 
450
        public boolean isAnnotationRemover();
 
451
 
 
452
        /**
 
453
         * @return the return type of a method or type of a field in signature form (e.g. Ljava/lang/String;)
 
454
         */
 
455
        public String getCorrespondingTypeSignature();
416
456
}
 
 
b'\\ No newline at end of file'