congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
FunctionAlias.isVarArgs
Code IndexAdd Tabnine to your IDE (free)

How to use
isVarArgs
method
in
org.h2.engine.FunctionAlias

Best Java code snippets using org.h2.engine.FunctionAlias.isVarArgs (Showing top 2 results out of 315)

origin: org.wowtools/h2

JavaMethod(Method method, int id) {
  this.method = method;
  this.id = id;
  Class<?>[] paramClasses = method.getParameterTypes();
  paramCount = paramClasses.length;
  if (paramCount > 0) {
    Class<?> paramClass = paramClasses[0];
    if (Connection.class.isAssignableFrom(paramClass)) {
      hasConnectionParam = true;
      paramCount--;
    }
  }
  if (paramCount > 0) {
    Class<?> lastArg = paramClasses[paramClasses.length - 1];
    if (lastArg.isArray() && FunctionAlias.isVarArgs(method)) {
      varArgs = true;
      varArgClass = lastArg.getComponentType();
    }
  }
  Class<?> returnClass = method.getReturnType();
  dataType = DataType.getTypeFromClass(returnClass);
}
origin: com.eventsourcing/h2

JavaMethod(Method method, int id) {
  this.method = method;
  this.id = id;
  Class<?>[] paramClasses = method.getParameterTypes();
  paramCount = paramClasses.length;
  if (paramCount > 0) {
    Class<?> paramClass = paramClasses[0];
    if (Connection.class.isAssignableFrom(paramClass)) {
      hasConnectionParam = true;
      paramCount--;
    }
  }
  if (paramCount > 0) {
    Class<?> lastArg = paramClasses[paramClasses.length - 1];
    if (lastArg.isArray() && FunctionAlias.isVarArgs(method)) {
      varArgs = true;
      varArgClass = lastArg.getComponentType();
    }
  }
  Class<?> returnClass = method.getReturnType();
  dataType = DataType.getTypeFromClass(returnClass);
}
org.h2.engineFunctionAliasisVarArgs

Javadoc

Checks if the given method takes a variable number of arguments. For Java 1.4 and older, false is returned. Example:
 
public static double mean(double... values) 

Popular methods of FunctionAlias

  • <init>
  • getId
  • getJavaClassName
  • getMethodSignature
  • getName
  • getSQL
  • getSchema
  • invalidate
  • load
  • findJavaMethod
    Find the Java method that matches the arguments.
  • getDatabase
  • getJavaMethods
    Get the Java methods mapped by this function.
  • getDatabase,
  • getJavaMethods,
  • getSource,
  • init,
  • initSchemaObjectBase,
  • isBufferResultSetToLocalTemp,
  • isDeterministic,
  • loadClass,
  • loadFromSource,
  • newInstance

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setScale (BigDecimal)
  • scheduleAtFixedRate (Timer)
  • getApplicationContext (Context)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • BoxLayout (javax.swing)
  • JLabel (javax.swing)
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now