Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Update API document and correct typos

  • Loading branch information...
commit 2555b05e0441a785d164f023360b5df9513b9426 1 parent ea32b31
Yoko Harada yokolet authored
Showing with 73 additions and 64 deletions.
  1. +5 −5 src/org/jruby/embed/AttributeName.java
  2. +8 −8 src/org/jruby/embed/EmbedRubyInstanceConfigAdapter.java
  3. +1 −1  src/org/jruby/embed/EmbedRubyInterfaceAdapter.java
  4. +3 −3 src/org/jruby/embed/EmbedRubyObjectAdapter.java
  5. +1 −1  src/org/jruby/embed/EvalFailedException.java
  6. +1 −1  src/org/jruby/embed/InvokeFailedException.java
  7. +1 −1  src/org/jruby/embed/LocalContextScope.java
  8. +1 −1  src/org/jruby/embed/LocalVariableBehavior.java
  9. +1 −1  src/org/jruby/embed/ParseFailedException.java
  10. +2 −2 src/org/jruby/embed/PropertyName.java
  11. +12 −3 src/org/jruby/embed/ScriptingContainer.java
  12. +1 −1  src/org/jruby/embed/internal/AbstractLocalContextProvider.java
  13. +6 −6 src/org/jruby/embed/internal/BiVariableMap.java
  14. +1 −1  src/org/jruby/embed/internal/EmbedEvalUnitImpl.java
  15. +1 −1  src/org/jruby/embed/internal/EmbedRubyInterfaceAdapterImpl.java
  16. +3 −3 src/org/jruby/embed/internal/LocalContextProvider.java
  17. +1 −1  src/org/jruby/embed/internal/SingleThreadLocalContextProvider.java
  18. +1 −1  src/org/jruby/embed/internal/SingletonLocalContextProvider.java
  19. +1 −1  src/org/jruby/embed/internal/ThreadSafeLocalContextProvider.java
  20. +1 −1  src/org/jruby/embed/jsr223/JRubyCompiledScript.java
  21. +1 −1  src/org/jruby/embed/jsr223/JRubyEngineFactory.java
  22. +1 −1  src/org/jruby/embed/variable/AbstractVariable.java
  23. +3 −3 src/org/jruby/embed/variable/BiVariable.java
  24. +1 −1  src/org/jruby/embed/variable/ClassVariable.java
  25. +2 −2 src/org/jruby/embed/variable/Constant.java
  26. +2 −2 src/org/jruby/embed/variable/GlobalVariable.java
  27. +1 −1  src/org/jruby/embed/variable/InstanceVariable.java
  28. +3 −3 src/org/jruby/embed/variable/LocalGlobalVariable.java
  29. +1 −1  src/org/jruby/embed/variable/PersistentLocalVariable.java
  30. +1 −1  src/org/jruby/embed/variable/TransientLocalVariable.java
  31. +5 −5 src/org/jruby/embed/variable/VariableInterceptor.java
10 src/org/jruby/embed/AttributeName.java
View
@@ -76,16 +76,16 @@
/**
* Creates an AttributeName Enum type instance.
*
- * @param fqan a fully qualified attriute name
+ * @param fqan a fully qualified attribute name
*/
AttributeName(String fqpn) {
this.fqpn = fqpn;
}
/**
- * Returns the fully qualified attriute name of this enum constant.
+ * Returns the fully qualified attribute name of this enum constant.
*
- * @return a fully qualified attriute name
+ * @return a fully qualified attribute name
*/
@Override
public String toString() {
@@ -93,10 +93,10 @@ public String toString() {
}
/**
- * Returns a fully qualified attriute name that corresponds to a given
+ * Returns a fully qualified attribute name that corresponds to a given
* enumerated type identifier.
*
- * @param fqan fully qualified attriute name
+ * @param fqan fully qualified attribute name
* @return a matched enumerated type identifier
*/
public static AttributeName getType(String fqpn) {
16 src/org/jruby/embed/EmbedRubyInstanceConfigAdapter.java
View
@@ -12,7 +12,7 @@
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
- * Copyright (C) 2009, 2010 Yoko Harada <yokolet@gmail.com>
+ * Copyright (C) 2010 Yoko Harada <yokolet@gmail.com>
*
* Alternatively, the contents of this file may be used under the terms of
* either of the GNU General Public License Version 2 or later (the "GPL"),
@@ -151,14 +151,14 @@
public void setCompileMode(CompileMode mode);
/**
- * Tests whether Ruby runs in a proces or not.
+ * Tests whether Ruby runs in a process or not.
*
- * @return true if Ruby is configured to run in a process, othereise, false.
+ * @return true if Ruby is configured to run in a process, otherwise, false.
*/
public boolean isRunRubyInProcess();
/**
- * Chnages the value to determine whether Ruby runs in a process or not. The
+ * Changes the value to determine whether Ruby runs in a process or not. The
* default value is true.
*
* @param inprocess true when Ruby is set to run in the process, or false not to
@@ -236,7 +236,7 @@
/**
* Returns a JRuby home directory.
*
- * The default JRuby home is the value of JRUBY_HOME environmnet variable,
+ * The default JRuby home is the value of JRUBY_HOME environmet variable,
* or "jruby.home" system property when no security restriction is set to
* those directories. If none of JRUBY_HOME or jruby.home is set and jruby-complete.jar
* is used, the default JRuby home is "/META-INF/jruby.home" in the jar archive.
@@ -382,7 +382,7 @@
public String getRecordSeparator();
/**
- * Changes a record separator to a given value. If "0" is given, the recoed
+ * Changes a record separator to a given value. If "0" is given, the record
* separator goes to "\n\n", "777" goes to "\uFFFF", otherwise, an octal value
* of the given number.
*
@@ -391,7 +391,7 @@
public void setRecordSeparator(String separator);
/**
- * Returns a value of KCode currenty used. The default value is KCode.NONE.
+ * Returns a value of KCode currently used. The default value is KCode.NONE.
*
* @return a KCode value.
*/
@@ -441,7 +441,7 @@
public void setJitThreshold(int threshold);
/**
- * Returns a value of a max class cahce size. The default value is 0 when
+ * Returns a value of a max class cache size. The default value is 0 when
* security restriction is applied, or 4096 when no security restriction exists.
*
* @return a value of a max class cache size.
2  src/org/jruby/embed/EmbedRubyInterfaceAdapter.java
View
@@ -39,7 +39,7 @@
/**
* Returns a instance of requested interface type from a previously evaluated script.
*
- * @param receiver a reveiver of the previously evaluated script.
+ * @param receiver a receiver of the previously evaluated script.
* @param clazz an interface type of the returning instance.
* @return an instance of requested interface type.
*/
6 src/org/jruby/embed/EmbedRubyObjectAdapter.java
View
@@ -35,7 +35,7 @@
/**
* Wrapper interface of RubyObjectAdapter for embedding. Methods' arguments can have
* simple Java objects for easiness. Each methods converts returned object
- * to a Java type specifed in the argumnet.
+ * to a Java type specified in the argument.
*
* @author Yoko Harada <yokolet@gmail.com>
*/
@@ -129,7 +129,7 @@
* variables' values from Java.
*
* @param receiver is an instance that will receive this method call
- * @param methodName is a method name to be calleid
+ * @param methodName is a method name to be called
* @param args is an array of method arguments
* @param returnType is the type we want it to convert to
* @param unit is parsed unit
@@ -143,7 +143,7 @@
* inject Ruby's local variables' values from Java.
*
* @param receiver is an instance that will receive this method call
- * @param methodName is a method name to be calleid
+ * @param methodName is a method name to be called
* @param args is an array of method arguments except a block
* @param block is a block to be executed in this method
* @param returnType is the type we want it to convert to
2  src/org/jruby/embed/EvalFailedException.java
View
@@ -32,7 +32,7 @@
import org.jruby.exceptions.RaiseException;
/**
- * This class is a generaic uncehcked exception raised during evaluating.
+ * This class is a generic unchecked exception raised during evaluating.
*
* @author Yoko Harada <yokolet@gmail.com>
*/
2  src/org/jruby/embed/InvokeFailedException.java
View
@@ -30,7 +30,7 @@
package org.jruby.embed;
/**
- * This class is a generaic uncehcked exception raised during calling methods and
+ * This class is a generic unchecked exception raised during calling methods and
* invoking interface methods which are implemented by Ruby scripts.
*
* @author Yoko Harada <yokolet@gmail.com>
2  src/org/jruby/embed/LocalContextScope.java
View
@@ -47,7 +47,7 @@
SINGLETHREAD,
/**
- * Specifes that an instance of {@link org.jruby.embed.internal.LocalContext} is a thread local.
+ * Specified that an instance of {@link org.jruby.embed.internal.LocalContext} is a thread local.
*/
THREADSAFE
}
2  src/org/jruby/embed/LocalVariableBehavior.java
View
@@ -46,7 +46,7 @@
PERSISTENT,
/**
- * Specifies that Ruby's local variables have faithful behaivor to its semantics.
+ * Specifies that Ruby's local variables have faithful behavior to its semantics.
* Local variables do not survive over an evaluation. All local variables
* will vanish after every evaluation.
*/
2  src/org/jruby/embed/ParseFailedException.java
View
@@ -30,7 +30,7 @@
package org.jruby.embed;
/**
- * This class is a generaic uncehcked exception raised during parsing.
+ * This class is a generic unchecked exception raised during parsing.
* Checked exceptions, for example, java.io.FileNotFoundException, are also wrapped
* by this exception.
*
4 src/org/jruby/embed/PropertyName.java
View
@@ -54,12 +54,12 @@
LOCALVARIABLE_BEHAVIOR("org.jruby.embed.localvariable.behavior"),
/**
- * A key to get/set compile mode. The assigend value is one of jit or force.
+ * A key to get/set compile mode. The assigned value is one of jit or force.
*/
COMPILEMODE("org.jruby.embed.compilemode"),
/**
- * A key to get/set compatible version to Ruby. If the assigend value matches
+ * A key to get/set compatible version to Ruby. If the assigned value matches
* "[jJ]?(r|R)(u|U)(b|B)(y|Y)1[\\._]?9", then Ruby 1.9 will be chosen.
*/
COMPATVERSION("org.jruby.embed.compat.version");
15 src/org/jruby/embed/ScriptingContainer.java
View
@@ -12,7 +12,7 @@
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
- * Copyright (C) 2009 Yoko Harada <yokolet@gmail.com>
+ * Copyright (C) 2009-2010 Yoko Harada <yokolet@gmail.com>
*
* Alternatively, the contents of this file may be used under the terms of
* either of the GNU General Public License Version 2 or later (the "GPL"),
@@ -658,8 +658,11 @@ public void setClassLoader(ClassLoader loader) {
}
/**
- * Returns a profiler currently used. The default profiler is Profile.DEFAULT,
+ * Returns a Profile currently used. The default value is Profile.DEFAULT,
* which has the same behavior to Profile.ALL.
+ * Profile allows you to define a restricted subset of code to be loaded during
+ * the runtime initialization. When you use JRuby in restricted environment
+ * such as Google App Engine, Profile is a helpful option.
*
* @since JRuby 1.5.0.
*
@@ -670,10 +673,16 @@ public Profile getProfile() {
}
/**
- * Changes a profiler to a given one.
+ * Changes a Profile to a given one. The default value is Profile.DEFAULT,
+ * which has the same behavior to Profile.ALL.
* Call this before you use put/get, runScriptlet, and parse methods so that
* initial configurations will work.
*
+ * Profile allows you to define a restricted subset of code to be loaded during
+ * the runtime initialization. When you use JRuby in restricted environment
+ * such as Google App Engine, Profile is a helpful option. For example,
+ * Profile.NO_FILE_CLASS doesn't load File class.
+ *
* @since JRuby 1.5.0.
*
* @param profile a new profiler to be set.
2  src/org/jruby/embed/internal/AbstractLocalContextProvider.java
View
@@ -12,7 +12,7 @@
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
- * Copyright (C) 2009 Yoko Harada <yokolet@gmail.com>
+ * Copyright (C) 2009-2010 Yoko Harada <yokolet@gmail.com>
*
* Alternatively, the contents of this file may be used under the terms of
* either of the GNU General Public License Version 2 or later (the "GPL"),
12 src/org/jruby/embed/internal/BiVariableMap.java
View
@@ -12,7 +12,7 @@
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
- * Copyright (C) 2009 Yoko Harada <yokolet@gmail.com>
+ * Copyright (C) 2009-2010 Yoko Harada <yokolet@gmail.com>
*
* Alternatively, the contents of this file may be used under the terms of
* either of the GNU General Public License Version 2 or later (the "GPL"),
@@ -72,7 +72,7 @@
private VariableInterceptor interceptor;
/**
- * Constructs an empy map. Users do not instantiate this map. The map is created
+ * Constructs an empty map. Users do not instantiate this map. The map is created
* internally.
*
* @param runtime is environment where variables are used to execute Ruby scripts.
@@ -83,7 +83,7 @@ public BiVariableMap(Ruby runtime) {
/**
- * Constructs an empy map. Users do not instantiate this map. The map is created
+ * Constructs an empty map. Users do not instantiate this map. The map is created
* internally.
*
* @param runtime is environment where variables are used to execute Ruby scripts.
@@ -170,7 +170,7 @@ private void checkKey(Object key) {
* Returns <tt>true</tt> if this map contains a mapping for the specified
* key.
*
- * @param key is a key to be tested its presense
+ * @param key is a key to be tested its presence
* @return <tt>true</tt> if this map contains a mapping for the specified key
*/
public boolean containsKey(Object key) {
@@ -182,7 +182,7 @@ public boolean containsKey(Object key) {
* Returns <tt>true</tt> if this map maps one or more keys to the
* specified value.
*
- * @param value is a Java object to be tested it presense
+ * @param value is a Java object to be tested it presence
* @return Returns <tt>true</tt> if this map maps one or more keys to the
* specified value.
*/
@@ -274,7 +274,7 @@ public V put (K key, V value) {
/**
* Returns Ruby's local variable names this map has. The returned array is mainly
- * used to inject local variables to Ruby scripts while parseing.
+ * used to inject local variables to Ruby scripts while parsing.
*
* @return String array of Ruby's local variable names
*/
2  src/org/jruby/embed/internal/EmbedEvalUnitImpl.java
View
@@ -44,7 +44,7 @@
import org.jruby.runtime.scope.ManyVarsDynamicScope;
/**
- * Implementation of org.jruby.javasupport.JavaEmbedUtils.EvalUnit for Embeddiing.
+ * Implementation of org.jruby.javasupport.JavaEmbedUtils.EvalUnit for embeddiing.
* This class is created when a Ruby script has been parsed. Once parsed, the script
* is ready to run many times without parsing.
*
2  src/org/jruby/embed/internal/EmbedRubyInterfaceAdapterImpl.java
View
@@ -57,7 +57,7 @@ public EmbedRubyInterfaceAdapterImpl(ScriptingContainer container) {
/**
* Returns a instance of a requested interface type from a previously evaluated script.
*
- * @param receiver a reveiver of the previously evaluated script.
+ * @param receiver a receiver of the previously evaluated script.
* @param clazz an interface type of the returning instance.
* @return an instance of requested interface type.
*/
6 src/org/jruby/embed/internal/LocalContextProvider.java
View
@@ -12,7 +12,7 @@
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
- * Copyright (C) 2009 Yoko Harada <yokolet@gmail.com>
+ * Copyright (C) 2009-2010 Yoko Harada <yokolet@gmail.com>
*
* Alternatively, the contents of this file may be used under the terms of
* either of the GNU General Public License Version 2 or later (the "GPL"),
@@ -37,7 +37,7 @@
/**
* LocalContextProvider provides an instance of {@link org.jruby.embed.internal.LocalContext} from
- * a specifed scope defined by {@link LocalContextScope}. Users can configure
+ * a specified scope defined by {@link LocalContextScope}. Users can configure
* Ruby runtime by using methods of this interface before Ruby runtime is used.
* Default scope is LocalContextScope.THREADSAFE.
*
@@ -82,7 +82,7 @@
Ruby getRuntime();
/**
- * Returns a {@link BiVariableMap} of a specifed scope.
+ * Returns a {@link BiVariableMap} of a specified scope.
*
* @return a variable map
*/
2  src/org/jruby/embed/internal/SingleThreadLocalContextProvider.java
View
@@ -12,7 +12,7 @@
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
- * Copyright (C) 2009 Yoko Harada <yokolet@gmail.com>
+ * Copyright (C) 2009-2010 Yoko Harada <yokolet@gmail.com>
*
* Alternatively, the contents of this file may be used under the terms of
* either of the GNU General Public License Version 2 or later (the "GPL"),
2  src/org/jruby/embed/internal/SingletonLocalContextProvider.java
View
@@ -12,7 +12,7 @@
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
- * Copyright (C) 2009 Yoko Harada <yokolet@gmail.com>
+ * Copyright (C) 2009-2010 Yoko Harada <yokolet@gmail.com>
*
* Alternatively, the contents of this file may be used under the terms of
* either of the GNU General Public License Version 2 or later (the "GPL"),
2  src/org/jruby/embed/internal/ThreadSafeLocalContextProvider.java
View
@@ -12,7 +12,7 @@
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
- * Copyright (C) 2009 Yoko Harada <yokolet@gmail.com>
+ * Copyright (C) 2009-2010 Yoko Harada <yokolet@gmail.com>
*
* Alternatively, the contents of this file may be used under the terms of
* either of the GNU General Public License Version 2 or later (the "GPL"),
2  src/org/jruby/embed/jsr223/JRubyCompiledScript.java
View
@@ -12,7 +12,7 @@
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
- * Copyright (C) 2009 Yoko Harada <yokolet@gmail.com>
+ * Copyright (C) 2009-2010 Yoko Harada <yokolet@gmail.com>
*
* Alternatively, the contents of this file may be used under the terms of
* either of the GNU General Public License Version 2 or later (the "GPL"),
2  src/org/jruby/embed/jsr223/JRubyEngineFactory.java
View
@@ -12,7 +12,7 @@
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
- * Copyright (C) 2009 Yoko Harada <yokolet@gmail.com>
+ * Copyright (C) 2009-2010 Yoko Harada <yokolet@gmail.com>
*
* Alternatively, the contents of this file may be used under the terms of
* either of the GNU General Public License Version 2 or later (the "GPL"),
2  src/org/jruby/embed/variable/AbstractVariable.java
View
@@ -93,7 +93,7 @@ public Object getJavaObject() {
}
Ruby rt = irubyObject.getRuntime();
if (javaType != null) {
- // Java originated varibales
+ // Java originated variables
javaObject = javaType.cast(JavaEmbedUtils.rubyToJava(rt, irubyObject, javaType));
} else {
// Ruby originated variables
6 src/org/jruby/embed/variable/BiVariable.java
View
@@ -38,8 +38,8 @@
* {@link BiVariableMap} after a variable is set to the map. Users can set variables
* in Java program explicitly through put() methods in {@link ScriptingContainer}
* and {@link BiVariableMap} or equivalents. However, variables in Ruby scripts are
- * set in the map implicitly. When varibles and constants
- * are used in the script, thoses are automatically saved in the map converting to this type.
+ * set in the map implicitly. When variables and constants
+ * are used in the script, those are automatically saved in the map converting to this type.
*
* @author Yoko Harada <yokolet@gmail.com>
*/
@@ -111,7 +111,7 @@
/**
* Removes this object from {@link BiVariableMap}.
*
- * @param runtime enviroment where a variabe is removed.
+ * @param runtime environment where a variable is removed.
*/
public void remove(Ruby runtime);
}
2  src/org/jruby/embed/variable/ClassVariable.java
View
@@ -134,7 +134,7 @@ public void inject(Ruby runtime, IRubyObject receiver) {
/**
* Removes this object from {@link BiVariableMap}.
*
- * @param runtime enviroment where a variabe is removed.
+ * @param runtime environment where a variable is removed.
*/
public void remove(Ruby runtime) {
RubyModule rubyClass = getRubyClass(runtime);
4 src/org/jruby/embed/variable/Constant.java
View
@@ -12,7 +12,7 @@
* implied. See the License for the specific language governing
* rights and limitations under the License.
*
- * Copyright (C) 2009 Yoko Harada <yokolet@gmail.com>
+ * Copyright (C) 2009-2010 Yoko Harada <yokolet@gmail.com>
*
* Alternatively, the contents of this file may be used under the terms of
* either of the GNU General Public License Version 2 or later (the "GPL"),
@@ -157,7 +157,7 @@ public void inject(Ruby runtime, IRubyObject receiver) {
/**
* Removes this object from {@link BiVariableMap}.
*
- * @param runtime enviroment where a variabe is removed.
+ * @param runtime environment where a variable is removed.
*/
public void remove(Ruby runtime) {
/* Like this? - from RubyModule
4 src/org/jruby/embed/variable/GlobalVariable.java
View
@@ -168,7 +168,7 @@ public void setJavaObject(Ruby runtime, Object javaObject) {
/**
* A global variable is injected when it is set. This method does nothing.
- * Instaed injection is done by tryEagerInjection.
+ * Instead injection is done by tryEagerInjection.
*
* @param runtime is environment where a variable injection occurs
* @param receiver is the instance that will have variable injection.
@@ -191,7 +191,7 @@ public void tryEagerInjection(Ruby runtime, IRubyObject receiver) {
/**
* Removes this object from {@link BiVariableMap}.
*
- * @param runtime enviroment where a variabe is removed.
+ * @param runtime environment where a variable is removed.
*/
public void remove(Ruby runtime) {
setJavaObject(runtime, null);
2  src/org/jruby/embed/variable/InstanceVariable.java
View
@@ -140,7 +140,7 @@ public void inject(Ruby runtime, IRubyObject receiver) {
/**
* Removes this object from {@link BiVariableMap}.
*
- * @param runtime enviroment where a variabe is removed.
+ * @param runtime environment where a variable is removed.
*/
public void remove(Ruby runtime) {
ThreadContext context = runtime.getCurrentContext();
6 src/org/jruby/embed/variable/LocalGlobalVariable.java
View
@@ -36,8 +36,8 @@
import org.jruby.runtime.builtin.IRubyObject;
/**
- * An implementation of BiVariable for JSR223 style global variable. The assigend
- * name is like a local vars in Java, but a global in Ruby.
+ * An implementation of BiVariable for JSR223 style global variable. The assigned
+ * name is like a local variables in Java, but a global in Ruby.
*
* @author Yoko Harada <yokolet@gmail.com>
*/
@@ -127,7 +127,7 @@ public void inject(Ruby runtime, IRubyObject receiver) {
/**
* Removes this object from {@link BiVariableMap}.
*
- * @param runtime enviroment where a variabe is removed.
+ * @param runtime environment where a variable is removed.
*/
@Override
public void remove(Ruby runtime) {
2  src/org/jruby/embed/variable/PersistentLocalVariable.java
View
@@ -139,7 +139,7 @@ public void inject(Ruby runtime, IRubyObject receiver) {
/**
* Removes this object from {@link BiVariableMap}.
*
- * @param runtime enviroment where a variabe is removed.
+ * @param runtime environment where a variable is removed.
*/
public void remove(Ruby runtime) {
ThreadContext context = runtime.getCurrentContext();
2  src/org/jruby/embed/variable/TransientLocalVariable.java
View
@@ -114,7 +114,7 @@ public void inject(Ruby runtime, IRubyObject receiver) {
/**
* Removes this object from {@link BiVariableMap}.
*
- * @param runtime enviroment where a variabe is removed.
+ * @param runtime environment where a variable is removed.
*/
public void remove(Ruby runtime) {
ThreadContext context = runtime.getCurrentContext();
10 src/org/jruby/embed/variable/VariableInterceptor.java
View
@@ -38,7 +38,7 @@
import org.jruby.runtime.scope.ManyVarsDynamicScope;
/**
- * This class is responsible to local variable behavior dependent processings.
+ * This class is responsible to local variable behavior dependent processing.
*
* @author Yoko Harada <yokolet@gmail.com>
*/
@@ -46,7 +46,7 @@
private LocalVariableBehavior behavior;
/**
- * Contructs an instance with a given local variable behavior.
+ * Constructs an instance with a given local variable behavior.
*
* @param behavior local variable behavior
*/
@@ -138,7 +138,7 @@ public void inject(BiVariableMap map, Ruby runtime, ManyVarsDynamicScope scope,
* Retrieves variable/constant names and values after the evaluation or method
* invocation.
*
- * @param map varible map that holds retrieved name-value pairs.
+ * @param map variable map that holds retrieved name-value pairs.
* @param runtime Ruby runtime
* @param receiver a receiver when the script has been evaluated once
*/
@@ -165,7 +165,7 @@ public void retrieve(BiVariableMap map, Ruby runtime, IRubyObject receiver) {
* Retrieves specified variable/constant name and value after the evaluation
* or method invocation only when it is requested.
*
- * @param map varible map that holds retrieved name-value pairs.
+ * @param map variable map that holds retrieved name-value pairs.
* @param runtime Ruby runtime
* @param receiver a receiver when the script has been evaluated once
* @
@@ -224,7 +224,7 @@ public void terminateLocalVariables(List<String> varNames, List<BiVariable> vari
* Checks the given name is whether a legal Ruby variable/constant name or not.
*
* @param name a given name to be checked
- * @return true when the name is a lega Ruby variable/constant name, otherwise false.
+ * @return true when the name is a legal Ruby variable/constant name, otherwise false.
*/
public boolean isKindOfRubyVariable(String name) {
switch (behavior) {
Please sign in to comment.
Something went wrong with that request. Please try again.