01: /*******************************************************************************
02: * Copyright (c) 2000, 2006 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.jdt.internal.compiler.env;
11:
12: public interface ISourceField extends IGenericField {
13: /**
14: * Answer the source end position of the field's declaration.
15: */
16: int getDeclarationSourceEnd();
17:
18: /**
19: * Answer the source start position of the field's declaration.
20: */
21: int getDeclarationSourceStart();
22:
23: /**
24: * Answer the initialization source for this constant field.
25: * Answer null if the field is not a constant or if it has no initialization.
26: */
27: char[] getInitializationSource();
28:
29: /**
30: * Answer the source end position of the field's name.
31: */
32: int getNameSourceEnd();
33:
34: /**
35: * Answer the source start position of the field's name.
36: */
37: int getNameSourceStart();
38:
39: /**
40: * Answer the type name of the field.
41: *
42: * The name is a simple name or a qualified, dot separated name.
43: * For example, Hashtable or java.util.Hashtable.
44: */
45: char[] getTypeName();
46: }
|