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:
814 bytes
|
Rev | Line | |
---|
[193] | 1 | /* Generated By:JJTree: Do not edit this line. ASTGlobalDecl.java */ |
---|
| 2 | |
---|
| 3 | package com.framsticks.framclipse.internal.parser; |
---|
| 4 | |
---|
| 5 | import java.util.List; |
---|
| 6 | |
---|
| 7 | import org.eclipse.jface.text.IDocument; |
---|
| 8 | |
---|
| 9 | |
---|
| 10 | public class ASTGlobalDecl extends ElementWithOffset { |
---|
| 11 | public ASTGlobalDecl(int id) { |
---|
| 12 | super(id); |
---|
| 13 | } |
---|
| 14 | |
---|
| 15 | public ASTGlobalDecl(FramclipseNonScriptParser p, int id) { |
---|
| 16 | super(p, id); |
---|
| 17 | } |
---|
| 18 | |
---|
| 19 | @Override |
---|
| 20 | public String toString() { |
---|
| 21 | return "Global Variables"; |
---|
| 22 | } |
---|
| 23 | |
---|
| 24 | @Override |
---|
| 25 | public boolean isEquivalent(ElementWithOffset element, IDocument document) { |
---|
| 26 | |
---|
| 27 | if(!super.isEquivalent(element, document)) |
---|
| 28 | return false; |
---|
| 29 | List<String> vars1 = ((ASTIdentList)children[0]).getIdents(); |
---|
| 30 | List<String> vars2 = ((ASTIdentList)element.children[0]).getIdents(); |
---|
| 31 | |
---|
| 32 | if(!(vars1.equals(vars2))) |
---|
| 33 | return false; |
---|
| 34 | return true; |
---|
| 35 | } |
---|
| 36 | |
---|
| 37 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.