Last change
on this file since 13 was
13,
checked in by jbochenski, 15 years ago
|
|
-
Property svn:mime-type set to
text/plain
|
File size:
906 bytes
|
Line | |
---|
1 | /* Generated By:JJTree: Do not edit this line. ASTIncludeStmt.java */
|
---|
2 |
|
---|
3 | package com.framsticks.framclipse.internal.parser;
|
---|
4 |
|
---|
5 | import org.eclipse.jface.text.IDocument;
|
---|
6 |
|
---|
7 |
|
---|
8 | public class ASTIncludeStmt extends ElementWithOffset {
|
---|
9 |
|
---|
10 | private String fileName = "N/A";
|
---|
11 |
|
---|
12 | public String getFileName() {
|
---|
13 | return fileName;
|
---|
14 | }
|
---|
15 |
|
---|
16 | public void setFileName(String fileName) {
|
---|
17 | this.fileName = fileName.replaceAll("\"", "");
|
---|
18 | }
|
---|
19 |
|
---|
20 | public ASTIncludeStmt(int id) {
|
---|
21 | super(id);
|
---|
22 | }
|
---|
23 |
|
---|
24 | public ASTIncludeStmt(FramclipseNonScriptParser p, int id) {
|
---|
25 | super(p, id);
|
---|
26 | }
|
---|
27 |
|
---|
28 | @Override
|
---|
29 | public String toString() {
|
---|
30 | return fileName + ": Included file";
|
---|
31 | }
|
---|
32 |
|
---|
33 | @Override
|
---|
34 | public boolean isEquivalent(ElementWithOffset element, IDocument document) {
|
---|
35 |
|
---|
36 | if(!(element instanceof ASTIncludeStmt))
|
---|
37 | return false;
|
---|
38 | return this.fileName.equals(((ASTIncludeStmt)element).fileName);
|
---|
39 | }
|
---|
40 |
|
---|
41 |
|
---|
42 |
|
---|
43 | }
|
---|
Note: See
TracBrowser
for help on using the repository browser.