Fix a bunch of warnings, mostly javadoc.
git-svn-id: svn://10.0.0.236/trunk@232925 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -143,8 +143,6 @@ public class Foo extends ScriptableObject {
|
||||
* @return computes the string values and types of 'this' and
|
||||
* of each of the supplied arguments and returns them in a string.
|
||||
*
|
||||
* @exception ThreadAssociationException if the current
|
||||
* thread is not associated with a Context
|
||||
* @see org.mozilla.javascript.ScriptableObject#getTopLevelScope
|
||||
*/
|
||||
public static Object jsFunction_varargs(Context cx, Scriptable thisObj,
|
||||
|
||||
@@ -83,10 +83,10 @@ public interface ConstProperties {
|
||||
* @param name the name of the property
|
||||
* @param start the object whose property is being set
|
||||
* @param value value to set the property to
|
||||
* @see org.mozilla.javascript.Scriptable#has
|
||||
* @see org.mozilla.javascript.Scriptable#get
|
||||
* @see org.mozilla.javascript.ScriptableObject#putProperty
|
||||
* @see org.mozilla.javascript.Context#toObject
|
||||
* @see org.mozilla.javascript.Scriptable#has(String, Scriptable)
|
||||
* @see org.mozilla.javascript.Scriptable#get(String, Scriptable)
|
||||
* @see org.mozilla.javascript.ScriptableObject#putProperty(Scriptable, String, Object)
|
||||
* @see org.mozilla.javascript.Context#toObject(Object, Scriptable)
|
||||
*/
|
||||
public void putConst(String name, Scriptable start, Object value);
|
||||
|
||||
|
||||
@@ -119,49 +119,49 @@ public class Delegator implements Function {
|
||||
return obj.getClassName();
|
||||
}
|
||||
/**
|
||||
* @see org.mozilla.javascript.Scriptable#get
|
||||
* @see org.mozilla.javascript.Scriptable#get(String, Scriptable)
|
||||
*/
|
||||
public Object get(String name, Scriptable start) {
|
||||
return obj.get(name,start);
|
||||
}
|
||||
/**
|
||||
* @see org.mozilla.javascript.Scriptable#get
|
||||
* @see org.mozilla.javascript.Scriptable#get(int, Scriptable)
|
||||
*/
|
||||
public Object get(int index, Scriptable start) {
|
||||
return obj.get(index,start);
|
||||
}
|
||||
/**
|
||||
* @see org.mozilla.javascript.Scriptable#has
|
||||
* @see org.mozilla.javascript.Scriptable#has(String, Scriptable)
|
||||
*/
|
||||
public boolean has(String name, Scriptable start) {
|
||||
return obj.has(name,start);
|
||||
}
|
||||
/**
|
||||
* @see org.mozilla.javascript.Scriptable#has
|
||||
* @see org.mozilla.javascript.Scriptable#has(int, Scriptable)
|
||||
*/
|
||||
public boolean has(int index, Scriptable start) {
|
||||
return obj.has(index,start);
|
||||
}
|
||||
/**
|
||||
* @see org.mozilla.javascript.Scriptable#put
|
||||
* @see org.mozilla.javascript.Scriptable#put(String, Scriptable, Object)
|
||||
*/
|
||||
public void put(String name, Scriptable start, Object value) {
|
||||
obj.put(name,start,value);
|
||||
}
|
||||
/**
|
||||
* @see org.mozilla.javascript.Scriptable#put
|
||||
* @see org.mozilla.javascript.Scriptable#put(int, Scriptable, Object)
|
||||
*/
|
||||
public void put(int index, Scriptable start, Object value) {
|
||||
obj.put(index,start,value);
|
||||
}
|
||||
/**
|
||||
* @see org.mozilla.javascript.Scriptable#delete
|
||||
* @see org.mozilla.javascript.Scriptable#delete(String)
|
||||
*/
|
||||
public void delete(String name) {
|
||||
obj.delete(name);
|
||||
}
|
||||
/**
|
||||
* @see org.mozilla.javascript.Scriptable#delete
|
||||
* @see org.mozilla.javascript.Scriptable#delete(int)
|
||||
*/
|
||||
public void delete(int index) {
|
||||
obj.delete(index);
|
||||
|
||||
@@ -60,7 +60,7 @@ public interface GeneratedClassLoader {
|
||||
*
|
||||
* @param cl Class instance returned from the previous call to
|
||||
* {@link #defineClass(String, byte[])}
|
||||
* @see java.lang.ClassLoader#resolveClass(Class)
|
||||
* @see java.lang.ClassLoader
|
||||
*/
|
||||
public void linkClass(Class cl);
|
||||
}
|
||||
|
||||
@@ -176,7 +176,7 @@ public class NativeJavaObject implements Scriptable, Wrapper, Serializable
|
||||
|
||||
/**
|
||||
@deprecated Use {@link Context#getWrapFactory()} together with calling {@link
|
||||
WrapFactory#wrap(Context cx, Scriptable scope, Object obj, Class)}
|
||||
WrapFactory#wrap(Context, Scriptable, Object, Class)}
|
||||
*/
|
||||
public static Object wrap(Scriptable scope, Object obj, Class staticType) {
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@ public interface Script {
|
||||
* @param cx the Context associated with the current thread
|
||||
* @param scope the scope to execute relative to
|
||||
* @return the result of executing the script
|
||||
* @see org.mozilla.javascript.Context#initStandardObjects
|
||||
* @see org.mozilla.javascript.Context#initStandardObjects()
|
||||
*/
|
||||
public Object exec(Context cx, Scriptable scope);
|
||||
|
||||
|
||||
@@ -139,8 +139,8 @@ public interface Scriptable {
|
||||
* @param name the name of the property
|
||||
* @param start the object in which the lookup began
|
||||
* @return true if and only if the named property is found in the object
|
||||
* @see org.mozilla.javascript.Scriptable#get
|
||||
* @see org.mozilla.javascript.ScriptableObject#getProperty
|
||||
* @see org.mozilla.javascript.Scriptable#get(String, Scriptable)
|
||||
* @see org.mozilla.javascript.ScriptableObject#getProperty(Scriptable, String)
|
||||
*/
|
||||
public boolean has(String name, Scriptable start);
|
||||
|
||||
@@ -155,8 +155,8 @@ public interface Scriptable {
|
||||
* @param index the numeric index for the property
|
||||
* @param start the object in which the lookup began
|
||||
* @return true if and only if the indexed property is found in the object
|
||||
* @see org.mozilla.javascript.Scriptable#get
|
||||
* @see org.mozilla.javascript.ScriptableObject#getProperty
|
||||
* @see org.mozilla.javascript.Scriptable#get(int, Scriptable)
|
||||
* @see org.mozilla.javascript.ScriptableObject#getProperty(Scriptable, int)
|
||||
*/
|
||||
public boolean has(int index, Scriptable start);
|
||||
|
||||
@@ -202,10 +202,10 @@ public interface Scriptable {
|
||||
* @param name the name of the property
|
||||
* @param start the object whose property is being set
|
||||
* @param value value to set the property to
|
||||
* @see org.mozilla.javascript.Scriptable#has
|
||||
* @see org.mozilla.javascript.Scriptable#get
|
||||
* @see org.mozilla.javascript.ScriptableObject#putProperty
|
||||
* @see org.mozilla.javascript.Context#toObject
|
||||
* @see org.mozilla.javascript.Scriptable#has(String, Scriptable)
|
||||
* @see org.mozilla.javascript.Scriptable#get(String, Scriptable)
|
||||
* @see org.mozilla.javascript.ScriptableObject#putProperty(Scriptable, String, Object)
|
||||
* @see org.mozilla.javascript.Context#toObject(Object, Scriptable)
|
||||
*/
|
||||
public void put(String name, Scriptable start, Object value);
|
||||
|
||||
@@ -221,10 +221,10 @@ public interface Scriptable {
|
||||
* @param index the numeric index for the property
|
||||
* @param start the object whose property is being set
|
||||
* @param value value to set the property to
|
||||
* @see org.mozilla.javascript.Scriptable#has
|
||||
* @see org.mozilla.javascript.Scriptable#get
|
||||
* @see org.mozilla.javascript.Scriptable#put(String,Scriptable,Object)
|
||||
* @see org.mozilla.javascript.ScriptableObject#putProperty
|
||||
* @see org.mozilla.javascript.Scriptable#has(int, Scriptable)
|
||||
* @see org.mozilla.javascript.Scriptable#get(int, Scriptable)
|
||||
* @see org.mozilla.javascript.ScriptableObject#putProperty(Scriptable, int, Object)
|
||||
* @see org.mozilla.javascript.Context#toObject(Object, Scriptable)
|
||||
*/
|
||||
public void put(int index, Scriptable start, Object value);
|
||||
|
||||
@@ -245,8 +245,8 @@ public interface Scriptable {
|
||||
* To delete properties defined in a prototype chain,
|
||||
* see deleteProperty in ScriptableObject.
|
||||
* @param name the identifier for the property
|
||||
* @see org.mozilla.javascript.Scriptable#get
|
||||
* @see org.mozilla.javascript.ScriptableObject#deleteProperty
|
||||
* @see org.mozilla.javascript.Scriptable#get(String, Scriptable)
|
||||
* @see org.mozilla.javascript.ScriptableObject#deleteProperty(Scriptable, String)
|
||||
*/
|
||||
public void delete(String name);
|
||||
|
||||
@@ -263,8 +263,8 @@ public interface Scriptable {
|
||||
* an integral index is used to select the property.
|
||||
*
|
||||
* @param index the numeric index for the property
|
||||
* @see org.mozilla.javascript.Scriptable#get
|
||||
* @see org.mozilla.javascript.ScriptableObject#deleteProperty
|
||||
* @see org.mozilla.javascript.Scriptable#get(int, Scriptable)
|
||||
* @see org.mozilla.javascript.ScriptableObject#deleteProperty(Scriptable, int)
|
||||
*/
|
||||
public void delete(int index);
|
||||
|
||||
|
||||
@@ -4711,8 +4711,8 @@ Else pass the JS object in the aReg and 0.0 in the dReg.
|
||||
/**
|
||||
* Const locals use an extra slot to hold the has-been-assigned-once flag at
|
||||
* runtime.
|
||||
* @param isConst
|
||||
* @return
|
||||
* @param isConst true iff the variable is const
|
||||
* @return the register for the word pair (double/long)
|
||||
*/
|
||||
private short getNewWordPairLocal(boolean isConst)
|
||||
{
|
||||
|
||||
@@ -140,6 +140,7 @@ public class NativeRegExp extends IdScriptableObject implements Function
|
||||
private static final byte REOP_REPEAT = 51; /* directs execution of greedy quantifier */
|
||||
private static final byte REOP_MINIMALREPEAT = 52; /* directs execution of non-greedy quantifier */
|
||||
private static final byte REOP_END = 53;
|
||||
|
||||
|
||||
|
||||
public static void init(Context cx, Scriptable scope, boolean sealed)
|
||||
|
||||
@@ -195,7 +195,6 @@ public class ScriptableOutputStream extends ObjectOutputStream {
|
||||
}
|
||||
|
||||
protected Object replaceObject(Object obj)
|
||||
throws IOException
|
||||
{
|
||||
String name = (String) table.get(obj);
|
||||
if (name == null)
|
||||
|
||||
@@ -291,7 +291,7 @@ public class Main implements ContextListener {
|
||||
}
|
||||
|
||||
/**
|
||||
* Helper method for {@link #mainEmbedded}.
|
||||
* Helper method for {@link #mainEmbedded(String)}, etc.
|
||||
*/
|
||||
private static void mainEmbeddedImpl(ContextFactory factory,
|
||||
Object scopeProvider,
|
||||
|
||||
@@ -110,7 +110,8 @@ public class SwingGui extends JFrame implements GuiCallback {
|
||||
private JSInternalConsole console;
|
||||
|
||||
/**
|
||||
* The {@link JSplitPane} that separates {@link #desk} from {@link context}.
|
||||
* The {@link JSplitPane} that separates {@link #desk} from
|
||||
* {@link org.mozilla.javascript.Context}.
|
||||
*/
|
||||
private JSplitPane split1;
|
||||
|
||||
|
||||
@@ -545,9 +545,7 @@ class XMLList extends XMLObjectImpl implements Function {
|
||||
|
||||
/**
|
||||
* If list is empty, return undefined, if elements have different parents return undefined,
|
||||
* If they all have the same parent, return that parent.
|
||||
*
|
||||
* @return
|
||||
* If they all have the same parent, return that parent
|
||||
*/
|
||||
Object parent() {
|
||||
if (length() == 0) return Undefined.instance;
|
||||
|
||||
Reference in New Issue
Block a user