Skip to content

Commit

Permalink
rename
Browse files Browse the repository at this point in the history
  • Loading branch information
mbenson committed Feb 17, 2014
1 parent 82d58ff commit 63a6aff
Show file tree
Hide file tree
Showing 159 changed files with 846 additions and 845 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Roaster
===========

Roaster (formerly known as java-parser) is a library that allows easy parsing of java source files, introducing a fluent interface to manipulate Java source files, like adding fields, methods, annotations and so on.
Roaster (formerly known as java-parser) is a library that allows easy parsing of java source files, introducing a fluent interface to manipulate Java source files, like adding fields, methods, annotations and so on.


JavaParser.parse(JavaClass.class, "public class HelloWorld {}");
Roaster.parse(JavaClass.class, "public class HelloWorld {}");

6 changes: 3 additions & 3 deletions api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.jboss.forge</groupId>
<artifactId>java-parser-parent</artifactId>
<artifactId>roaster-parent</artifactId>
<version>2.0.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>
<artifactId>java-parser-api</artifactId>
<name>Forge - Java Parser API</name>
<artifactId>roaster-api</artifactId>
<name>Forge - Roaster API</name>
</project>

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Licensed under the Eclipse Public License version 1.0, available at
* http://www.eclipse.org/legal/epl-v10.html
*/
package org.jboss.forge.parser;
package org.jboss.forge.roaster;

/**
* Represents an object that stores implementation-specific data. This data must be accessible to other objects sharing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Licensed under the Eclipse Public License version 1.0, available at
* http://www.eclipse.org/legal/epl-v10.html
*/
package org.jboss.forge.parser;
package org.jboss.forge.roaster;


/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Licensed under the Eclipse Public License version 1.0, available at
* http://www.eclipse.org/legal/epl-v10.html
*/
package org.jboss.forge.parser;
package org.jboss.forge.roaster;

/**
* @author <a href="mailto:lincolnbaxter@gmail.com">Lincoln Baxter, III</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* http://www.eclipse.org/legal/epl-v10.html
*/

package org.jboss.forge.parser;
package org.jboss.forge.roaster;

import java.io.File;
import java.io.FileInputStream;
Expand All @@ -17,22 +17,22 @@
import java.util.List;
import java.util.ServiceLoader;

import org.jboss.forge.parser.java.JavaType;
import org.jboss.forge.parser.java.source.JavaSource;
import org.jboss.forge.parser.spi.JavaParserProvider;
import org.jboss.forge.roaster.model.JavaType;
import org.jboss.forge.roaster.model.source.JavaSource;
import org.jboss.forge.roaster.spi.JavaParserProvider;

/**
* Responsible for parsing data into new {@link JavaType} instances.
*
* @author <a href="mailto:lincolnbaxter@gmail.com">Lincoln Baxter, III</a>
*/
public final class JavaParser
public final class Roaster
{
private static List<JavaParserProvider> parsers;

private static List<JavaParserProvider> getParsers()
{
synchronized (JavaParser.class)
synchronized (Roaster.class)
{
if (parsers == null)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* http://www.eclipse.org/legal/epl-v10.html
*/

package org.jboss.forge.parser;
package org.jboss.forge.roaster;

import java.io.ByteArrayInputStream;
import java.io.Closeable;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* http://www.eclipse.org/legal/epl-v10.html
*/

package org.jboss.forge.parser.java;
package org.jboss.forge.roaster.model;

/**
* Represents a Java element that may be declared {@code abstract}.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
* Licensed under the Eclipse Public License version 1.0, available at
* http://www.eclipse.org/legal/epl-v10.html
*/
package org.jboss.forge.parser.java;
package org.jboss.forge.roaster.model;

import java.util.List;

import org.jboss.forge.parser.Internal;
import org.jboss.forge.parser.Origin;
import org.jboss.forge.roaster.Internal;
import org.jboss.forge.roaster.Origin;

/**
* Represents an annotation on some Java element.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
* http://www.eclipse.org/legal/epl-v10.html
*/

package org.jboss.forge.parser.java;
package org.jboss.forge.roaster.model;

import org.jboss.forge.parser.Origin;
import org.jboss.forge.roaster.Origin;

/**
* Represents an element definition of a {@link JavaAnnotation}.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
* http://www.eclipse.org/legal/epl-v10.html
*/

package org.jboss.forge.parser.java;
package org.jboss.forge.roaster.model;

import java.util.List;

import org.jboss.forge.parser.Internal;
import org.jboss.forge.parser.Origin;
import org.jboss.forge.roaster.Internal;
import org.jboss.forge.roaster.Origin;

/**
* Represents a Java element that may carry annotations.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
* Licensed under the Eclipse Public License version 1.0, available at
* http://www.eclipse.org/legal/epl-v10.html
*/
package org.jboss.forge.parser.java;
package org.jboss.forge.roaster.model;

import java.util.List;

import org.jboss.forge.parser.Internal;
import org.jboss.forge.parser.Origin;
import org.jboss.forge.roaster.Internal;
import org.jboss.forge.roaster.Origin;

/**
* Represents one of the constant members of a {@link JavaEnum}.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* http://www.eclipse.org/legal/epl-v10.html
*/

package org.jboss.forge.parser.java;
package org.jboss.forge.roaster.model;

/**
* Represents a {@link JavaType} that can extend other types (Java inheritance and interfaces).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* http://www.eclipse.org/legal/epl-v10.html
*/

package org.jboss.forge.parser.java;
package org.jboss.forge.roaster.model;


/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* http://www.eclipse.org/legal/epl-v10.html
*/

package org.jboss.forge.parser.java;
package org.jboss.forge.roaster.model;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Licensed under the Eclipse Public License version 1.0, available at
* http://www.eclipse.org/legal/epl-v10.html
*/
package org.jboss.forge.parser.java;
package org.jboss.forge.roaster.model;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Licensed under the Eclipse Public License version 1.0, available at
* http://www.eclipse.org/legal/epl-v10.html
*/
package org.jboss.forge.parser.java;
package org.jboss.forge.roaster.model;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
* http://www.eclipse.org/legal/epl-v10.html
*/

package org.jboss.forge.parser.java;
package org.jboss.forge.roaster.model;

import java.util.List;

import org.jboss.forge.parser.JavaParser;
import org.jboss.forge.roaster.Roaster;

/**
* Represents a Java {@code @interface} annotation type. See {@link JavaParser} for various options in generating
* Represents a Java {@code @interface} annotation type. See {@link Roaster} for various options in generating
* {@link JavaAnnotation} instances.
*
* @author <a href="mailto:lincolnbaxter@gmail.com">Lincoln Baxter, III</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@
* http://www.eclipse.org/legal/epl-v10.html
*/

package org.jboss.forge.parser.java;
package org.jboss.forge.roaster.model;

import org.jboss.forge.parser.JavaParser;
import org.jboss.forge.roaster.Roaster;

/**
* Represents a Java {@code class} type. See {@link JavaParser} for various options in generating {@link JavaClass}
* Represents a Java {@code class} type. See {@link Roaster} for various options in generating {@link JavaClass}
* instances.
*
* @author <a href="mailto:lincolnbaxter@gmail.com">Lincoln Baxter, III</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
* http://www.eclipse.org/legal/epl-v10.html
*/

package org.jboss.forge.parser.java;
package org.jboss.forge.roaster.model;

import java.util.List;

import org.jboss.forge.parser.JavaParser;
import org.jboss.forge.roaster.Roaster;

/**
* Represents a Java {@code enum} type. See {@link JavaParser} for various options in generating {@link JavaEnum}
* Represents a Java {@code enum} type. See {@link Roaster} for various options in generating {@link JavaEnum}
* instances.
*
* @author <a href="mailto:lincolnbaxter@gmail.com">Lincoln Baxter, III</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
* Licensed under the Eclipse Public License version 1.0, available at
* http://www.eclipse.org/legal/epl-v10.html
*/
package org.jboss.forge.parser.java;
package org.jboss.forge.roaster.model;

import org.jboss.forge.parser.JavaParser;
import org.jboss.forge.roaster.Roaster;

/**
* Represents a Java {@code interface} type. See {@link JavaParser} for various options in generating
* Represents a Java {@code interface} type. See {@link Roaster} for various options in generating
* {@link JavaInterface} instances.
*
* @author <a href="mailto:lincolnbaxter@gmail.com">Lincoln Baxter, III</a>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* http://www.eclipse.org/legal/epl-v10.html
*/

package org.jboss.forge.parser.java;
package org.jboss.forge.roaster.model;

/**
* Represents a Java Package Info descriptor.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
* http://www.eclipse.org/legal/epl-v10.html
*/

package org.jboss.forge.parser.java;
package org.jboss.forge.roaster.model;

import java.util.List;

import org.jboss.forge.parser.Origin;
import org.jboss.forge.roaster.Origin;

/**
* Represents a Java type.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
* http://www.eclipse.org/legal/epl-v10.html
*/

package org.jboss.forge.parser.java;
package org.jboss.forge.roaster.model;

import org.jboss.forge.parser.Origin;
import org.jboss.forge.roaster.Origin;

/**
* Represents a {@link JavaType} member. (I.e.: a {@link Field} or {@link Method})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* http://www.eclipse.org/legal/epl-v10.html
*/

package org.jboss.forge.parser.java;
package org.jboss.forge.roaster.model;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
* http://www.eclipse.org/legal/epl-v10.html
*/

package org.jboss.forge.parser.java;
package org.jboss.forge.roaster.model;

import java.util.List;

import org.jboss.forge.parser.Origin;
import org.jboss.forge.roaster.Origin;

/**
* Represents a Java Method.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* http://www.eclipse.org/legal/epl-v10.html
*/

package org.jboss.forge.parser.java;
package org.jboss.forge.roaster.model;

import java.util.List;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* http://www.eclipse.org/legal/epl-v10.html
*/

package org.jboss.forge.parser.java;
package org.jboss.forge.roaster.model;

import java.lang.reflect.Method;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* http://www.eclipse.org/legal/epl-v10.html
*/

package org.jboss.forge.parser.java;
package org.jboss.forge.roaster.model;

/**
* Represents a {@link JavaType} that may be declared as belonging to a particular Java {@code package}.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Licensed under the Eclipse Public License version 1.0, available at
* http://www.eclipse.org/legal/epl-v10.html
*/
package org.jboss.forge.parser.java;
package org.jboss.forge.roaster.model;


/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
* http://www.eclipse.org/legal/epl-v10.html
*/

package org.jboss.forge.parser.java;
package org.jboss.forge.roaster.model;

import org.jboss.forge.parser.Internal;
import org.jboss.forge.parser.Origin;
import org.jboss.forge.roaster.Internal;
import org.jboss.forge.roaster.Origin;

/**
* A {@link Property} is a convenience construct depicting a simple Java bean property.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* http://www.eclipse.org/legal/epl-v10.html
*/

package org.jboss.forge.parser.java;
package org.jboss.forge.roaster.model;

import java.util.List;

Expand Down
Loading

0 comments on commit 63a6aff

Please sign in to comment.