Tabnine Logo
InvokerTransformer.getInstance
Code IndexAdd Tabnine to your IDE (free)

How to use
getInstance
method
in
org.apache.commons.collections.functors.InvokerTransformer

Best Java code snippets using org.apache.commons.collections.functors.InvokerTransformer.getInstance (Showing top 20 results out of 315)

origin: commons-collections/commons-collections

/**
 * Gets a Transformer that invokes a method on the input object.
 * The method must have no parameters. If the input object is null, 
 * null is returned.
 * <p>
 * For example, <code>TransformerUtils.invokerTransformer("getName");</code>
 * will call the <code>getName/code> method on the input object to 
 * determine the transformer result.
 * 
 * @see org.apache.commons.collections.functors.InvokerTransformer
 * 
 * @param methodName  the method name to call on the input object, may not be null
 * @return the transformer
 * @throws IllegalArgumentException if the methodName is null.
 */
public static Transformer invokerTransformer(String methodName){
  return InvokerTransformer.getInstance(methodName, null, null);
}
origin: commons-collections/commons-collections

/**
 * Gets a Transformer that invokes a method on the input object.
 * The method parameters are specified. If the input object is null, 
 * null is returned.
 * 
 * @see org.apache.commons.collections.functors.InvokerTransformer
 * 
 * @param methodName  the name of the method
 * @param paramTypes  the parameter types
 * @param args  the arguments
 * @return the transformer
 * @throws IllegalArgumentException if the method name is null
 * @throws IllegalArgumentException if the paramTypes and args don't match
 */
public static Transformer invokerTransformer(String methodName, Class[] paramTypes, Object[] args){
  return InvokerTransformer.getInstance(methodName, paramTypes, args);
}
origin: wildfly/wildfly

/**
 * Gets a Transformer that invokes a method on the input object.
 * The method parameters are specified. If the input object is null, 
 * null is returned.
 * 
 * @see org.apache.commons.collections.functors.InvokerTransformer
 * 
 * @param methodName  the name of the method
 * @param paramTypes  the parameter types
 * @param args  the arguments
 * @return the transformer
 * @throws IllegalArgumentException if the method name is null
 * @throws IllegalArgumentException if the paramTypes and args don't match
 */
public static Transformer invokerTransformer(String methodName, Class[] paramTypes, Object[] args){
  return InvokerTransformer.getInstance(methodName, paramTypes, args);
}
origin: wildfly/wildfly

/**
 * Gets a Transformer that invokes a method on the input object.
 * The method must have no parameters. If the input object is null, 
 * null is returned.
 * <p>
 * For example, <code>TransformerUtils.invokerTransformer("getName");</code>
 * will call the <code>getName/code> method on the input object to 
 * determine the transformer result.
 * 
 * @see org.apache.commons.collections.functors.InvokerTransformer
 * 
 * @param methodName  the method name to call on the input object, may not be null
 * @return the transformer
 * @throws IllegalArgumentException if the methodName is null.
 */
public static Transformer invokerTransformer(String methodName){
  return InvokerTransformer.getInstance(methodName, null, null);
}
origin: commons-collections/commons-collections

/**
 * Creates a Closure that will invoke a specific method on the closure's
 * input object by reflection.
 *
 * @see org.apache.commons.collections.functors.InvokerTransformer
 * @see org.apache.commons.collections.functors.TransformerClosure
 * 
 * @param methodName  the name of the method
 * @return the <code>invoker</code> closure
 * @throws IllegalArgumentException if the method name is null
 */
public static Closure invokerClosure(String methodName) {
  // reuse transformer as it has caching - this is lazy really, should have inner class here
  return asClosure(InvokerTransformer.getInstance(methodName));
}
origin: commons-collections/commons-collections

/**
 * Creates a Closure that will invoke a specific method on the closure's
 * input object by reflection.
 *
 * @see org.apache.commons.collections.functors.InvokerTransformer
 * @see org.apache.commons.collections.functors.TransformerClosure
 * 
 * @param methodName  the name of the method
 * @param paramTypes  the parameter types
 * @param args  the arguments
 * @return the <code>invoker</code> closure
 * @throws IllegalArgumentException if the method name is null
 * @throws IllegalArgumentException if the paramTypes and args don't match
 */
public static Closure invokerClosure(String methodName, Class[] paramTypes, Object[] args) {
  // reuse transformer as it has caching - this is lazy really, should have inner class here
  return asClosure(InvokerTransformer.getInstance(methodName, paramTypes, args));
}
origin: commons-collections/commons-collections

/**
 * Creates a Predicate that invokes a method on the input object.
 * The method must return either a boolean or a non-null Boolean,
 * and have no parameters. If the input object is null, a 
 * PredicateException is thrown.
 * <p>
 * For example, <code>PredicateUtils.invokerPredicate("isEmpty");</code>
 * will call the <code>isEmpty</code> method on the input object to 
 * determine the predicate result.
 * 
 * @see org.apache.commons.collections.functors.InvokerTransformer
 * @see org.apache.commons.collections.functors.TransformerPredicate
 * 
 * @param methodName  the method name to call on the input object, may not be null
 * @return the predicate
 * @throws IllegalArgumentException if the methodName is null.
 */
public static Predicate invokerPredicate(String methodName){
  // reuse transformer as it has caching - this is lazy really, should have inner class here
  return asPredicate(InvokerTransformer.getInstance(methodName));
}
origin: wildfly/wildfly

/**
 * Creates a Closure that will invoke a specific method on the closure's
 * input object by reflection.
 *
 * @see org.apache.commons.collections.functors.InvokerTransformer
 * @see org.apache.commons.collections.functors.TransformerClosure
 * 
 * @param methodName  the name of the method
 * @return the <code>invoker</code> closure
 * @throws IllegalArgumentException if the method name is null
 */
public static Closure invokerClosure(String methodName) {
  // reuse transformer as it has caching - this is lazy really, should have inner class here
  return asClosure(InvokerTransformer.getInstance(methodName));
}
origin: wildfly/wildfly

/**
 * Creates a Closure that will invoke a specific method on the closure's
 * input object by reflection.
 *
 * @see org.apache.commons.collections.functors.InvokerTransformer
 * @see org.apache.commons.collections.functors.TransformerClosure
 * 
 * @param methodName  the name of the method
 * @param paramTypes  the parameter types
 * @param args  the arguments
 * @return the <code>invoker</code> closure
 * @throws IllegalArgumentException if the method name is null
 * @throws IllegalArgumentException if the paramTypes and args don't match
 */
public static Closure invokerClosure(String methodName, Class[] paramTypes, Object[] args) {
  // reuse transformer as it has caching - this is lazy really, should have inner class here
  return asClosure(InvokerTransformer.getInstance(methodName, paramTypes, args));
}
origin: wildfly/wildfly

/**
 * Creates a Predicate that invokes a method on the input object.
 * The method must return either a boolean or a non-null Boolean,
 * and have no parameters. If the input object is null, a 
 * PredicateException is thrown.
 * <p>
 * For example, <code>PredicateUtils.invokerPredicate("isEmpty");</code>
 * will call the <code>isEmpty</code> method on the input object to 
 * determine the predicate result.
 * 
 * @see org.apache.commons.collections.functors.InvokerTransformer
 * @see org.apache.commons.collections.functors.TransformerPredicate
 * 
 * @param methodName  the method name to call on the input object, may not be null
 * @return the predicate
 * @throws IllegalArgumentException if the methodName is null.
 */
public static Predicate invokerPredicate(String methodName){
  // reuse transformer as it has caching - this is lazy really, should have inner class here
  return asPredicate(InvokerTransformer.getInstance(methodName));
}
origin: commons-collections/commons-collections

/**
 * Creates a Predicate that invokes a method on the input object.
 * The method must return either a boolean or a non-null Boolean,
 * and have no parameters. If the input object is null, a 
 * PredicateException is thrown.
 * <p>
 * For example, <code>PredicateUtils.invokerPredicate("isEmpty");</code>
 * will call the <code>isEmpty</code> method on the input object to 
 * determine the predicate result.
 * 
 * @see org.apache.commons.collections.functors.InvokerTransformer
 * @see org.apache.commons.collections.functors.TransformerPredicate
 * 
 * @param methodName  the method name to call on the input object, may not be null
 * @param paramTypes  the parameter types
 * @param args  the arguments
 * @return the predicate
 * @throws IllegalArgumentException if the method name is null
 * @throws IllegalArgumentException if the paramTypes and args don't match
 */
public static Predicate invokerPredicate(String methodName, Class[] paramTypes, Object[] args){
  // reuse transformer as it has caching - this is lazy really, should have inner class here
  return asPredicate(InvokerTransformer.getInstance(methodName, paramTypes, args));
}
origin: wildfly/wildfly

/**
 * Creates a Predicate that invokes a method on the input object.
 * The method must return either a boolean or a non-null Boolean,
 * and have no parameters. If the input object is null, a 
 * PredicateException is thrown.
 * <p>
 * For example, <code>PredicateUtils.invokerPredicate("isEmpty");</code>
 * will call the <code>isEmpty</code> method on the input object to 
 * determine the predicate result.
 * 
 * @see org.apache.commons.collections.functors.InvokerTransformer
 * @see org.apache.commons.collections.functors.TransformerPredicate
 * 
 * @param methodName  the method name to call on the input object, may not be null
 * @param paramTypes  the parameter types
 * @param args  the arguments
 * @return the predicate
 * @throws IllegalArgumentException if the method name is null
 * @throws IllegalArgumentException if the paramTypes and args don't match
 */
public static Predicate invokerPredicate(String methodName, Class[] paramTypes, Object[] args){
  // reuse transformer as it has caching - this is lazy really, should have inner class here
  return asPredicate(InvokerTransformer.getInstance(methodName, paramTypes, args));
}
origin: org.apache.directory.api/api-ldap-client-all

/**
 * Gets a Transformer that invokes a method on the input object.
 * The method parameters are specified. If the input object is null, 
 * null is returned.
 * 
 * @see org.apache.commons.collections.functors.InvokerTransformer
 * 
 * @param methodName  the name of the method
 * @param paramTypes  the parameter types
 * @param args  the arguments
 * @return the transformer
 * @throws IllegalArgumentException if the method name is null
 * @throws IllegalArgumentException if the paramTypes and args don't match
 */
public static Transformer invokerTransformer(String methodName, Class[] paramTypes, Object[] args){
  return InvokerTransformer.getInstance(methodName, paramTypes, args);
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-collections

/**
 * Gets a Transformer that invokes a method on the input object.
 * The method must have no parameters. If the input object is null, 
 * null is returned.
 * <p>
 * For example, <code>TransformerUtils.invokerTransformer("getName");</code>
 * will call the <code>getName/code> method on the input object to 
 * determine the transformer result.
 * 
 * @see org.apache.commons.collections.functors.InvokerTransformer
 * 
 * @param methodName  the method name to call on the input object, may not be null
 * @return the transformer
 * @throws IllegalArgumentException if the methodName is null.
 */
public static Transformer invokerTransformer(String methodName){
  return InvokerTransformer.getInstance(methodName, null, null);
}
origin: org.jboss.eap/wildfly-client-all

/**
 * Creates a Closure that will invoke a specific method on the closure's
 * input object by reflection.
 *
 * @see org.apache.commons.collections.functors.InvokerTransformer
 * @see org.apache.commons.collections.functors.TransformerClosure
 * 
 * @param methodName  the name of the method
 * @return the <code>invoker</code> closure
 * @throws IllegalArgumentException if the method name is null
 */
public static Closure invokerClosure(String methodName) {
  // reuse transformer as it has caching - this is lazy really, should have inner class here
  return asClosure(InvokerTransformer.getInstance(methodName));
}
origin: org.apache.openjpa/openjpa-all

/**
 * Creates a Closure that will invoke a specific method on the closure's
 * input object by reflection.
 *
 * @see org.apache.commons.collections.functors.InvokerTransformer
 * @see org.apache.commons.collections.functors.TransformerClosure
 * 
 * @param methodName  the name of the method
 * @return the <code>invoker</code> closure
 * @throws IllegalArgumentException if the method name is null
 */
public static Closure invokerClosure(String methodName) {
  // reuse transformer as it has caching - this is lazy really, should have inner class here
  return asClosure(InvokerTransformer.getInstance(methodName));
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.commons-collections

/**
 * Creates a Closure that will invoke a specific method on the closure's
 * input object by reflection.
 *
 * @see org.apache.commons.collections.functors.InvokerTransformer
 * @see org.apache.commons.collections.functors.TransformerClosure
 * 
 * @param methodName  the name of the method
 * @return the <code>invoker</code> closure
 * @throws IllegalArgumentException if the method name is null
 */
public static Closure invokerClosure(String methodName) {
  // reuse transformer as it has caching - this is lazy really, should have inner class here
  return asClosure(InvokerTransformer.getInstance(methodName));
}
origin: org.apache.directory.api/api-ldap-client-all

/**
 * Creates a Closure that will invoke a specific method on the closure's
 * input object by reflection.
 *
 * @see org.apache.commons.collections.functors.InvokerTransformer
 * @see org.apache.commons.collections.functors.TransformerClosure
 * 
 * @param methodName  the name of the method
 * @return the <code>invoker</code> closure
 * @throws IllegalArgumentException if the method name is null
 */
public static Closure invokerClosure(String methodName) {
  // reuse transformer as it has caching - this is lazy really, should have inner class here
  return asClosure(InvokerTransformer.getInstance(methodName));
}
origin: com.alibaba.citrus.tool/antx-autoexpand

/**
 * Creates a Closure that will invoke a specific method on the closure's
 * input object by reflection.
 *
 * @see org.apache.commons.collections.functors.InvokerTransformer
 * @see org.apache.commons.collections.functors.TransformerClosure
 * 
 * @param methodName  the name of the method
 * @return the <code>invoker</code> closure
 * @throws IllegalArgumentException if the method name is null
 */
public static Closure invokerClosure(String methodName) {
  // reuse transformer as it has caching - this is lazy really, should have inner class here
  return asClosure(InvokerTransformer.getInstance(methodName));
}
origin: org.apache.directory.api/api-ldap-client-all

/**
 * Creates a Closure that will invoke a specific method on the closure's
 * input object by reflection.
 *
 * @see org.apache.commons.collections.functors.InvokerTransformer
 * @see org.apache.commons.collections.functors.TransformerClosure
 * 
 * @param methodName  the name of the method
 * @param paramTypes  the parameter types
 * @param args  the arguments
 * @return the <code>invoker</code> closure
 * @throws IllegalArgumentException if the method name is null
 * @throws IllegalArgumentException if the paramTypes and args don't match
 */
public static Closure invokerClosure(String methodName, Class[] paramTypes, Object[] args) {
  // reuse transformer as it has caching - this is lazy really, should have inner class here
  return asClosure(InvokerTransformer.getInstance(methodName, paramTypes, args));
}
org.apache.commons.collections.functorsInvokerTransformergetInstance

Javadoc

Gets an instance of this transformer calling a specific method with no arguments.

Popular methods of InvokerTransformer

  • <init>
    Constructor that performs no validation. Use getInstance if you want that.

Popular in Java

  • Making http requests using okhttp
  • getContentResolver (Context)
  • getExternalFilesDir (Context)
  • getSharedPreferences (Context)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • IOException (java.io)
    Signals a general, I/O-related error. Error details may be specified when calling the constructor, a
  • OutputStream (java.io)
    A writable sink for bytes.Most clients will use output streams that write data to the file system (
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • DateTimeFormat (org.joda.time.format)
    Factory that creates instances of DateTimeFormatter from patterns and styles. Datetime formatting i
  • Top 12 Jupyter Notebook extensions
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