source: java/FramclipsePlugin/src/main/java/com/framsticks/framclipse/internal/parser/ASTGlobalInclude.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: 1.3 KB
Line 
1/* Generated By:JJTree: Do not edit this line. ASTGlobalInclude.java Version 4.1 */
2/* JavaCCOptions:MULTI=true,NODE_USES_PARSER=false,VISITOR=false,TRACK_TOKENS=false,NODE_PREFIX=AST,NODE_EXTENDS=,NODE_FACTORY=,SUPPORT_CLASS_VISIBILITY_PUBLIC=true */
3package com.framsticks.framclipse.internal.parser;
4
5import org.eclipse.jface.text.IDocument;
6
7public class ASTGlobalInclude extends ElementWithOffset {
8        protected String fileName = "N/A";
9        protected boolean valid = true;
10
11        public String getFileName() {
12                return fileName;
13        }
14
15        public void setFileName(String fileName) {
16                this.fileName = fileName.replaceAll("\"", "");
17        }
18
19        public boolean isValid() {
20                return valid;
21        }
22
23        public void setValid(boolean valid) {
24                this.valid = valid;
25        }
26
27        public ASTGlobalInclude(int id) {
28                super(id);
29        }
30
31        public ASTGlobalInclude(FramclipseNonScriptParser p, int id) {
32                super(p, id);
33        }
34        @Override
35        public String toString() {
36                String string = fileName +  ": Included file";
37                if (!valid) string += " (invalid)";
38                return string;
39        }
40
41        @Override
42        public boolean isEquivalent(ElementWithOffset element, IDocument document) {
43               
44                if(!(element instanceof ASTGlobalInclude))
45                        return false;
46                return this.fileName.equals(((ASTGlobalInclude)element).fileName);
47        }
48}
49/*
50 * JavaCC - OriginalChecksum=40d625900bf5e5355db844d7eafe0ebd (do not edit this
51 * line)
52 */
Note: See TracBrowser for help on using the repository browser.