trunk contents moved to root

This commit is contained in:
Jindra Petřík
2014-05-10 20:50:57 +02:00
parent 1b851e66a8
commit 199a4d0c2b
2296 changed files with 0 additions and 0 deletions
@@ -0,0 +1,44 @@
/*
* Copyright (C) 2010-2014 JPEXS
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.jpexs.decompiler.flash.treeitems;
import com.jpexs.decompiler.flash.SWF;
/**
*
* @author JPEXS
*/
public class AS2PackageNodeItem implements TreeItem {
private final SWF swf;
public String packageName;
public AS2PackageNodeItem(String packageName, SWF swf) {
this.swf = swf;
this.packageName = packageName;
}
@Override
public SWF getSwf() {
return swf;
}
@Override
public String toString() {
return packageName;
}
}
@@ -0,0 +1,44 @@
/*
* Copyright (C) 2010-2014 JPEXS
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.jpexs.decompiler.flash.treeitems;
import com.jpexs.decompiler.flash.SWF;
/**
*
* @author JPEXS
*/
public class AS3PackageNodeItem implements TreeElementItem {
private final SWF swf;
public String packageName;
public AS3PackageNodeItem(String packageName, SWF swf) {
this.swf = swf;
this.packageName = packageName;
}
@Override
public SWF getSwf() {
return swf;
}
@Override
public String toString() {
return packageName;
}
}
@@ -0,0 +1,69 @@
/*
* Copyright (C) 2010-2014 JPEXS
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.jpexs.decompiler.flash.treeitems;
import com.jpexs.decompiler.flash.SWF;
import com.jpexs.decompiler.flash.tags.ShowFrameTag;
import com.jpexs.decompiler.flash.tags.Tag;
/**
*
* @author JPEXS
*/
public class FrameNodeItem implements TreeItem {
private final SWF swf;
private final int frame;
private final Tag parent;
private final ShowFrameTag showFrameTag;
private final boolean display;
public FrameNodeItem(SWF swf, int frame, Tag parent, ShowFrameTag showFrameTag, boolean display) {
this.swf = swf;
this.frame = frame;
this.parent = parent;
this.showFrameTag = showFrameTag;
this.display = display;
}
@Override
public SWF getSwf() {
return swf;
}
public boolean isDisplayed() {
return display;
}
@Override
public String toString() {
return "frame " + frame;
}
public int getFrame() {
return frame;
}
public Tag getParent() {
return parent;
}
public ShowFrameTag getShowFrameTag() {
return showFrameTag;
}
}
@@ -0,0 +1,157 @@
/*
* Copyright (C) 2010-2014 JPEXS
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.jpexs.decompiler.flash.treeitems;
import com.jpexs.decompiler.flash.SWF;
import com.jpexs.decompiler.flash.SWFSourceInfo;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;
/**
*
* @author JPEXS
*/
public class SWFList implements List<SWF>, TreeItem {
public String name;
public boolean isBundle;
public SWFSourceInfo sourceInfo;
public List<SWF> swfs = new ArrayList<>();
@Override
public SWF getSwf() {
throw new UnsupportedOperationException("Not supported.");
}
@Override
public Iterator<SWF> iterator() {
return swfs.iterator();
}
@Override
public int size() {
return swfs.size();
}
@Override
public boolean isEmpty() {
return swfs.isEmpty();
}
@Override
public boolean contains(Object o) {
return swfs.contains(o);
}
@Override
public Object[] toArray() {
return swfs.toArray();
}
@Override
public <T> T[] toArray(T[] ts) {
return swfs.toArray(ts);
}
@Override
public boolean add(SWF e) {
return swfs.add(e);
}
@Override
public boolean remove(Object o) {
return swfs.remove(o);
}
@Override
public boolean containsAll(Collection<?> clctn) {
return swfs.containsAll(clctn);
}
@Override
public boolean addAll(Collection<? extends SWF> clctn) {
return swfs.addAll(clctn);
}
@Override
public boolean removeAll(Collection<?> clctn) {
return swfs.removeAll(clctn);
}
@Override
public boolean retainAll(Collection<?> clctn) {
return swfs.retainAll(clctn);
}
@Override
public void clear() {
swfs.clear();
}
@Override
public boolean addAll(int i, Collection<? extends SWF> clctn) {
return swfs.addAll(i, clctn);
}
@Override
public SWF get(int i) {
return swfs.get(i);
}
@Override
public SWF set(int i, SWF e) {
return swfs.set(i, e);
}
@Override
public void add(int i, SWF e) {
swfs.add(i, e);
}
@Override
public SWF remove(int i) {
return swfs.remove(i);
}
@Override
public int indexOf(Object o) {
return swfs.indexOf(0);
}
@Override
public int lastIndexOf(Object o) {
return swfs.lastIndexOf(o);
}
@Override
public ListIterator<SWF> listIterator() {
return swfs.listIterator();
}
@Override
public ListIterator<SWF> listIterator(int i) {
return swfs.listIterator(i);
}
@Override
public List<SWF> subList(int i, int i1) {
return swfs.subList(i, i1);
}
}
@@ -0,0 +1,50 @@
/*
* Copyright (C) 2010-2014 JPEXS
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.jpexs.decompiler.flash.treeitems;
import com.jpexs.decompiler.flash.SWF;
/**
*
* @author JPEXS
*/
public class StringItem implements TreeItem {
public SWF swf;
private final String str;
private final String name;
public StringItem(String str, String name, SWF swf) {
this.swf = swf;
this.str = str;
this.name = name;
}
public String getName() {
return name;
}
@Override
public SWF getSwf() {
return swf;
}
@Override
public String toString() {
return str;
}
}
@@ -0,0 +1,25 @@
/*
* Copyright (C) 2010-2014 JPEXS
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.jpexs.decompiler.flash.treeitems;
/**
*
* @author JPEXS
*/
public interface TreeElementItem extends TreeItem {
}
@@ -0,0 +1,28 @@
/*
* Copyright (C) 2010-2014 JPEXS
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package com.jpexs.decompiler.flash.treeitems;
import com.jpexs.decompiler.flash.SWF;
/**
*
* @author JPEXS
*/
public interface TreeItem {
public SWF getSwf();
}