public final class ClassImporter extends Object
Modifier and Type | Field and Description |
---|---|
(package private) static Vector<MethodInfo> |
methods |
(package private) static String[] |
object_methods |
(package private) static boolean |
trace_imported_methods |
Constructor and Description |
---|
ClassImporter() |
Modifier and Type | Method and Description |
---|---|
static MRData |
call(int method_number,
MRData... args)
call a system method with a given number over MRData
|
static int |
find_method_number(String method_name,
Trees args)
return the method number of a system method with a given name over some expressions;
When the method is overloaded, find the most specific (in terms of arg subtyping)
|
static Tree |
find_method(String method_name,
Trees args)
return the method specification of a system method with a given name over some expressions;
When the method is overloaded, find the most specific (in terms of arg subtyping)
|
static void |
importClass(String class_name)
import all Java methods from a given Java class
|
static void |
importMethod(String class_name,
String method_name)
import a Java method with a given name from a given Java class
|
static void |
load_classes() |
static String |
method_name(int method_number) |
static void |
print_methods() |
static Trees |
signature(int method_number) |
static final boolean trace_imported_methods
static final String[] object_methods
static Vector<MethodInfo> methods
public static void load_classes()
public static String method_name(int method_number)
public static Trees signature(int method_number)
public static void importClass(String class_name)
public static void importMethod(String class_name, String method_name)
public static void print_methods()
public static Tree find_method(String method_name, Trees args)
method_name
- the given method nameargs
- the method expressionspublic static int find_method_number(String method_name, Trees args)
method_name
- the given method nameargs
- the method expressionsCopyright © 2013-2016 The Apache Software Foundation. All Rights Reserved.