| package org.eclipse.dltk.compiler; |
| |
| /** |
| * @since 2.0 |
| */ |
| public interface IElementRequestor { |
| public abstract static class ElementInfo { |
| public int declarationStart; |
| public int modifiers; |
| public String name; |
| public int nameSourceStart; |
| public int nameSourceEnd; |
| } |
| |
| public static class TypeInfo extends ElementInfo { |
| public String[] superclasses; |
| } |
| |
| public static class MethodInfo extends ElementInfo { |
| public String[] parameterNames; |
| public String[] parameterInitializers; |
| public String[] parameterTypes; |
| public String[] exceptionTypes; |
| public int[] parameterFlags; |
| public String returnType; |
| public boolean isConstructor; |
| } |
| |
| public static class FieldInfo extends ElementInfo { |
| public String type; |
| } |
| |
| public static class ImportInfo { |
| public String containerName; |
| public String name; |
| public String version; |
| /** |
| * @since 5.2 |
| */ |
| public String alias; |
| /** |
| * @since 5.2 |
| */ |
| public int type; |
| /** |
| * @since 5.2 |
| */ |
| public int modifiers; |
| public int sourceStart; |
| public int sourceEnd; |
| } |
| |
| void acceptFieldReference(String fieldName, int sourcePosition); |
| |
| void acceptImport(ImportInfo importInfo); |
| |
| void acceptMethodReference(String methodName, int argCount, |
| int sourcePosition, int sourceEndPosition); |
| |
| void acceptPackage(int declarationStart, int declarationEnd, String name); |
| |
| /** |
| * @param namespace |
| * @since 3.0 |
| */ |
| void enterNamespace(String[] namespace); |
| |
| /** |
| * @since 3.0 |
| */ |
| void exitNamespace(); |
| |
| void acceptTypeReference(String typeName, int sourcePosition); |
| |
| void enterField(FieldInfo info); |
| |
| void enterMethod(MethodInfo info); |
| |
| void enterModule(); |
| |
| void enterModuleRoot(); |
| |
| void enterType(TypeInfo info); |
| |
| void exitField(int declarationEnd); |
| |
| void exitMethod(int declarationEnd); |
| |
| void exitModule(int declarationEnd); |
| |
| void exitModuleRoot(); |
| |
| void exitType(int declarationEnd); |
| |
| } |