Reformating to fix checkstyle.

This commit is contained in:
Jindra Petřík
2024-08-07 18:33:17 +02:00
parent a5d3ce4f9b
commit f3da12e032
2432 changed files with 39110 additions and 44808 deletions

View File

@@ -1,16 +1,16 @@
/*
* Copyright (C) 2010-2024 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.
*/
@@ -22,12 +22,14 @@ import java.util.List;
/**
* Item of Graph source. Usually an instruction.
*
* @author JPEXS
*/
public interface GraphSourceItem extends Serializable, Cloneable {
/**
* Translate the item to target items.
*
* @param localData Local data
* @param stack Stack
* @param output Output list
@@ -39,6 +41,7 @@ public interface GraphSourceItem extends Serializable, Cloneable {
/**
* Gets the number of stack items that are popped by this item.
*
* @param localData Local data
* @param stack Stack
* @return Number of stack items that are popped by this item
@@ -47,6 +50,7 @@ public interface GraphSourceItem extends Serializable, Cloneable {
/**
* Gets the number of stack items that are pushed by this item.
*
* @param localData Local data
* @param stack Stack
* @return Number of stack items that are pushed by this item
@@ -55,49 +59,56 @@ public interface GraphSourceItem extends Serializable, Cloneable {
/**
* Gets file offset.
*
* @return File offset
*/
public long getFileOffset();
/**
* Checks whether this item is a jump.
*
* @return True if this item is a jump, false otherwise
*/
public boolean isJump();
/**
* Checks whether this item is a branch.
*
* @return True if this item is a branch, false otherwise
*/
public boolean isBranch();
/**
* Checks whether this item is an exit (throw, return, etc.).
*
* @return True if this item is an exit, false otherwise
*/
public boolean isExit();
/**
* Gets the address.
*
* @return Address
*/
public long getAddress();
/**
* Gets the line offset.
*
* @return Line offset
*/
public long getLineOffset();
/**
* Checks whether the loops are ignored.
* FIXME: What is this, how to use it?
* Checks whether the loops are ignored. FIXME: What is this, how to use it?
*
* @return True if the loops are ignored, false otherwise
*/
public boolean ignoredLoops();
/**
* Gets branches
*
* @param code Code
* @return List of IPs to branch to
*/
@@ -105,38 +116,45 @@ public interface GraphSourceItem extends Serializable, Cloneable {
/**
* Checks whether this item is ignored.
*
* @return True if this item is ignored, false otherwise
*/
public boolean isIgnored();
/**
* Sets whether this item is ignored.
*
* @param ignored True if this item is ignored, false otherwise
* @param pos Sub position
*/
public void setIgnored(boolean ignored, int pos);
/**
* Checks whether this item is a DeobfuscatePop instruction.
* It is a special instruction for deobfuscation.
* @return True if this item is a DeobfuscatePop instruction, false otherwise
* Checks whether this item is a DeobfuscatePop instruction. It is a special
* instruction for deobfuscation.
*
* @return True if this item is a DeobfuscatePop instruction, false
* otherwise
*/
public boolean isDeobfuscatePop();
/**
* Gets the line in the high level source code.
*
* @return Line
*/
public int getLine();
/**
* Gets the high level source code file name.
*
* @return File name
*/
public String getFile();
/**
* Gets length of the item in bytes.
*
* @return Length of the item in bytes
*/
public abstract int getBytesLength();