com.greenpineyu.fel.function
类 JavaMethod

java.lang.Object
  继承者 com.greenpineyu.fel.function.JavaMethod
所有已实现的接口:
Function

public class JavaMethod
extends Object
implements Function

此类用于保存用户注册的java method。

作者:
Administrator

构造方法摘要
JavaMethod(String name, Method method, Object obj)
           
 
方法摘要
 Object call(FelNode node, FelContext context)
          调用函数
 String getName()
          获取函数的名称
static void main(String[] args)
           
 SourceBuilder toMethod(FelNode node, FelContext context)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

构造方法详细信息

JavaMethod

public JavaMethod(String name,
                  Method method,
                  Object obj)
方法详细信息

call

public Object call(FelNode node,
                   FelContext context)
从接口 Function 复制的描述
调用函数

指定者:
接口 Function 中的 call
返回:

getName

public String getName()
从接口 Function 复制的描述
获取函数的名称

指定者:
接口 Function 中的 getName
返回:

toMethod

public SourceBuilder toMethod(FelNode node,
                              FelContext context)
指定者:
接口 Function 中的 toMethod

main

public static void main(String[] args)
                 throws SecurityException,
                        NoSuchMethodException
抛出:
SecurityException
NoSuchMethodException


Copyright © 2013. All Rights Reserved.