Package jadex.commons
Class SimpleMethodParameterGuesser
- java.lang.Object
-
- jadex.commons.SimpleMethodParameterGuesser
-
- All Implemented Interfaces:
IMethodParameterGuesser
public class SimpleMethodParameterGuesser extends java.lang.Object implements IMethodParameterGuesser
Simple method parameter guesser that uses a parameter guesser to resolve the single parameter guess requests.
-
-
Field Summary
Fields Modifier and Type Field Description protected IParameterGuesser
pguesser
The parameter guesser.
-
Constructor Summary
Constructors Constructor Description SimpleMethodParameterGuesser(IParameterGuesser pguesser)
Create a new guesser.SimpleMethodParameterGuesser(java.util.Collection<?> vals)
Create a new guesser.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IParameterGuesser
getGuesser()
Get the guesser.java.lang.Object[]
guessParameters(java.lang.Class<?>[] ptypes, IParameterGuesser parent)
Guess the parameters of a method call.
-
-
-
Field Detail
-
pguesser
protected IParameterGuesser pguesser
The parameter guesser.
-
-
Constructor Detail
-
SimpleMethodParameterGuesser
public SimpleMethodParameterGuesser(java.util.Collection<?> vals)
Create a new guesser.
-
SimpleMethodParameterGuesser
public SimpleMethodParameterGuesser(IParameterGuesser pguesser)
Create a new guesser.
-
-
Method Detail
-
guessParameters
public java.lang.Object[] guessParameters(java.lang.Class<?>[] ptypes, IParameterGuesser parent)
Guess the parameters of a method call.- Specified by:
guessParameters
in interfaceIMethodParameterGuesser
- Returns:
- The parameters.
-
getGuesser
public IParameterGuesser getGuesser()
Get the guesser.- Returns:
- The guesser.
-
-