Skip to content

Commit

Permalink
Updated to the 2.0.0 version.
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasSousa96 committed Nov 12, 2017
1 parent ce609fe commit 7cb0d52
Show file tree
Hide file tree
Showing 62 changed files with 3,930 additions and 6,483 deletions.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# 8R-Reflections

### Current version: 2.0.0

## What is it?

An utility library for facilitate the handling of Class, Field, Method and others elements of the Java Reflection API.
Expand All @@ -24,7 +26,7 @@ Add this dependency in your pom.xml file:
<dependency>
<groupId>com.infinityrefactoring</groupId>
<artifactId>8R-reflections</artifactId>
<version>1.5.0</version>
<version>2.0.0</version>
</dependency>
```
## Use example:
Expand All @@ -34,6 +36,7 @@ This example show how you access the fields and methods of the Person and Addres
```
public class Person {
public static String NAME_PREFIX = "[USER]";
private String name;
private Address[] addresses;
Expand Down Expand Up @@ -86,6 +89,15 @@ pathExpression.setExpressionValue(person, "PE");
String state = pathExpression.getExpressionValue(person);
System.out.println(state);
```
Using static path expressions:

```
PathExpression pathExpression = PathExpression.compile("class(com.exanple.Person)NAME_PREFIX");
pathExpression.setStaticExpressionValue("[PERSON]");
String state = pathExpression.getStaticExpressionValue();
System.out.println("state = " + state);
```


Using various path expressions of single time:

Expand Down
8 changes: 5 additions & 3 deletions docs/allclasses-frame.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_131) on Sun Oct 22 14:23:13 BRT 2017 -->
<!-- Generated by javadoc (1.8.0_151) on Sun Nov 12 13:36:16 BRT 2017 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>All Classes (Reflections 1.5.0 API)</title>
<meta name="date" content="2017-10-22">
<title>All Classes (Reflections 2.0.0 API)</title>
<meta name="date" content="2017-11-12">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<script type="text/javascript" src="script.js"></script>
</head>
Expand All @@ -22,6 +22,8 @@ <h1 class="bar">All&nbsp;Classes</h1>
<li><a href="com/infinityrefactoring/reflections/MethodNode.html" title="class in com.infinityrefactoring.reflections" target="classFrame">MethodNode</a></li>
<li><a href="com/infinityrefactoring/reflections/ModifierType.html" title="enum in com.infinityrefactoring.reflections" target="classFrame">ModifierType</a></li>
<li><a href="com/infinityrefactoring/reflections/PathExpression.html" title="class in com.infinityrefactoring.reflections" target="classFrame">PathExpression</a></li>
<li><a href="com/infinityrefactoring/reflections/PathExpressionPredicate.html" title="class in com.infinityrefactoring.reflections" target="classFrame">PathExpressionPredicate</a></li>
<li><a href="com/infinityrefactoring/reflections/PathExpressionPredicate.UncheckedPredicate.html" title="interface in com.infinityrefactoring.reflections" target="classFrame"><span class="interfaceName">PathExpressionPredicate.UncheckedPredicate</span></a></li>
<li><a href="com/infinityrefactoring/reflections/Predicates.html" title="class in com.infinityrefactoring.reflections" target="classFrame">Predicates</a></li>
<li><a href="com/infinityrefactoring/reflections/Reflections.html" title="class in com.infinityrefactoring.reflections" target="classFrame">Reflections</a></li>
</ul>
Expand Down
8 changes: 5 additions & 3 deletions docs/allclasses-noframe.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
<!-- NewPage -->
<html lang="en">
<head>
<!-- Generated by javadoc (1.8.0_131) on Sun Oct 22 14:23:13 BRT 2017 -->
<!-- Generated by javadoc (1.8.0_151) on Sun Nov 12 13:36:16 BRT 2017 -->
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>All Classes (Reflections 1.5.0 API)</title>
<meta name="date" content="2017-10-22">
<title>All Classes (Reflections 2.0.0 API)</title>
<meta name="date" content="2017-11-12">
<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style">
<script type="text/javascript" src="script.js"></script>
</head>
Expand All @@ -22,6 +22,8 @@ <h1 class="bar">All&nbsp;Classes</h1>
<li><a href="com/infinityrefactoring/reflections/MethodNode.html" title="class in com.infinityrefactoring.reflections">MethodNode</a></li>
<li><a href="com/infinityrefactoring/reflections/ModifierType.html" title="enum in com.infinityrefactoring.reflections">ModifierType</a></li>
<li><a href="com/infinityrefactoring/reflections/PathExpression.html" title="class in com.infinityrefactoring.reflections">PathExpression</a></li>
<li><a href="com/infinityrefactoring/reflections/PathExpressionPredicate.html" title="class in com.infinityrefactoring.reflections">PathExpressionPredicate</a></li>
<li><a href="com/infinityrefactoring/reflections/PathExpressionPredicate.UncheckedPredicate.html" title="interface in com.infinityrefactoring.reflections"><span class="interfaceName">PathExpressionPredicate.UncheckedPredicate</span></a></li>
<li><a href="com/infinityrefactoring/reflections/Predicates.html" title="class in com.infinityrefactoring.reflections">Predicates</a></li>
<li><a href="com/infinityrefactoring/reflections/Reflections.html" title="class in com.infinityrefactoring.reflections">Reflections</a></li>
</ul>
Expand Down
Loading

0 comments on commit 7cb0d52

Please sign in to comment.