mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-05-25 12:46:30 +00:00
79 lines
2.2 KiB
Java
79 lines
2.2 KiB
Java
/*
|
|
* Copyright (C) 2010-2018 JPEXS, All rights reserved.
|
|
*
|
|
* This library is free software; you can redistribute it and/or
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
* License as published by the Free Software Foundation; either
|
|
* version 3.0 of the License, or (at your option) any later version.
|
|
*
|
|
* This library 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
|
|
* Lesser General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
* License along with this library.
|
|
*/
|
|
package com.jpexs.decompiler.graph;
|
|
|
|
import com.jpexs.decompiler.flash.BaseLocalData;
|
|
import java.io.Serializable;
|
|
import java.util.List;
|
|
|
|
/**
|
|
*
|
|
* @author JPEXS
|
|
*/
|
|
public interface GraphSourceItem extends Serializable, Cloneable {
|
|
|
|
public void translate(BaseLocalData localData, TranslateStack stack, List<GraphTargetItem> output, int staticOperation, String path) throws InterruptedException;
|
|
|
|
public int getStackPopCount(BaseLocalData localData, TranslateStack stack);
|
|
|
|
public int getStackPushCount(BaseLocalData localData, TranslateStack stack);
|
|
|
|
public long getFileOffset();
|
|
|
|
public boolean isJump();
|
|
|
|
public boolean isBranch();
|
|
|
|
public boolean isExit();
|
|
|
|
public long getAddress();
|
|
|
|
public long getLineOffset();
|
|
|
|
public boolean ignoredLoops();
|
|
|
|
public List<Integer> getBranches(GraphSource code);
|
|
|
|
public boolean isIgnored();
|
|
|
|
public void setIgnored(boolean ignored, int pos);
|
|
|
|
public boolean isDeobfuscatePop();
|
|
|
|
public int getLine();
|
|
|
|
public String getFile();
|
|
|
|
public abstract int getBytesLength();
|
|
|
|
/**
|
|
* Gets virtual address. A virtual adress can be used for storing original
|
|
* address before applying deobfuscation
|
|
*
|
|
* @return
|
|
*/
|
|
public long getVirtualAddress();
|
|
|
|
/**
|
|
* Sets virtual address. A virtual adress can be used for storing original
|
|
* address before applying deobfuscation
|
|
*
|
|
* @param virtualAddress
|
|
*/
|
|
public void setVirtualAddress(long virtualAddress);
|
|
}
|