|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mozilla.javascript.ScriptableObject
com.aptana.ide.scripting.io.File
public class File
Simple File wrapper.
| Field Summary |
|---|
| Fields inherited from class org.mozilla.javascript.ScriptableObject |
|---|
CONST, DONTENUM, EMPTY, PERMANENT, READONLY, UNINITIALIZED_CONST |
| Fields inherited from interface org.mozilla.javascript.Scriptable |
|---|
NOT_FOUND |
| Constructor Summary | |
|---|---|
File()
Create a new instance of File From Norris Boyd's sample: When Context.defineClass is called with this class, it will construct File.prototype using this constructor. |
|
| Method Summary | |
|---|---|
static void |
finishInit(org.mozilla.javascript.Scriptable scope,
org.mozilla.javascript.FunctionObject constructor,
org.mozilla.javascript.Scriptable prototype)
finishInit |
java.lang.String |
getClassName()
Returns the name of this JavaScript class, "File". |
static org.mozilla.javascript.Scriptable |
jsConstructor(org.mozilla.javascript.Context cx,
java.lang.Object[] args,
org.mozilla.javascript.Function ctorObj,
boolean inNewExpr)
Construct a new JS File object |
boolean |
jsFunction_createDirectory(boolean recursive)
Create a new directory for this File |
boolean |
jsFunction_createNewFile()
Create a new text file for this File |
void |
jsFunction_deleteOnExit()
jsFunction_deleteOnExit |
org.mozilla.javascript.Scriptable |
jsFunction_readLines()
readLines |
boolean |
jsFunction_write(java.lang.String text)
write |
java.lang.String |
jsGet_absolutePath()
|
java.lang.String |
jsGet_baseName()
|
boolean |
jsGet_canRead()
|
boolean |
jsGet_canWrite()
|
boolean |
jsGet_exists()
|
java.lang.String |
jsGet_extension()
|
boolean |
jsGet_isDirectory()
|
boolean |
jsGet_isFile()
|
org.mozilla.javascript.Scriptable |
jsGet_list()
|
java.lang.String |
jsGet_name()
Get the name of the file. |
org.mozilla.javascript.Scriptable |
jsGet_parentFile()
Get the parent directory for this file |
| Methods inherited from class org.mozilla.javascript.ScriptableObject |
|---|
associateValue, callMethod, callMethod, defineClass, defineClass, defineClass, defineConst, defineConstProperty, defineFunctionProperties, defineProperty, defineProperty, defineProperty, defineProperty, delete, delete, deleteProperty, deleteProperty, equivalentValues, get, get, getAllIds, getAssociatedValue, getAttributes, getAttributes, getAttributes, getAttributes, getClassPrototype, getDefaultValue, getDefaultValue, getFunctionPrototype, getGetterOrSetter, getIds, getObjectPrototype, getParentScope, getProperty, getProperty, getPropertyIds, getPrototype, getTopLevelScope, getTopScopeValue, has, has, hasInstance, hasProperty, hasProperty, isConst, isSealed, put, put, putConst, putConstProperty, putProperty, putProperty, redefineProperty, sealObject, setAttributes, setAttributes, setAttributes, setAttributes, setGetterOrSetter, setParentScope, setPrototype |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public File()
| Method Detail |
|---|
public static void finishInit(org.mozilla.javascript.Scriptable scope,
org.mozilla.javascript.FunctionObject constructor,
org.mozilla.javascript.Scriptable prototype)
scope - constructor - prototype - public java.lang.String getClassName()
getClassName in interface org.mozilla.javascript.ScriptablegetClassName in class org.mozilla.javascript.ScriptableObject
public static org.mozilla.javascript.Scriptable jsConstructor(org.mozilla.javascript.Context cx,
java.lang.Object[] args,
org.mozilla.javascript.Function ctorObj,
boolean inNewExpr)
cx - args - ctorObj - inNewExpr -
public boolean jsFunction_createNewFile()
public boolean jsFunction_createDirectory(boolean recursive)
recursive -
public void jsFunction_deleteOnExit()
public org.mozilla.javascript.Scriptable jsFunction_readLines()
public boolean jsFunction_write(java.lang.String text)
text -
public java.lang.String jsGet_absolutePath()
public java.lang.String jsGet_baseName()
public boolean jsGet_canRead()
public boolean jsGet_canWrite()
public boolean jsGet_exists()
public java.lang.String jsGet_extension()
public boolean jsGet_isFile()
public boolean jsGet_isDirectory()
public org.mozilla.javascript.Scriptable jsGet_list()
public java.lang.String jsGet_name()
public org.mozilla.javascript.Scriptable jsGet_parentFile()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||