Package st.gravel.core

Examples of st.gravel.core.Symbol


  protected final String selector;
  protected final MethodHandles.Lookup lookup;
  protected final MethodType type;

  public MethodHandle wrapDNUHandle(MethodHandle dnuHandle) {
    Symbol sym = selectorConverter.functionNameAsSelector_(selector);
    MethodHandle withBoundSymbol = MethodHandles.insertArguments(dnuHandle,
        1, sym);
    MethodHandle message = withBoundSymbol.asCollector(Object[].class,
        numArgs());
    return message;
View Full Code Here


        .withProtocol_(protocol);

    ClassDescriptionNode currentClassNode = definitionClassNode();
    final MethodNode current = currentClassNode.methodOrNilAt_(method
        .selector());
    Symbol targetPackageName = current == null ? definitionClassNode()
        .packageName() : current.packageName();
    if (targetPackageName == null) {
      targetPackageName = definitionClassNode().packageName();
      if (targetPackageName == null) {
        targetPackageName = current.packageName();
View Full Code Here

  }

  public MethodMirror getMethodMirror(Object selObject) {
    if (!(selObject instanceof Symbol))
      return null;
    Symbol selector = (Symbol) selObject;
    MethodNode method = getMethodNode(selector);
    if (method == null) {
      return null;
    }
    return new MethodMirror(method, this);
View Full Code Here

TOP

Related Classes of st.gravel.core.Symbol

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.