|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use SgClass | |
|---|---|
| org.fuin.srcgen4javassist | |
| org.fuin.srcgen4javassist.factory | |
| Uses of SgClass in org.fuin.srcgen4javassist |
|---|
| Fields in org.fuin.srcgen4javassist declared as SgClass | |
|---|---|
static SgClass |
SgClass.BOOLEAN
Simple "boolean" type. |
static SgClass |
SgClass.BYTE
Simple "byte" type. |
static SgClass |
SgClass.CHAR
Simple "char" type. |
static SgClass |
SgClass.DOUBLE
Simple "double" type. |
static SgClass |
SgClass.FLOAT
Simple "float" type. |
static SgClass |
SgClass.INT
Simple "int" type. |
static SgClass |
SgClass.LONG
Simple "long" type. |
static SgClass |
SgClass.OBJECT
Base "Object" type. |
static SgClass |
SgClass.SHORT
Simple "short" type. |
static SgClass |
SgClass.VOID
Simple "void" type. |
| Methods in org.fuin.srcgen4javassist that return SgClass | |
|---|---|
static SgClass |
SgClass.create(SgClassPool pool,
Class<?> clasz)
Creates a model class by analyzing the "real" class. |
static SgClass |
SgClass.create(SgClassPool pool,
String className)
Creates a model class by loading the "real" class with Class.forName(..) |
SgClass |
SgClass.findClassByName(String name)
Find an inner class by it's name. |
SgClass |
SgClassPool.get(String className)
Returns a class from the internal cache. |
SgClass |
SgClass.getEnclosingClass()
Returns the enclosing class. |
static SgClass |
SgClass.getNonPrimitiveClass(SgClassPool pool,
SgClass primitive)
Returns the corresponding class for a primitive. |
SgClass |
SgField.getOwner()
Returns the type this field belongs to. |
SgClass |
SgBehavior.getOwner()
Returns the class the behavior belongs to. |
SgClass |
SgMethod.getReturnType()
Return the return type of the method. |
SgClass |
SgClass.getSuperClass()
Returns the super class. |
SgClass |
SgVariable.getType()
Returns the type of the field. |
| Methods in org.fuin.srcgen4javassist that return types with arguments of type SgClass | |
|---|---|
List<SgClass> |
SgClass.getClasses()
Returns a list of all inner class. |
List<SgClass> |
SgBehavior.getExceptions()
Returns the list of exceptions thrown by the constructor/method. |
List<SgClass> |
SgClass.getInterfaces()
Returns a list of all interfaces. |
| Methods in org.fuin.srcgen4javassist with parameters of type SgClass | |
|---|---|
void |
SgClass.addClass(SgClass clasz)
Adds an inner to this class. |
void |
SgBehavior.addException(SgClass clasz)
Adds an exception to the list. |
void |
SgClass.addInterface(SgClass intf)
Add an interface to the class. |
static void |
SgUtils.addToStringMethod(SgClassPool pool,
SgClass clasz,
List<SgField> fields)
Creates an toString() method with all fields. |
Class |
ByteCodeGenerator.createClass(SgClass modelClass)
Generates the byte code for a model class and returns it. |
Object |
ByteCodeGenerator.createInstance(SgClass clasz)
Creates an instance from a model class with it's no argument constructor and maps all exceptions into RuntimeException. |
Object |
ByteCodeGenerator.createInstance(SgClass clasz,
Class[] argTypes,
Object[] initArgs)
Creates an instance from a model class mapping all exceptions into RuntimeException. |
static SgClass |
SgClass.getNonPrimitiveClass(SgClassPool pool,
SgClass primitive)
Returns the corresponding class for a primitive. |
static String |
SgClass.getToPrimitiveMethod(SgClass clasz)
Returns the name of the conversion method to return a primitive type value from the following types: Boolean,
Byte, Character,
Short, Integer,
Long, Float or
Double. |
boolean |
SgClass.hasInterface(SgClass intf)
Checks if this class or any of it's super classes has a given interface. |
Class |
ByteCodeGenerator.loadClass(SgClass modelClass)
Tries to load the model class calling Class.forName(..) |
void |
SgClassPool.put(SgClass clasz)
Adds a class to the internal cache. |
| Constructors in org.fuin.srcgen4javassist with parameters of type SgClass | |
|---|---|
SgArgument(SgBehavior owner,
SgClass type,
String name)
Constructor with type and name. |
|
SgArgument(SgBehavior owner,
String modifiers,
SgClass type,
String name)
Constructor with type and name. |
|
SgBehavior(SgClass owner,
String modifiers)
Constructor with class and modifiers. |
|
SgClass(String modifiers,
String packageName,
String simpleName,
boolean isinterface,
SgClass enclosingClass)
Constructor without super class. |
|
SgClass(String modifiers,
String packageName,
String simpleName,
SgClass superClass,
boolean isinterface,
SgClass enclosingClass)
Constructor with super class. |
|
SgConstructor(SgClass owner)
Constructor with class. |
|
SgConstructor(SgClass owner,
String modifiers)
Constructor with class and modifiers. |
|
SgField(SgClass owner,
String modifiers,
SgClass type,
String name,
String initializer)
Constructor with modifiers, class and name. |
|
SgMethod(SgClass owner,
String modifiers,
SgClass returnType,
String name)
Constructor. |
|
SgVariable(String modifiers,
SgClass type,
String name)
Constructor with modifiers, class and name. |
|
| Uses of SgClass in org.fuin.srcgen4javassist.factory |
|---|
| Methods in org.fuin.srcgen4javassist.factory that return SgClass | |
|---|---|
SgClass |
ImplementationFactory.create(String implPackageName,
String implClassName,
ImplementationFactoryListener listener,
Class<?>... intf)
Creates an implementation of the interface. |
SgClass |
ImplementationFactory.create(String implPackageName,
String implClassName,
SgClass superClass,
SgClass enclosingClass,
ImplementationFactoryListener listener,
Class<?>... intf)
Creates an implementation of the interface. |
SgClass |
VarListImplementationFactory.create(String implPackageName,
String implClassName,
SgClass superClass,
SgClass enclosingClass,
List<SgVariable> vars,
ImplementationFactoryListener listener,
Class<?>... intf)
Creates an implementation of the interface. |
| Methods in org.fuin.srcgen4javassist.factory with parameters of type SgClass | |
|---|---|
void |
ImplementationFactoryListener.afterClassCreated(SgClass clasz)
The class was just created and implements the interface. |
SgClass |
ImplementationFactory.create(String implPackageName,
String implClassName,
SgClass superClass,
SgClass enclosingClass,
ImplementationFactoryListener listener,
Class<?>... intf)
Creates an implementation of the interface. |
SgClass |
VarListImplementationFactory.create(String implPackageName,
String implClassName,
SgClass superClass,
SgClass enclosingClass,
List<SgVariable> vars,
ImplementationFactoryListener listener,
Class<?>... intf)
Creates an implementation of the interface. |
|
||||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||