Package openperipheral.adapter

Examples of openperipheral.adapter.IDescriptable


  @LuaCallable(returnTypes = LuaType.STRING, description = "List all the methods available")
  public String listMethods() {
    List<String> info = Lists.newArrayList();
    for (Map.Entry<String, E> e : methods.entrySet()) {
      final IDescriptable m = e.getValue().getWrappedMethod();
      info.add(e.getKey() + m.signature());
    }
    return Joiner.on(", ").join(info);
  }
View Full Code Here


  @LuaCallable(returnTypes = LuaType.TABLE, description = "Get a complete table of information about all available methods")
  public Map<?, ?> getAdvancedMethodsData() {
    Map<String, Object> info = Maps.newHashMap();
    for (Map.Entry<String, E> e : methods.entrySet()) {
      final IDescriptable m = e.getValue().getWrappedMethod();
      info.put(e.getKey(), m.describe());
    }
    return info;
  }
View Full Code Here

TOP

Related Classes of openperipheral.adapter.IDescriptable

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.