| java.lang.Object org.netbeans.modules.web.core.jsploader.JspCompileUtil
JspCompileUtil | public class JspCompileUtil (Code) | | JSP compilation utilities
author: Petr Jiricka |
Method Summary | |
public static String | findRelativeContextPath(FileObject rootFolder, FileObject relativeObject) Finds a relative context path between rootFolder and relativeObject.
Similar to FileUtil.getRelativePath(FileObject, FileObject) , only
different slash '/' conventions.
relative context path between rootFolder and relativeObject. | public static boolean | isJspFile(FileObject fo, boolean acceptSegment) Returns whether a given file is a JSP file, or possibly a JSP segment. | public static boolean | isTagFile(FileObject fo, boolean acceptSegment) Returns whether a given file is a tag file, or possibly a tag segment. |
findRelativeContextPath | public static String findRelativeContextPath(FileObject rootFolder, FileObject relativeObject)(Code) | | Finds a relative context path between rootFolder and relativeObject.
Similar to FileUtil.getRelativePath(FileObject, FileObject) , only
different slash '/' conventions.
relative context path between rootFolder and relativeObject. The returned pathalways starts with a '/'. It ends with a '/' if the relative object is a directory. exception: IllegalArgumentException - if relativeObject is not in rootFolder's tree. |
isJspFile | public static boolean isJspFile(FileObject fo, boolean acceptSegment)(Code) | | Returns whether a given file is a JSP file, or possibly a JSP segment.
The recognition happens based on file extension (not on actual inclusion in other files).
Parameters: fo - the file to examine Parameters: acceptSegment - whether segments should be accepted |
isTagFile | public static boolean isTagFile(FileObject fo, boolean acceptSegment)(Code) | | Returns whether a given file is a tag file, or possibly a tag segment.
The recognition happens based on file extension (not on actual inclusion in other files).
Parameters: fo - the file to examine Parameters: acceptSegment - whether segments should be accepted |
|
|