Package com.scratchdisk.script

Examples of com.scratchdisk.script.ArgumentReader


    if (object != null) {
      if (object instanceof Component) {
        return (Component) object;
      } else if (object instanceof Map) {
        try {
          ArgumentReader reader =
              ScriptEngine.convertToArgumentReader(object);
          if (name != null || value != null) {
            // We need to create a new map that contains all the
            // values from map, but also name and value, so the
            // ArgumentReader constructor can read these from there.
View Full Code Here


      if (isNativeObject) {
        unwrapped = unwrap(value);
        if (unwrapped != value && type.isInstance(unwrapped))
          return unwrapped;
      }
      ArgumentReader reader = null;
      if (ArgumentReader.canConvert(type)
          && (reader = getArgumentReader(value)) != null) {
        return ArgumentReader.convert(reader, unwrapped, type, this);
      } else if (isNativeObject) {
        Constructor ctor = getZeroArgumentConstructor(type);
View Full Code Here

TOP

Related Classes of com.scratchdisk.script.ArgumentReader

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.