Skip to content

Commit

Permalink
add 'frontend' to frontend modules
Browse files Browse the repository at this point in the history
  • Loading branch information
stschott committed Sep 5, 2024
1 parent 1d640d9 commit f0bb94a
Show file tree
Hide file tree
Showing 636 changed files with 937 additions and 6,141 deletions.
2 changes: 1 addition & 1 deletion docs/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Please make sure to use Java8 to execute.
### Exception: Provider "jrt" not found
```shell
java.lang.ExceptionInInitializerError
at sootup.java.bytecode.inputlocation.JrtFileSystemAnalysisInputLocationTest.getClassSource(JrtFileSystemAnalysisInputLocationTest.java:28)
at inputlocation.sootup.java.bytecode.frontend.JrtFileSystemAnalysisInputLocationTest.getClassSource(JrtFileSystemAnalysisInputLocationTest.java:28)
...
Caused by: java.nio.file.ProviderNotFoundException: Provider "jrt" not found
```
Expand Down
4 changes: 2 additions & 2 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ Add the following dependencies to your ```pom.xml``` / ```build.gradle```.
</dependency>
<dependency>
<groupId>org.soot-oss</groupId>
<artifactId>sootup.jimple.parser</artifactId>
<artifactId>sootup.jimple.frontend</artifactId>
<version>{{ git_latest_release }}</version>
</dependency>
<dependency>
Expand Down Expand Up @@ -79,7 +79,7 @@ Add the following dependencies to your ```pom.xml``` / ```build.gradle```.
compile "org.soot-oss:sootup.java.core:{{ git_latest_release }}"
compile "org.soot-oss:sootup.java.sourcecode:{{ git_latest_release }}"
compile "org.soot-oss:sootup.java.bytecode:{{ git_latest_release }}"
compile "org.soot-oss:sootup.jimple.parser:{{ git_latest_release }}"
compile "org.soot-oss:sootup.jimple.frontend:{{ git_latest_release }}"
compile "org.soot-oss:sootup.callgraph:{{ git_latest_release }}"
compile "org.soot-oss:sootup.analysis:{{ git_latest_release }}"
compile "org.soot-oss:sootup.qilin:{{ git_latest_release }}"
Expand Down
20 changes: 12 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -61,19 +61,19 @@
</scm>
<modules>
<module>sootup.core</module>
<module>sootup.jimple.parser</module>
<module>sootup.jimple.frontend</module>
<module>sootup.java.core</module>
<module>sootup.interceptors</module>
<module>sootup.java.bytecode</module>
<module>sootup.java.sourcecode</module>
<module>sootup.java.bytecode.frontend</module>
<module>sootup.java.sourcecode.frontend</module>
<module>sootup.tests</module>
<module>sootup.callgraph</module>
<module>sootup.qilin</module>
<module>sootup.analysis.interprocedural</module>
<module>sootup.analysis.intraprocedural</module>
<module>sootup.examples</module>
<module>sootup.report</module>
<module>sootup.apk.parser</module>
<module>sootup.apk.frontend</module>
<module>sootup.codepropertygraph</module>
</modules>

Expand Down Expand Up @@ -438,17 +438,17 @@
</dependency>
<dependency>
<groupId>org.soot-oss</groupId>
<artifactId>sootup.java.bytecode</artifactId>
<artifactId>sootup.java.bytecode.frontend</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.soot-oss</groupId>
<artifactId>sootup.java.sourcecode</artifactId>
<artifactId>sootup.java.sourcecode.frontend</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>org.soot-oss</groupId>
<artifactId>sootup.jimple.parser</artifactId>
<artifactId>sootup.jimple.frontend</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
Expand All @@ -471,7 +471,11 @@
<artifactId>sootup.codepropertygraph</artifactId>
<version>${project.version}</version>
</dependency>

<dependency>
<groupId>org.soot-oss</groupId>
<artifactId>sootup.apk.frontend</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
</dependencyManagement>

Expand Down
4 changes: 2 additions & 2 deletions sootup.analysis.interprocedural/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
</dependency>
<dependency>
<groupId>org.soot-oss</groupId>
<artifactId>sootup.java.bytecode</artifactId>
<artifactId>sootup.java.bytecode.frontend</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.soot-oss</groupId>
<artifactId>sootup.java.sourcecode</artifactId>
<artifactId>sootup.java.sourcecode.frontend</artifactId>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
import sootup.core.model.SootClass;
import sootup.core.model.SootMethod;
import sootup.core.signatures.MethodSignature;
import sootup.java.bytecode.inputlocation.DefaultRTJarAnalysisInputLocation;
import sootup.java.bytecode.inputlocation.JavaClassPathAnalysisInputLocation;
import sootup.java.bytecode.frontend.inputlocation.DefaultRTJarAnalysisInputLocation;
import sootup.java.bytecode.frontend.inputlocation.JavaClassPathAnalysisInputLocation;
import sootup.java.core.JavaIdentifierFactory;
import sootup.java.core.types.JavaClassType;
import sootup.java.core.views.JavaView;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@
import sootup.core.types.PrimitiveType;
import sootup.core.types.Type;
import sootup.core.util.printer.StmtPrinter;
import sootup.java.bytecode.inputlocation.DefaultRTJarAnalysisInputLocation;
import sootup.java.bytecode.frontend.inputlocation.DefaultRTJarAnalysisInputLocation;
import sootup.java.core.JavaIdentifierFactory;
import sootup.java.core.types.JavaClassType;
import sootup.java.core.views.JavaView;
import sootup.java.sourcecode.inputlocation.JavaSourcePathAnalysisInputLocation;
import sootup.java.frontend.inputlocation.JavaSourcePathAnalysisInputLocation;

@Tag("Java8")
public class CGEdgeUtilTest {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
import sootup.core.model.SootMethod;
import sootup.core.model.SourceType;
import sootup.core.signatures.MethodSignature;
import sootup.java.bytecode.inputlocation.DefaultRTJarAnalysisInputLocation;
import sootup.java.bytecode.inputlocation.JavaClassPathAnalysisInputLocation;
import sootup.java.bytecode.frontend.inputlocation.DefaultRTJarAnalysisInputLocation;
import sootup.java.bytecode.frontend.inputlocation.JavaClassPathAnalysisInputLocation;
import sootup.java.core.JavaIdentifierFactory;
import sootup.java.core.types.JavaClassType;
import sootup.java.core.views.JavaView;
Expand Down
4 changes: 2 additions & 2 deletions sootup.analysis.intraprocedural/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
</dependency>
<dependency>
<groupId>org.soot-oss</groupId>
<artifactId>sootup.java.bytecode</artifactId>
<artifactId>sootup.java.bytecode.frontend</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.soot-oss</groupId>
<artifactId>sootup.java.sourcecode</artifactId>
<artifactId>sootup.java.sourcecode.frontend</artifactId>
<scope>test</scope>
</dependency>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion sootup.apk.parser/pom.xml → sootup.apk.frontend/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</parent>

<name>SootUp APK Frontend</name>
<artifactId>sootup.apk.parser</artifactId>
<artifactId>sootup.apk.frontend</artifactId>

<properties>
<maven.compiler.source>8</maven.compiler.source>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package sootup.apk.parser;
package sootup.apk.frontend;

import java.io.IOException;
import java.nio.file.Path;
Expand All @@ -7,10 +7,10 @@
import javax.annotation.Nonnull;
import javax.annotation.Nullable;
import org.jf.dexlib2.iface.DexFile;
import sootup.apk.parser.Util.*;
import sootup.apk.parser.dexpler.DexClassProvider;
import sootup.apk.parser.dexpler.DexFileProvider;
import sootup.apk.parser.main.AndroidVersionInfo;
import sootup.apk.frontend.Util.*;
import sootup.apk.frontend.dexpler.DexClassProvider;
import sootup.apk.frontend.dexpler.DexFileProvider;
import sootup.apk.frontend.main.AndroidVersionInfo;
import sootup.core.frontend.SootClassSource;
import sootup.core.inputlocation.AnalysisInputLocation;
import sootup.core.model.ClassModifier;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package sootup.apk.parser;
package sootup.apk.frontend;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import javax.annotation.Nonnull;
import sootup.apk.parser.interceptors.DexNullTransformer;
import sootup.apk.parser.interceptors.DexNumberTranformer;
import sootup.apk.frontend.interceptors.DexNullTransformer;
import sootup.apk.frontend.interceptors.DexNumberTranformer;
import sootup.core.transform.BodyInterceptor;

public enum DexBodyInterceptors {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package sootup.apk.parser.Util;
package sootup.apk.frontend.Util;

import java.util.*;
import javax.annotation.Nonnull;
import org.jf.dexlib2.iface.Annotation;
import org.jf.dexlib2.iface.AnnotationElement;
import org.jf.dexlib2.iface.value.EncodedValue;
import sootup.apk.parser.main.AndroidVersionInfo;
import sootup.apk.frontend.main.AndroidVersionInfo;
import sootup.core.signatures.PackageName;
import sootup.core.types.*;
import sootup.core.views.View;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package sootup.apk.parser.dexpler;
package sootup.apk.frontend.dexpler;

import java.nio.file.Path;
import java.util.Optional;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package sootup.apk.parser.dexpler;
package sootup.apk.frontend.dexpler;

import java.io.File;
import java.nio.file.Path;
Expand All @@ -11,7 +11,7 @@
import org.jf.dexlib2.iface.*;
import org.jf.dexlib2.iface.Field;
import org.jf.dexlib2.iface.Method;
import sootup.apk.parser.Util.DexUtil;
import sootup.apk.frontend.Util.DexUtil;
import sootup.core.IdentifierFactory;
import sootup.core.frontend.ResolveException;
import sootup.core.inputlocation.AnalysisInputLocation;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package sootup.apk.parser.dexpler;
package sootup.apk.frontend.dexpler;

import java.io.File;
import java.io.IOException;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package sootup.apk.parser.dexpler;
package sootup.apk.frontend.dexpler;

import java.io.File;
import java.io.IOException;
import java.util.*;
import org.jf.dexlib2.iface.ClassDef;
import org.jf.dexlib2.iface.DexFile;
import org.jf.dexlib2.iface.MultiDexContainer;
import sootup.apk.parser.Util.*;
import sootup.apk.frontend.Util.*;
import sootup.core.types.ClassType;

/**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package sootup.apk.parser.dexpler;
package sootup.apk.frontend.dexpler;

import java.lang.reflect.Modifier;
import java.util.Collections;
Expand All @@ -7,8 +7,8 @@
import org.jf.dexlib2.iface.DexFile;
import org.jf.dexlib2.iface.Method;
import org.jf.dexlib2.iface.MultiDexContainer;
import sootup.apk.parser.Util.DexUtil;
import sootup.apk.parser.main.DexBody;
import sootup.apk.frontend.Util.DexUtil;
import sootup.apk.frontend.main.DexBody;
import sootup.core.graph.MutableBlockStmtGraph;
import sootup.core.signatures.MethodSignature;
import sootup.core.transform.BodyInterceptor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package sootup.apk.parser.dexpler;
package sootup.apk.frontend.dexpler;

import java.io.IOException;
import java.util.Collections;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package sootup.apk.parser.dexpler;
package sootup.apk.frontend.dexpler;

import java.io.File;
import java.util.HashMap;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package sootup.apk.parser.instruction;
package sootup.apk.frontend.instruction;

import org.jf.dexlib2.iface.instruction.Instruction;
import org.jf.dexlib2.iface.instruction.formats.Instruction23x;
import sootup.apk.parser.main.DexBody;
import sootup.apk.frontend.main.DexBody;
import sootup.core.jimple.Jimple;
import sootup.core.jimple.basic.Local;
import sootup.core.jimple.basic.StmtPositionInfo;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package sootup.apk.parser.instruction;
package sootup.apk.frontend.instruction;

import org.jf.dexlib2.iface.instruction.Instruction;
import org.jf.dexlib2.iface.instruction.formats.Instruction23x;
import sootup.apk.parser.main.DexBody;
import sootup.apk.frontend.main.DexBody;
import sootup.core.jimple.basic.Local;
import sootup.core.jimple.common.ref.JArrayRef;
import sootup.core.jimple.common.stmt.JAssignStmt;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package sootup.apk.parser.instruction;
package sootup.apk.frontend.instruction;

import org.jf.dexlib2.iface.instruction.Instruction;
import org.jf.dexlib2.iface.instruction.formats.Instruction12x;
import sootup.apk.parser.main.DexBody;
import sootup.apk.frontend.main.DexBody;
import sootup.core.jimple.Jimple;
import sootup.core.jimple.basic.Local;
import sootup.core.jimple.basic.StmtPositionInfo;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package sootup.apk.parser.instruction;
package sootup.apk.frontend.instruction;

import org.jf.dexlib2.Opcode;
import org.jf.dexlib2.iface.instruction.Instruction;
import org.jf.dexlib2.iface.instruction.formats.Instruction12x;
import sootup.apk.parser.main.DexBody;
import sootup.apk.frontend.main.DexBody;
import sootup.core.jimple.Jimple;
import sootup.core.jimple.basic.Local;
import sootup.core.jimple.basic.StmtPositionInfo;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package sootup.apk.parser.instruction;
package sootup.apk.frontend.instruction;

import org.jf.dexlib2.Opcode;
import org.jf.dexlib2.iface.instruction.Instruction;
import org.jf.dexlib2.iface.instruction.formats.Instruction23x;
import sootup.apk.parser.main.DexBody;
import sootup.apk.frontend.main.DexBody;
import sootup.core.jimple.Jimple;
import sootup.core.jimple.basic.Local;
import sootup.core.jimple.basic.StmtPositionInfo;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package sootup.apk.parser.instruction;
package sootup.apk.frontend.instruction;

import org.jf.dexlib2.Opcode;
import org.jf.dexlib2.iface.instruction.Instruction;
import org.jf.dexlib2.iface.instruction.NarrowLiteralInstruction;
import org.jf.dexlib2.iface.instruction.TwoRegisterInstruction;
import org.jf.dexlib2.iface.instruction.formats.Instruction22b;
import org.jf.dexlib2.iface.instruction.formats.Instruction22s;
import sootup.apk.parser.main.DexBody;
import sootup.apk.frontend.main.DexBody;
import sootup.core.jimple.Jimple;
import sootup.core.jimple.basic.Local;
import sootup.core.jimple.basic.StmtPositionInfo;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package sootup.apk.parser.instruction;
package sootup.apk.frontend.instruction;

import org.jf.dexlib2.Opcode;
import org.jf.dexlib2.iface.instruction.Instruction;
import org.jf.dexlib2.iface.instruction.TwoRegisterInstruction;
import sootup.apk.parser.main.DexBody;
import sootup.apk.frontend.main.DexBody;
import sootup.core.jimple.Jimple;
import sootup.core.jimple.basic.StmtPositionInfo;
import sootup.core.jimple.common.expr.JCastExpr;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package sootup.apk.parser.instruction;
package sootup.apk.frontend.instruction;

import org.jf.dexlib2.iface.instruction.Instruction;
import org.jf.dexlib2.iface.instruction.formats.Instruction21c;
import org.jf.dexlib2.iface.reference.TypeReference;
import sootup.apk.parser.Util.DexUtil;
import sootup.apk.parser.main.DexBody;
import sootup.apk.frontend.Util.DexUtil;
import sootup.apk.frontend.main.DexBody;
import sootup.core.jimple.Jimple;
import sootup.core.jimple.basic.Local;
import sootup.core.jimple.basic.StmtPositionInfo;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package sootup.apk.parser.instruction;
package sootup.apk.frontend.instruction;

import org.jf.dexlib2.Opcode;
import org.jf.dexlib2.iface.instruction.Instruction;
import org.jf.dexlib2.iface.instruction.formats.Instruction23x;
import sootup.apk.parser.main.DexBody;
import sootup.apk.frontend.main.DexBody;
import sootup.core.jimple.Jimple;
import sootup.core.jimple.basic.Local;
import sootup.core.jimple.basic.StmtPositionInfo;
Expand Down
Loading

0 comments on commit f0bb94a

Please sign in to comment.