org.extendj.ast
class FolderPath

General Info

Type Hierarchy:
java.lang.Object
  extended by org.extendj.ast.PathPart
      extended by org.extendj.ast.FolderPath
Direct Known Subclasses:
ClassFolderPath, SourceFolderPath

Description

Source
Declared in /home/jesper/git/extendj/java4/frontend/PathPart.jadd at line 391
Aspect
PathPart

Member Filters

API level:

Aspect:

Constructors

protected FolderPath(java.lang.String folderPath,
                     boolean isSource)
protected FolderPath(java.io.File folder,
                     boolean isSource)

Methods

public java.lang.String getPath()
public boolean hasPackage(java.lang.String name)
Check if the package exists as a subdirectory.

We need to use getCanonicalFile in order to get the case-sensitive package name on case-insensitive file systems or we might incorrectly report a package name conflict.

NB: This does not work well with symlinks!

Specified by:hasPackage in class PathPart
Parameters:
name - The qualified name of the package
Returns:
true if the subdirectory matching the package exists and contains at least one source or class file.
public ClassSource findSource(java.lang.String name)
public java.lang.String toString()

Inherited Members

Methods inherited from class org.extendj.ast.PathPart

Methods inherited from class java.lang.Object

clone
equals
finalize
getClass
hashCode
notify
notifyAll
wait
wait
wait

Fields inherited from org.extendj.ast.PathPart