Skip to main content
aboutsummaryrefslogtreecommitdiffstats
blob: 96396b12ac9789876ab466c7a053ebc53162c31e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/*******************************************************************************
 * Copyright (c) 2000, 2006 QNX Software Systems and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     QNX Software Systems - Initial API and implementation
 *******************************************************************************/
package org.eclipse.cdt.make.core.makefile;

/**
 * A Makefile can contain rules, macro definitons and comments.
 * They are call directives.
 */
public interface IDirective {

	/**
	 * Returns the parent of this directive, null if none.
	 * @return
	 */
	IDirective getParent();

	/**
	 * The starting line number of this directive.
	 * The numbering starts at 1 .i.e the first line is not 0
	 * @return
	 */
	int getStartLine();

	/**
	 * The ending line number of this directive.
	 * The numbering starts at 1 .i.e the first line is not 0
	 * @return
	 */
	int getEndLine();

	/**
	 * Returns the filename where the directive was found.
	 * 
	 * @return String - filename
	 */
	String getFileName();

	String toString();
}

Back to the top