Top Fields Constructors Methods
org.aspectj.bridge

public Class ReflectionFactory

extends Object
Class Inheritance
Imports
java.lang.reflect.Constructor, java.util.Arrays

Field Summary

Modifier and TypeField and Description
public static final String
private static final Object[]
public static final String

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static Class<?>[]

Returns:

Class[] with types of args or matching null elements
getTypes
(Object[] args)

private static Object
make(Class<?> c, String cname, Object[] args, IMessageHandler errorSink)

Make an object of type c by reflectively loading the class cname and creating an instance using args (if any), signalling errors (if any) to any errorSink.

public static ICommand

Returns:

ICommand compiler or null
makeCommand
(String
the fully-qualified class name of the command to create by reflection (assuming a public no-argument constructor).
cname
,
IMessageHandler errorSink)

Produce a compiler as an ICommand.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ECLIPSEback to summary
public static final String ECLIPSE
NONEback to summary
private static final Object[] NONE
OLD_AJCback to summary
public static final String OLD_AJC

Constructor Detail

ReflectionFactoryback to summary
private ReflectionFactory()

Method Detail

getTypesback to summary
private static Class<?>[] getTypes(Object[] args)
Returns:Class<?>[]

Class[] with types of args or matching null elements

makeback to summary
private static Object make(Class<?> c, String cname, Object[] args, IMessageHandler errorSink)

Make an object of type c by reflectively loading the class cname and creating an instance using args (if any), signalling errors (if any) to any errorSink.

makeCommandback to summary
public static ICommand makeCommand(String cname, IMessageHandler errorSink)

Produce a compiler as an ICommand.

Parameters
cname:String

the fully-qualified class name of the command to create by reflection (assuming a public no-argument constructor).

Returns:ICommand

ICommand compiler or null