| Package | Description |
|---|---|
| org.jboss.forge.addon.parser.java.facets | |
| org.jboss.forge.addon.parser.java.resources |
| Modifier and Type | Method and Description |
|---|---|
JavaResource |
JavaSourceFacet.getJavaResource(org.jboss.forge.parser.java.JavaSource<?> javaClass)
Attempt to locate and re-parse the given
JavaClass from its location on disk, relative to
JavaSourceFacet.getSourceFolder(). |
JavaResource |
JavaSourceFacet.getJavaResource(String relativePath)
Return the
JavaClass at the given path relative to JavaSourceFacet.getSourceFolder(). |
JavaResource |
JavaSourceFacet.getTestJavaResource(org.jboss.forge.parser.java.JavaSource<?> javaClass)
Attempt to locate and re-parse the given
JavaClass from its location on disk, relative to
JavaSourceFacet.getTestSourceFolder(). |
JavaResource |
JavaSourceFacet.getTestJavaResource(String relativePath)
Return the
JavaClass at the given path relative to JavaSourceFacet.getTestSourceFolder(). |
JavaResource |
JavaSourceFacet.saveJavaSource(org.jboss.forge.parser.java.JavaSource<?> source)
Create or update a Java file in the primary source directory:
JavaSourceFacet.getSourceFolder() - use information in the
given JavaSource to determine the appropriate package; packages will be created if necessary. |
JavaResource |
JavaSourceFacet.saveTestJavaSource(org.jboss.forge.parser.java.JavaSource<?> source)
Create or update a Java file in the primary test source directory:
JavaSourceFacet.getTestSourceFolder() - use
information in the given JavaSource to determine the appropriate package; packages will be created if
necessary. |
| Modifier and Type | Method and Description |
|---|---|
String |
JavaSourceFacet.calculateName(JavaResource resource)
Return the class name for the given
JavaResource whether it exists or not. |
String |
JavaSourceFacet.calculatePackage(JavaResource resource)
Return the package for the given
JavaResource whether it exists or not. |
| Modifier and Type | Method and Description |
|---|---|
JavaResource |
JavaResource.setContents(org.jboss.forge.parser.java.JavaSource<?> source)
Set the content of this
Resource to the value of the given JavaSource. |
| Modifier and Type | Method and Description |
|---|---|
void |
JavaResourceVisitor.visit(JavaResource javaResource)
Called when a Java File is found.
|
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.