| Modifier and Type | Method and Description |
|---|---|
Resource<?> |
ProjectBuilder.build()
Execute the build.
|
| Modifier and Type | Method and Description |
|---|---|
Resource<?> |
PackagingFacet.executeBuild(String... args)
Trigger the underlying build system to perform a build with the given arguments or flags.
|
Resource<?> |
PackagingFacet.getFinalArtifact()
Return the resource representing the fully built output artifact of this project.
|
| Modifier and Type | Method and Description |
|---|---|
<E,T extends Resource<E>> |
ResourceFactory.createFromType(Class<T> type,
E underlyingResource) |
| Modifier and Type | Method and Description |
|---|---|
Resource<File> |
ResourceFactory.getResourceFrom(File file) |
| Modifier and Type | Method and Description |
|---|---|
void |
ResourceFactory.scan(javax.enterprise.inject.spi.ProcessBean<Resource<?>> event,
javax.enterprise.inject.spi.BeanManager manager) |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractResource<T> |
class |
DependencyResource |
class |
DirectoryResource
A standard, build-in, resource for representing directories on the file-system.
|
class |
EntryResource<K,V>
Represents a Key-value entry
|
class |
FileResource<T extends FileResource<?>>
A standard, built-in resource for representing files on the filesystem.
|
class |
PropertiesFileResource
A property based resource
|
class |
UnknownFileResource
Represents any regular file which Forge does not hav any special handler for.
|
class |
URLResource
Represents an URL
|
class |
VirtualResource<T> |
| Modifier and Type | Field and Description |
|---|---|
protected Resource<?> |
AbstractResource.parent |
| Modifier and Type | Method and Description |
|---|---|
<E,T extends Resource<E>> |
DirectoryResource.getChildOfType(Class<T> type,
String name)
Using the given type, obtain a reference to the child resource of the given type.
|
<R extends Resource<?>> |
Resource.reify(Class<R> type)
Ask this
Resource if it is actually a resource of the given type; if it is, return a new reference to the
resource as the given type, otherwise return null. |
<R extends Resource<?>> |
FileResource.reify(Class<R> type) |
<R extends Resource<?>> |
AbstractResource.reify(Class<R> type) |
| Modifier and Type | Method and Description |
|---|---|
abstract Resource<File> |
FileResource.createFrom(File file)
Create a new
Resource instance for the target file. |
Resource<File> |
PropertiesFileResource.createFrom(File file) |
Resource<File> |
DependencyResource.createFrom(File file) |
Resource<T> |
Resource.createFrom(T file)
Create a new resource instance for the target resource reference of the type that this current resource is.
|
Resource<T> |
VirtualResource.createFrom(T resource) |
Resource<URL> |
URLResource.createFrom(URL url) |
Resource<?> |
Resource.getChild(String name)
Get a child of this resource.
|
Resource<?> |
URLResource.getChild(String name) |
Resource<?> |
FileResource.getChild(String name) |
Resource<?> |
DirectoryResource.getChild(String name)
Obtain a reference to the child resource.
|
Resource<?> |
VirtualResource.getChild(String name) |
Resource<?> |
Resource.getParent()
Get the parent of the current resource.
|
Resource<?> |
FileResource.getParent()
Get the parent of the current resource.
|
Resource<?> |
DirectoryResource.getParent() |
Resource<?> |
AbstractResource.getParent() |
| Modifier and Type | Method and Description |
|---|---|
protected List<Resource<?>> |
EntryResource.doListResources() |
protected List<Resource<?>> |
UnknownFileResource.doListResources() |
protected List<Resource<?>> |
URLResource.doListResources() |
protected List<Resource<?>> |
PropertiesFileResource.doListResources() |
protected List<Resource<?>> |
DirectoryResource.doListResources() |
protected abstract List<Resource<?>> |
AbstractResource.doListResources()
Strategy method for returning child resources.
|
protected List<Resource<?>> |
DependencyResource.doListResources() |
List<Resource<?>> |
DeletionAware.getOptionalResources()
|
List<Resource<?>> |
DeletionAware.getResources()
|
List<Resource<?>> |
Resource.listResources()
Return a list of child resources of the current resource.
|
List<Resource<?>> |
AbstractResource.listResources() |
List<Resource<?>> |
Resource.listResources(ResourceFilter filter)
Return a list of child resources of the current resource matching the given
ResourceFilter. |
List<Resource<?>> |
AbstractResource.listResources(ResourceFilter filter) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
ResourceFilter.accept(Resource<?> resource) |
| Constructor and Description |
|---|
AbstractResource(ResourceFactory factory,
Resource<?> parent) |
EntryResource(Resource<?> parent,
K key,
V value) |
VirtualResource(Resource<?> parent) |
VirtualResource(ResourceFactory factory,
Resource<?> parent) |
| Modifier and Type | Class and Description |
|---|---|
class |
EnumConstantResource |
| Modifier and Type | Method and Description |
|---|---|
Resource<org.jboss.forge.parser.java.EnumConstant<org.jboss.forge.parser.java.JavaEnum>> |
EnumConstantResource.createFrom(org.jboss.forge.parser.java.EnumConstant<org.jboss.forge.parser.java.JavaEnum> file) |
| Modifier and Type | Method and Description |
|---|---|
protected List<Resource<?>> |
EnumConstantResource.doListResources() |
| Constructor and Description |
|---|
EnumConstantResource(Resource<?> parent,
org.jboss.forge.parser.java.EnumConstant<org.jboss.forge.parser.java.JavaEnum> enumConstant) |
| Modifier and Type | Method and Description |
|---|---|
Resource<?> |
ResourceEvent.getResource() |
| Constructor and Description |
|---|
ResourceCreated(Resource<?> resource) |
ResourceDeleted(Resource<?> resource) |
ResourceEvent(Resource<?> resource) |
ResourceModified(Resource<?> resource) |
ResourceRenamed(Resource<?> resource,
String originalLocation,
String newLocation) |
TempResourceCreated(Resource<?> resource) |
| Modifier and Type | Class and Description |
|---|---|
class |
JavaFieldResource |
class |
JavaMemberResource<T extends org.jboss.forge.parser.java.Member> |
class |
JavaMethodResource |
class |
JavaResource |
| Modifier and Type | Method and Description |
|---|---|
Resource<org.jboss.forge.parser.java.Field<? extends org.jboss.forge.parser.java.JavaSource<?>>> |
JavaFieldResource.createFrom(org.jboss.forge.parser.java.Field<? extends org.jboss.forge.parser.java.JavaSource<?>> file) |
Resource<org.jboss.forge.parser.java.Method> |
JavaMethodResource.createFrom(org.jboss.forge.parser.java.Method file) |
Resource<T> |
JavaMemberResource.createFrom(T file) |
Resource<?> |
JavaResource.getChild(String name) |
| Modifier and Type | Method and Description |
|---|---|
protected List<Resource<?>> |
JavaMemberResource.doListResources() |
protected List<Resource<?>> |
JavaFieldResource.doListResources() |
protected List<Resource<?>> |
JavaResource.doListResources() |
protected List<Resource<?>> |
JavaMethodResource.doListResources() |
List<Resource<?>> |
JavaFieldResource.getOptionalResources() |
List<Resource<?>> |
JavaFieldResource.getResources() |
| Constructor and Description |
|---|
JavaMemberResource(Resource<?> parent,
T member) |
JavaMethodResource(Resource<?> parent,
org.jboss.forge.parser.java.Method<? extends org.jboss.forge.parser.java.JavaSource<?>> method) |
| Modifier and Type | Method and Description |
|---|---|
Resource<?> |
Shell.getCurrentResource()
Return the current working
Resource of the shell. |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends Resource<?>> |
Shell.getCurrentResourceScope()
Return the type of the
Resource on which the Shell is currently operating. |
| Modifier and Type | Method and Description |
|---|---|
void |
Shell.setCurrentResource(Resource<?> resource)
Set the
Resource on which the shell should operate. |
| Modifier and Type | Method and Description |
|---|---|
Set<Class<? extends Resource>> |
CommandMetadata.getResourceScopes()
Return the set of
Resource types for which this command is in scope, or available. |
Set<Class<? extends Resource<?>>> |
PluginMetadata.getResourceScopes()
Get the
Resource scopes for which this plugin is available. |
| Modifier and Type | Method and Description |
|---|---|
CommandMetadata |
PluginMetadata.getCommand(String name,
Class<? extends Resource<?>> scope)
Get the command with the given name and
Resource scope, if it exists in this plugin. |
boolean |
PluginMetadata.hasCommand(String name,
Class<? extends Resource<?>> scope)
Return true if this plugin defines a command with the given name and
Resource scope. |
boolean |
CommandMetadata.usableWithResource(Class<? extends Resource> class1)
Return true if this command is usable with the given resource scope.
|
boolean |
PluginMetadata.usableWithScope(Class<? extends Resource> scope)
Return true if this plugin is usable in the given
Resource scope |
| Modifier and Type | Method and Description |
|---|---|
Resource<?> |
ResourceChanged.getNewResource() |
Resource<?> |
ResourceChanged.getOldResource() |
Resource<?> |
PickupResource.getResource() |
| Constructor and Description |
|---|
PickupResource(Resource<?> resource) |
ResourceChanged(Resource<?> oldResource,
Resource<?> newResource) |
ResourceChanged(Resource<?> oldResource,
Resource<?> newResource) |
| Modifier and Type | Method and Description |
|---|---|
static <E extends Resource<?>,R extends Collection<E>> |
ResourceUtil.filter(ResourceFilter filter,
Collection<E> list) |
static <E extends Resource<?>,R extends Collection<E>,I extends Collection<Resource<?>>> |
ResourceUtil.filterByType(Class<E> type,
I list) |
static <E extends Resource<?>,R extends Collection<E>,I extends Collection<Resource<?>>> |
ResourceUtil.filterByType(Class<E> type,
I list) |
| Modifier and Type | Method and Description |
|---|---|
static List<Resource<?>> |
ResourceUtil.parsePathspec(ResourceFactory factory,
Resource<?> resource,
String pathspec) |
List<? extends Resource<?>> |
JavaPathspecParser.resolve() |
List<Resource<?>> |
PathspecParser.resolve()
Resolve the results.
|
List<Resource<?>> |
JavaPathspecParser.resolve(ResourceFilter filter)
Resolve the results.
|
List<Resource<?>> |
PathspecParser.search()
Perform a search, by doing a breadth-first traversal of the resource tree for resources that match the path
string.
|
| Modifier and Type | Method and Description |
|---|---|
static DirectoryResource |
ResourceUtil.getContextDirectory(Resource<?> r) |
static File |
ResourceUtil.getContextFile(Resource<?> r)
A simple utility method to locate the outermost contextual File reference for the specified resource.
|
static org.jboss.forge.parser.java.JavaClass |
ResourceUtil.getJavaClassFromResource(Resource<?> resource) |
static boolean |
ResourceUtil.hasAnnotation(Resource<?> resource,
Class<? extends Annotation> annotationClass) |
static boolean |
ResourceUtil.isChildOf(Resource<?> parent,
Resource<?> isChild) |
static boolean |
ResourceUtil.isChildOf(Resource<?> parent,
Resource<?> isChild) |
static List<Resource<?>> |
ResourceUtil.parsePathspec(ResourceFactory factory,
Resource<?> resource,
String pathspec) |
| Constructor and Description |
|---|
PathspecParser(ResourceFactory factory,
Resource<?> res,
String path) |
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.