Examples of Function

  • net.sf.jpluck.plucker.functions.Function
  • net.sf.jsqlparser.expression.Function
    A function as MAX,COUNT...
  • net.sf.minuteProject.configuration.bean.model.data.Function
  • net.sourceforge.htmlunit.corejs.javascript.Function
    This is interface that all functions in JavaScript must implement. The interface provides for calling functions and constructors. @see net.sourceforge.htmlunit.corejs.javascript.Scriptable @author Norris Boyd
  • net.sourceforge.marathon.api.module.Function
  • nexj.core.scripting.Function
    Interface for invoking a function.
  • nodebox.function.Function
    Function wraps any kind of callable.
  • noop.model.Function
    @author alexeagle@google.com (Alex Eagle)
  • org.apache.cassandra.cql3.functions.Function
  • org.apache.commons.jxpath.Function
    Extension function interface. Extension functions are grouped into {@link Functions Functions} objects, which are installed onJXPathContexts using the {@link JXPathContext#setFunctions JXPathContext.setFunctions()}call.

    The Function interface can be implemented directly. However, most of the time JXPath's built-in implementations should suffice. See {@link ClassFunctions ClassFunctions} and {@link PackageFunctions PackageFunctions}. @author Dmitri Plotnikov @version $Revision: 1.5 $ $Date: 2003/03/11 00:59:12 $

  • org.apache.felix.service.command.Function
    A Function is a a block of code that can be executed with a set of arguments, it returns the result object of executing the script.
  • org.apache.hadoop.hive.metastore.api.Function
  • org.apache.jmeter.functions.Function
    Methods that a function must implement
  • org.apache.poi.hssf.record.formula.functions.Function
    @author Amol S. Deshmukh < amolweb at ya hoo dot com >Function serves as a marker interface.
  • org.apache.poi.ss.formula.functions.Function
    Common interface for all implementations of Excel built-in functions. @author Amol S. Deshmukh < amolweb at ya hoo dot com >
  • org.apache.tajo.catalog.function.Function
  • org.apache.vxquery.functions.Function
  • org.apache.ws.jaxme.sqls.Function
    @author Jochen Wiedmann
  • org.apache.xpath.functions.Function
    This is a superclass of all XPath functions. This allows two ways for the class to be called. One method is that the super class processes the arguments and hands the results to the derived class, the other method is that the derived class may process it's own arguments, which is faster since the arguments don't have to be added to an array, but causes a larger code footprint.
  • org.asturlinux.frade.currin.program.Function
  • org.atmosphere.wasync.Function
    A function is asynchronously invoked when a response is received, complete or not.

    This library supports predefined life cycle's events (@link Event} that can be used. For example, a Function can be defined for handling IOException:

     

    class Function<IOException>() { public void on(IOEXception ex) { } }

    This function can be registered using the {@link Socket#on(Function)} as
     

    socket.on(new Function<IOEXception>() { .... }

    This is the equivalent of doing
     

    socket.on(Event.ERROR, new Function<IOEXception>() { .... }

    Anonymous functions call also be invoked if a {@link Decoder} match its type
     

    socket.decoder(new Decoder<String, POJO>(){ @Override public POJO decode(Event e, String message) { return new POJO(message); } }

    .on(new Function<POJO>() { .... }

    @param < T> @author Jeanfrancois Arcand
  • org.auraframework.impl.expression.functions.Function
    the thing that actually executes some function in the formula engine
  • org.cfeclipse.cfml.dictionary.Function
    This is a function. Functions are like tags except they have a return type. A function derives from the Procedure class but as mentioned a moment ago, it has a return value. @author Rob
  • org.cfeclipse.cfmledit.dictionary.Function
  • org.drools.clips.Function
  • org.drools.core.rule.Function
  • org.drools.eclipse.core.Function
    This represents a function.
  • org.drools.rule.Function
  • org.eclipse.sapphire.modeling.el.Function
    @author Konstantin Komissarchik
  • org.fenixedu.academic.domain.organizationalStructure.Function
  • org.foray.fotree.value.Function
    Abstract superclass for all XSL-FO functions.
  • org.formulacompiler.compiler.Function
  • org.gdbms.engine.function.Function
    Interface to be implemented to create a function. The name will be the string used in the SQL to refeer the function. A function will be created once for each instruction execution.
  • org.gephi.appearance.api.Function
    @author mbastian
  • org.h2.expression.Function
    This class implements most built-in functions of this database.
  • org.hisrc.jscm.codemodel.expression.JSFunctionExpression.Function
  • org.jaxen.Function
    Interface for the extensible function framework.

    NOTE: This class is not typically used directly, but is exposed for writers of extended XPath packages.

    Implementations of Function are functors which are used to evaluate a function-call within an XPath expression.

    @see FunctionContext @author bob mcwhirter
  • org.jboss.gwt.flow.client.Function
    An execution delegate able to control the outcome. @author Heiko Braun @date 3/8/13
  • org.jboss.security.xacml.sunxacml.cond.Function
    Interface that all functions in the system must implement. @since 1.0 @author Seth Proctor
  • org.jenetics.util.Function
    A function of 1 parameter. @author Franz Wilhelmstötter @since 1.0 @version 1.0 — $Date$
  • org.jfree.report.expressions.Function
    The interface for report functions. A report function separates the business logic from presentation of the result.

    Since JFreeReport 0.9 functions are considered immutable. During the advancement process, the function returns a new instance with the updated state. @author Thomas Morgner

  • org.jitterbit.integration.data.function.Function
    TODO: Write this. @author Torgil Zethson
  • org.jitterbit.integration.data.script.Function
    Defines a function in the Formula Builder. @author Torgil Zethson @since 1.2
  • org.lealone.expression.Function
    This class implements most built-in functions of this database.
  • org.maltparserx.core.feature.function.Function
    @author Johan Hall
  • org.mozilla.javascript.Function
    This is interface that all functions in JavaScript must implement. The interface provides for calling functions and constructors. @see org.mozilla.javascript.Scriptable @author Norris Boyd
  • org.mvel2.ast.Function
  • org.openbel.bel.xbel.model.Function
  • org.openbel.framework.common.lang.Function
    The base class of the immutable BEL function model.

    TODO: The function model currently lacks unit tests

  • org.opengis.filter.expression.Function
    is.org/docs/02-059.pdf">Implementation specification 1.0 @version Symbology Encoding Implementation Specification 1.1.0 @author Chris Dillard (SYS Technologies) @since GeoAPI 2.0
  • org.openiaml.model.model.Function
  • org.openquark.cal.compiler.Function
    Provides an implementation of FunctionalAgent suitable for use in the type checker with functions or pattern bound variables.

    Creation date: (6/6/01 2:00:01 PM) @author Bo Ilic

  • org.openrdf.query.algebra.evaluation.function.Function
    @author Arjohn Kampman
  • org.osgi.service.command.Function
    A Function is a a block of code that can be executed with a set of arguments, it returns the result object of executing the script. TODO The javadoc in this class need a good scrub before release. @ThreadSafe @version $Revision: 5654 $
  • org.pentaho.reporting.engine.classic.core.function.Function
    The interface for report functions. A report function separates the business logic from presentation of the result. The function is called whenever JFreeReport changes its state while generating the report. The working model for the functions is based on cloning the state of the function on certain checkpoints to support the ReportState implementation of JFreeReport.

    Although functions support the ReportListener interface, they are not directly added to a report. A report FunctionCollection is used to control the functions. Functions are required to be cloneable.

    @author Thomas Morgner

  • org.pirkaengine.core.expression.Function
    関数クラス. @author shuji.w6e @since 0.1.0
  • org.qi4j.functional.Function
    Generic function interface to map from one type to another. This can be used with the Iterables methods to transform lists of objects. @param < From> @param < To>
  • org.rendersnake.js.Function
  • org.sf.feeling.swt.win32.extension.function.Function
    Win32 dll function utility class. @author cnfree
  • org.sonar.api.issue.action.Function
    @since 3.6
  • org.springframework.data.repository.query.spi.Function
    Value object to represent a function. Can either be backed by a static {@link Method} invocation (see{@link #Function(Method)}) or a method invocation on an instance (see {@link #Function(Method,Object)}. @author Thomas Darimont @author Oliver Gierke @since 1.9
  • org.springframework.data.solr.core.query.Function
    @author Christoph Strobl @since 1.1
  • org.springmodules.validation.valang.functions.Function

    A function is an implementation that returns a value based on one of more arguments. A function instance is created for each occurrence of the function in the validation language. @author Steven Devijver @since Apr 23, 2005

  • org.syrup.Function
    The function of a Task that is executed by a Worker. A concrete implementation must be a stateless (pure) Function; the Result after execution must solely depend on the Context. @author Robbert van Dalen
  • org.teiid.language.Function
    Represents a function. A function has a name and 0..n Expressions that are parameters.
  • org.teiid.query.sql.symbol.Function
    Represents a function in a sql statement. A function is a type of expression. Functions have a name and some arguments (0..n). Each argument is also an expression. After resolution, a function should have a type and a function descriptor.
  • org.zkoss.openlayers.util.Function
    A Javascript Object @author jumperchen
  • org.zkoss.xel.Function
    Represents a XEL function. @author tomyeh @since 3.0.0
  • our.apache.commons.jxpath.Function
  • prefuse.data.expression.Function
    rg">jeffrey heer
  • ptolemy.data.Function
    The interface for functions contained by function tokens. @author Xiaojun Liu, Steve Neuendorffer @version $Id: Function.java,v 1.14 2007/12/07 06:31:17 cxh Exp $ @since Ptolemy II 4.0 @Pt.ProposedRating Yellow (liuxj) @Pt.AcceptedRating Red (liuxj)
  • r.nodes.ast.Function
  • railo.transformer.bytecode.statement.udf.Function
  • swifu.main.Function
  • term02.m04_d27.functions.Function
  • tree.Function
    The Class FunctionNode. @author Anatoly Kondratyev
  • util.Function
  • webit.script.Function
    Exported function. @since 1.5.0 @author zqq
  • xbird.xquery.func.Function
    @author Makoto YUI (yuin405+xbird@gmail.com)

  • Examples of our.apache.commons.jxpath.Function

                new ImmutableExpandedName("http://spaceC",
                                          "c");
            ImmutableExpandedName nameC2 =
                new ImmutableExpandedName("http://spaceC",
                                          "c2");
            Function a = new TestFunction();
            Function b = new TestFunction();
            Function c = new TestFunction();
            Set namespaceURLs;
            Set expectedURLs = new HashSet();

            functions.addFunction(nameA, a);
            functions.addFunction(nameB, b);
    View Full Code Here

    Examples of prefuse.data.expression.Function

        }
        throw new Error("Missing return statement in function");
      }

      static final public Expression Identifier() throws ParseException {
      String s; Function f=null; Expression e;
        switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
        case QUOTED:
          s = Quoted();
                     {if (true) return new ColumnExpression(s);}
          break;
        case IDENTIFIER:
          s = Name();
          switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
          case LPAREN:
            jj_consume_token(LPAREN);
                     f = FunctionTable.createFunction(s);
            switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
            case TRUE:
            case FALSE:
            case NULL:
            case IF:
            case NOT:
            case INT:
            case LONG:
            case DOUBLE:
            case FLOAT:
            case STRING:
            case QUOTED:
            case IDENTIFIER:
            case LPAREN:
            case ADD:
            case SUB:
              e = Expression();
                             f.addParameter(e);
              label_8:
              while (true) {
                switch ((jj_ntk==-1)?jj_ntk():jj_ntk) {
                case 43:
                  ;
                  break;
                default:
                  jj_la1[16] = jj_gen;
                  break label_8;
                }
                jj_consume_token(43);
                e = Expression();
                                  f.addParameter(e);
              }
              break;
            default:
              jj_la1[17] = jj_gen;
              ;
    View Full Code Here

    Examples of ptolemy.data.Function

                        throw new IllegalActionException("The forth argument to " +
                                "the loop special function must be a value " +
                                "collection.");
                    }

                    Function function = new LoopFunction(_pattern, _matchResult,
                            current, startValue, boundVariable, collection);
                    FunctionType functionType = new FunctionType(
                            new Type[] { BaseType.OBJECT }, BaseType.GENERAL);
                    _evaluatedChildToken =
                        new FunctionToken(function, functionType);
    View Full Code Here

    Examples of r.nodes.ast.Function

            result = functionNode;
        }

        private RFunction getEnclosingFunction(ASTNode node) {
            // find lexically enclosing function if exists
            Function enfunc = findParent(node, Function.class);
            if (enfunc == null) { return rootEnclosingFunction; }
            RFunction rfunc = enfunc.getRFunction();
            Utils.check(rfunc != null, "RFunction is not yet ready - note lazy build is necessary for functions");
            return rfunc;
        }
    View Full Code Here

    Examples of railo.transformer.bytecode.statement.udf.Function

      }

      protected  final Function closurePart(ExprData data, String id, int access, String rtnType, Position line,boolean closure) throws TemplateException {   
       
        Body body=new FunctionBody();
        Function func=closure?
            new Closure(data.page,id,access,rtnType,body,line,null)
            :new FunctionImpl(data.page,id,access,rtnType,body,line,null);
       
          comments(data);
          if(!data.cfml.forwardIfCurrent('('))
            throw new TemplateException(data.cfml,"invalid syntax in function head, missing begin [(]");
       
          // arguments
          LitBoolean passByRef;
          Expression displayName;
          Expression hint;
          Map<String,Attribute> meta;
          String _name;
          do  {
            comments(data);
            // finish
            if(data.cfml.isCurrent(')'))break;
           
            // attribute
           
            // name
            //String idName=identifier(data,false,true);
            boolean required=false;
           
            String idName = variableDec(data, false);
            // required
            if("required".equalsIgnoreCase(idName)){
              comments(data);
              String idName2=variableDec(data, false);
              if(idName2!=null){
                idName=idName2;
                required=true;
              }
            }
           
           
            String typeName="any";
            if(idName==null) throw new TemplateException(data.cfml,"invalid argument definition");
            comments(data);
            if(!data.cfml.isCurrent(')') && !data.cfml.isCurrent('=') && !data.cfml.isCurrent(':') && !data.cfml.isCurrent(',')) {
              typeName=idName.toLowerCase();
              idName=identifier(data,false); // MUST was upper case before, is this a problem?
            }
            else if(idName.indexOf('.')!=-1 || idName.indexOf('[')!=-1) {
              throw new TemplateException(data.cfml,"invalid argument name ["+idName+"] definition");
            }
           
            comments(data);
            Expression defaultValue;
            if(data.cfml.isCurrent('=') || data.cfml.isCurrent(':')) {
              data.cfml.next();
              comments(data);
              defaultValue=expression(data);
            }
            else defaultValue=null;
           
            // assign meta data defined in doc comment
            passByRef = LitBoolean.TRUE;
            displayName=LitString.EMPTY;
            hint=LitString.EMPTY;
            meta=null;
            if(data.docComment!=null){
              Map<String, Attribute> params = data.docComment.getParams();
              Attribute[] attrs = params.values().toArray(new Attribute[params.size()]);
              Attribute attr;
              String name;
             
              for(int i=0;i<attrs.length;i++){
                attr=attrs[i];
                name=attr.getName();
                // hint
                if(idName.equalsIgnoreCase(name) || name.equalsIgnoreCase(idName+".hint")) {
                  hint=CastString.toExprString(attr.getValue());
                  params.remove(name);
                }
                //meta
                if(StringUtil.startsWithIgnoreCase(name, idName+".")) {
                  if(name.length()>idName.length()+1){
                    if(meta==null) meta=new HashMap<String, Attribute>();
                    _name=name.substring(idName.length()+1);
                    meta.put(_name, new Attribute(attr.isDynamicType(), _name,attr.getValue(), attr.getType()));
                  }
                  params.remove(name);
                }
              }
             
            }
           
            // argument attributes
            Attribute[] _attrs = attributes(null,null,data,COMMA_ENDBRACKED,LitString.EMPTY,Boolean.TRUE,null,false);
            Attribute _attr;
            if(!ArrayUtil.isEmpty(_attrs)){
              if(meta==null) meta=new HashMap<String, Attribute>();
              for(int i=0;i<_attrs.length;i++){
                _attr=_attrs[i];
                meta.put(_attr.getName(), _attr);
              }
            }
           
            func.addArgument(
                LitString.toExprString(idName),
                LitString.toExprString(typeName),
                LitBoolean.toExprBoolean(required),
                defaultValue,passByRef,displayName,hint,meta);
           
            comments(data);
          }
          while(data.cfml.forwardIfCurrent(','));

       
        // end )
          comments(data);
          if(!data.cfml.forwardIfCurrent(')'))
            throw new TemplateException(data.cfml,"invalid syntax in function head, missing ending [)]");
       
        //TagLibTag tlt = CFMLTransformer.getTLT(data.cfml,"function");
       
        // doc comment
        if(data.docComment!=null){
          func.setHint(data.docComment.getHint());
         
         
          // params
          /*Map<String, Attribute> params = data.docComment.getParams();
          Iterator<Attribute> it = params.values().iterator();
          Attribute attr;
          String name;
          while(it.hasNext()){
            attr=it.next();
            name=attr.getName();
          }*/
         
          func.setMetaData(data.docComment.getParams());
          data.docComment=null;
        }

        comments(data);
         
        // attributes
        Attribute[] attrs = attributes(null,null,data,SEMI_BLOCK,LitString.EMPTY,Boolean.TRUE,null,false);
        for(int i=0;i<attrs.length;i++){
          func.addAttribute(attrs[i]);
        }
         
        // body
        boolean oldInsideFunction=data.insideFunction;
        data.insideFunction=true;
        try {
        // ex block
        statement(data,body,CTX_FUNCTION);
        }
        finally{
          data.insideFunction=oldInsideFunction;
        }
        func.setEnd(data.cfml.getPosition());
        //eval(tlt,data,func);
        return func;
      }
    View Full Code Here

    Examples of swifu.main.Function

      public static void constructFVFunctionActions(Set<Function> functions,
                              FunctionFieldViewManager manager) {

         Iterator<Function> iterator = functions.iterator();
         while (iterator.hasNext()) {
           Function function = iterator.next();
           String prefix = FunctionFieldViewManager.FIELDVIEW_PREFIX;
           String oldFunctionName = function.getName();
           String newFunctionName   = FunctionManager.cutSuperComponentPrefix(oldFunctionName,
                                             prefix);

          Messages messages = Messages.getMessages();
                                 
           if (newFunctionName == null) {
            messages.err("AbstractFieldView", "constructFVFunctionActions says: "
                   + oldFunctionName + " does not start with "
                   + prefix);
            messages.err("AbstractFieldView", "--> Aborting...");
             System.exit(-1);
           } else {
             FieldViewFunctionAction functionAction
               = new FieldViewFunctionAction(manager, newFunctionName);
             function.setAction(functionAction);    
           }
         }
      }
    View Full Code Here

    Examples of term02.m04_d27.functions.Function

    import term02.m04_d27.functions.Function;

    public class BinarySearch {

        public static void main(String[] args) {
            Function f = new ExponentialFunction();

            System.out.println(searchRoot(f, 1));
            System.out.println(searchRoot(f, Math.E));
        }
    View Full Code Here

    Examples of tree.Function


                FUNCTION50=(Token)match(input,FUNCTION,FOLLOW_FUNCTION_in_funcLit1421); if (state.failed) return retval;
                if ( state.backtracking==0 ) {
                FUNCTION50_tree =
                new Function(FUNCTION50)
                ;
                root_0 = (Object)adaptor.becomeRoot(FUNCTION50_tree, root_0);
                }

                LPAREN51=(Token)match(input,LPAREN,FOLLOW_LPAREN_in_funcLit1427); if (state.failed) return retval;
    View Full Code Here

    Examples of util.Function

              System.exit(0);
            }
            arg=Arg.NONE;
          }
        }
        Function dt=new ConstantFunction(deltaT);
        if (!d3){
          Potential<XYVector> potential;
          if (pot.toLowerCase().startsWith("l")){
            potential=new LennardJonesPotential<XYVector>(particles);
          }else{
    View Full Code Here

    Examples of webit.script.Function

        public void test() throws ResourceNotFoundException {

            Context context = EngineManager.getTemplate("/functionExportTest.wit").merge(new DiscardOut());

            //plus
            Function plus = context.exportFunction("plus");

            assertNotNull(plus);

            assertEquals(1, plus.invoke(0, 1));
            assertEquals(5, plus.invoke(2, 3));
            assertEquals(1, plus.invoke(-2, 3));

            //counter
            Function counter = context.exportFunction("counter");

            assertNotNull(counter);

            assertEquals(0, counter.invoke());
            assertEquals(1, counter.invoke());
            assertEquals(2, counter.invoke());

            //counter
            Function counter2 = context.exportFunction("counter2");

            assertNotNull(counter2);

            assertEquals(0, counter2.invoke());
            assertEquals(1, counter2.invoke());
            assertEquals(2, counter2.invoke());

            //str_len
            Function str_len = context.exportFunction("str_len");

            assertNotNull(str_len);

            assertEquals(0, str_len.invoke(""));
            assertEquals(1, str_len.invoke("a"));
            assertEquals(4, str_len.invoke("abcd"));

            //print
            Function print = context.exportFunction("print");
            StringWriter writer;

            assertNotNull(print);

            writer = new StringWriter();
            print.invokeWithOut(writer, "");
            assertEquals("", writer.toString());
           
            writer = new StringWriter();
            print.invokeWithOut(writer, "hello function");
            assertEquals("hello function", writer.toString());

            //Exception cases:
            //
            Exception exception = null;
    View Full Code Here
    TOP
    Copyright © 2018 www.massapi.com. 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.