Forge - Java Parser Addon API 2.0.0.Alpha3

org.jboss.forge.parser.java.resources
Interface JavaResource

All Superinterfaces:
org.jboss.forge.facets.Faceted<ResourceFacet>, FileResource<JavaResource>, Resource<File>

public interface JavaResource
extends FileResource<JavaResource>

A Resource that represents a Java Class.

Author:
Mike Brock, Lincoln Baxter, III

Method Summary
 org.jboss.forge.parser.java.JavaSource<?> getJavaSource()
          Attempt to determine and return the JavaSource type of the underlying Class.
 JavaResource setContents(org.jboss.forge.parser.java.JavaSource<?> source)
          Set the content of this Resource to the value of the given JavaSource.
 
Methods inherited from interface org.jboss.forge.resource.FileResource
createNewFile, createTempResource, deleteOnExit, getSize, isDirectory, isExecutable, isReadable, isStale, isWritable, markUpToDate, mkdir, mkdirs, renameTo, renameTo, setContents, setContents, setContents
 
Methods inherited from interface org.jboss.forge.resource.Resource
createFrom, delete, delete, exists, getChild, getFullyQualifiedName, getName, getParent, getResourceFactory, getResourceInputStream, getUnderlyingResourceObject, listResources, listResources, reify
 
Methods inherited from interface org.jboss.forge.facets.Faceted
getFacet, getFacets, getFacets, hasAllFacets, hasAllFacets, hasFacet, install, supports, uninstall
 

Method Detail

setContents

JavaResource setContents(org.jboss.forge.parser.java.JavaSource<?> source)
Set the content of this Resource to the value of the given JavaSource.


getJavaSource

org.jboss.forge.parser.java.JavaSource<?> getJavaSource()
                                                        throws FileNotFoundException
Attempt to determine and return the JavaSource type of the underlying Class.

Throws:
FileNotFoundException

Forge - Java Parser Addon API 2.0.0.Alpha3

Copyright © 2013 JBoss by Red Hat. All Rights Reserved.