source: java/FramclipsePlugin/src/main/java/com/framsticks/framclipse/internal/parser/ASTIncludeStmt.java @ 193

Last change on this file since 193 was 193, checked in by Maciej Komosinski, 10 years ago

Set svn:eol-style native for all textual files

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/plain
File size: 863 bytes
Line 
1/* Generated By:JJTree: Do not edit this line. ASTIncludeStmt.java */
2
3package com.framsticks.framclipse.internal.parser;
4
5import org.eclipse.jface.text.IDocument;
6
7
8public 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
20public 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.