public class JavaMethodResource extends JavaMemberResource<org.jboss.forge.parser.java.Method>
flags, parent, resourceFactory| Constructor and Description |
|---|
JavaMethodResource(Resource<?> parent,
org.jboss.forge.parser.java.Method<? extends org.jboss.forge.parser.java.JavaSource<?>> method) |
| Modifier and Type | Method and Description |
|---|---|
Resource<org.jboss.forge.parser.java.Method> |
createFrom(org.jboss.forge.parser.java.Method file)
Create a new resource instance for the target resource reference of the type that this current resource is.
|
boolean |
delete()
Delete this resource, return true if successful, false if not.
|
boolean |
delete(boolean recursive)
Delete this resource, return true if successful, false if not.
|
protected List<Resource<?>> |
doListResources()
Strategy method for returning child resources.
|
String |
getName()
Return the common name of the resource.
|
org.jboss.forge.parser.java.Method<? extends org.jboss.forge.parser.java.JavaSource<?>> |
getUnderlyingResourceObject()
Get the underlying object represented by this
Resource |
String |
toString() |
exists, getChild, getResourceInputStreamequals, getFlags, getFullyQualifiedName, getParent, getResourceFactory, hashCode, isFlagSet, listResources, listResources, reify, setFlag, unsetFlagpublic JavaMethodResource(Resource<?> parent, org.jboss.forge.parser.java.Method<? extends org.jboss.forge.parser.java.JavaSource<?>> method)
public Resource<org.jboss.forge.parser.java.Method> createFrom(org.jboss.forge.parser.java.Method file)
ResourcecreateFrom in interface Resource<org.jboss.forge.parser.java.Method>createFrom in class JavaMemberResource<org.jboss.forge.parser.java.Method>file - The target reference to create the resource instance from.protected List<Resource<?>> doListResources()
AbstractResourcedoListResources in class JavaMemberResource<org.jboss.forge.parser.java.Method>public org.jboss.forge.parser.java.Method<? extends org.jboss.forge.parser.java.JavaSource<?>> getUnderlyingResourceObject()
ResourceResourcegetUnderlyingResourceObject in interface Resource<org.jboss.forge.parser.java.Method>getUnderlyingResourceObject in class JavaMemberResource<org.jboss.forge.parser.java.Method>public String getName()
ResourcegetName in interface Resource<org.jboss.forge.parser.java.Method>getName in class JavaMemberResource<org.jboss.forge.parser.java.Method>public String toString()
toString in class JavaMemberResource<org.jboss.forge.parser.java.Method>public boolean delete()
throws UnsupportedOperationException
ResourceUnsupportedOperationException - if deleting is not supported by the underlying implementation.public boolean delete(boolean recursive)
throws UnsupportedOperationException
Resourcerecursive - if false and this resource both supports recursive deletion and contains children, deletion will
not occur; otherwise, if true, deletion will propagate to all child resources. Implementations may
choose simply to delegate to Resource.delete()UnsupportedOperationException - if deleting is not supported by the underlying implementation.Copyright © 2013 JBoss by Red Hat. All Rights Reserved.