Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add analysis for complex mutable reductions #185

Closed
wants to merge 14 commits into from
Closed
11 changes: 1 addition & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ This prototype refactoring plug-in for [Eclipse](http://eclipse.org) represents

Explicit entry points may be marked using the appropriate annotation found in the corresponding [annotation library][annotations].

Explicit entry points can also be marked using importing entry points from a txt file. Each time we run the tool, a txt file named "entry_points.txt" is generated and contained in the current directory of workspace. Then, before next time we run tool to evaluate the same project, move or copy "entry_points.txt" into project directory or workspace directory of the project. While evaluating the project, the tool will ignore the explicit entry points which are added manually and recognize the explicit entry points through the file automatically.

### Limitations

There are currently some limitations with embedded streams (i.e., streams declared as part of lambda expressions sent as arguments to intermediate stream operations). This is due to model differences between the Eclipse JDT and WALA. See [#155](https://github.com/ponder-lab/Java-8-Stream-Refactoring/issues/155) for details.
Expand All @@ -41,17 +39,10 @@ You should have the following projects in your workspace:

### Running the Evaluator

#### Configuring the Evaluation

A file named `eval.properties` can be placed at the project root. The following keys are available:

Key | Value Type | Description
---------------- | ---------- | ----------
nToUseForStreams | Integer | The value of N to use while building the nCFA for stream types.
[annotations]: https://github.com/ponder-lab/edu.cuny.hunter.streamrefactoring.annotations

### Further Information

See the [wiki][wiki] for further information.

[wiki]: https://github.com/ponder-lab/Java-8-Stream-Refactoring/wiki
[annotations]: https://github.com/ponder-lab/edu.cuny.hunter.streamrefactoring.annotations
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,17 @@ public CannotDetermineStreamOrderingException(String message, Class<?> sourceTyp
super(message);
}

public CannotDetermineStreamOrderingException(String message, Throwable cause, boolean enableSuppression,
boolean writableStackTrace, Class<?> sourceType) {
super(message, cause, enableSuppression, writableStackTrace);
public CannotDetermineStreamOrderingException(Throwable cause, Class<?> sourceType) {
super(cause);
}

public CannotDetermineStreamOrderingException(String message, Throwable cause, Class<?> sourceType) {
super(message, cause);
}

public CannotDetermineStreamOrderingException(Throwable cause, Class<?> sourceType) {
super(cause);
public CannotDetermineStreamOrderingException(String message, Throwable cause, boolean enableSuppression,
boolean writableStackTrace, Class<?> sourceType) {
super(message, cause, enableSuppression, writableStackTrace);
}

public Class<?> getSourceType() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,18 @@ public CannotExtractSpliteratorException(String message, Class<? extends Object>
this.fromType = fromType;
}

public CannotExtractSpliteratorException(String message, Throwable cause, boolean enableSuppression,
boolean writableStackTrace) {
super(message, cause, enableSuppression, writableStackTrace);
public CannotExtractSpliteratorException(Throwable cause) {
super(cause);
}

public CannotExtractSpliteratorException(String message, Throwable cause, Class<? extends Object> fromType) {
super(message, cause);
this.fromType = fromType;
}

public CannotExtractSpliteratorException(Throwable cause) {
super(cause);
public CannotExtractSpliteratorException(String message, Throwable cause, boolean enableSuppression,
boolean writableStackTrace) {
super(message, cause, enableSuppression, writableStackTrace);
}

public Class<? extends Object> getFromType() {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package edu.cuny.hunter.streamrefactoring.core.analysis;

public enum CollectorKind {
CONCURRENT,
NONCONCURRENT
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ public InstanceKeyNotFoundException(String message) {
super(message);
}

public InstanceKeyNotFoundException(Throwable cause) {
super(cause);
}

public InstanceKeyNotFoundException(String message, Throwable cause) {
super(message, cause);
}
Expand All @@ -20,8 +24,4 @@ public InstanceKeyNotFoundException(String message, Throwable cause, boolean ena
super(message, cause, enableSuppression, writableStackTrace);
}

public InstanceKeyNotFoundException(Throwable cause) {
super(cause);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,10 @@ public NoEnclosingMethodNodeFoundException(String message) {
super(message);
}

public NoEnclosingMethodNodeFoundException(Throwable cause) {
super(cause);
}

public NoEnclosingMethodNodeFoundException(String message, Throwable cause) {
super(message, cause);
}
Expand All @@ -25,10 +29,6 @@ public NoEnclosingMethodNodeFoundException(String message, Throwable cause, bool
super(message, cause, enableSuppression, writableStackTrace);
}

public NoEnclosingMethodNodeFoundException(Throwable cause) {
super(cause);
}

public MethodReference getMethodReference() {
return this.methodReference;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
package edu.cuny.hunter.streamrefactoring.core.analysis;

public class NoEntryPointException extends Exception {

/**
*
*/
private static final long serialVersionUID = 3216982694001353012L;

public NoEntryPointException(String string) {
super(string);
}

public NoEntryPointException(String string) {
super(string);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@

public class NoniterableException extends Exception {

/**
*
*/
private static final long serialVersionUID = 6340319816698688446L;

public NoniterableException() {
super();
}
Expand All @@ -15,6 +10,10 @@ public NoniterableException(String message) {
super(message);
}

public NoniterableException(Throwable cause) {
super(cause);
}

public NoniterableException(String message, Throwable cause) {
super(message, cause);
}
Expand All @@ -23,8 +22,4 @@ public NoniterableException(String message, Throwable cause, boolean enableSuppr
boolean writableStackTrace) {
super(message, cause, enableSuppression, writableStackTrace);
}

public NoniterableException(Throwable cause) {
super(cause);
}
}
Loading