Uses of Interface
org.cojen.maker.ClassMaker
-
Uses of ClassMaker in org.cojen.maker
Methods in org.cojen.maker that return ClassMakerModifier and TypeMethodDescriptionClassMaker.abstract_()Switch this class to be abstract.ClassMaker.addExplicitInnerClass(String fullName, String className) Add an inner class to this class, with an explicitly specified class name.MethodMaker.addExplicitInnerClass(String fullName, String className) Add an inner class to this method, with an explicitly specified class name.ClassMaker.addInnerClass(String className) Add an inner class to this class.MethodMaker.addInnerClass(String className) Add an inner class to this method.ClassMaker.annotation()Indicate that this class is defining an annotation interface.Begin defining another class with the same loader and lookup as this one.static ClassMakerClassMaker.begin()Begin defining a class with an automatically assigned name.static ClassMakerBegin defining a class with the given name, but the actual name will have a suffix applied to ensure uniqueness.static ClassMakerClassMaker.begin(String className, ClassLoader parentLoader) Begin defining a class with the given name, but the actual name will have a suffix applied to ensure uniqueness.static ClassMakerClassMaker.begin(String className, ClassLoader parentLoader, Object key) Begin defining a class with the given name, but the actual name will have a suffix applied to ensure uniqueness.static ClassMakerClassMaker.begin(String className, MethodHandles.Lookup lookup) Begin defining a class with the given name, but the actual name will have a suffix applied to ensure uniqueness.static ClassMakerClassMaker.beginExplicit(String className, ClassLoader parentLoader, Object key) Begin defining a class with an explicitly specified name.static ClassMakerClassMaker.beginExplicit(String className, MethodHandles.Lookup lookup) Begin defining a class with an explicitly specified name.static ClassMakerClassMaker.beginExternal(String className) Begin defining a class intended to be loaded from a file.Maker.classMaker()Returns theClassMakerfor this item, which can also be used as a type specification.ClassMaker.enum_()Indicate that this class is defining an enum.Set a class that this class extends.ClassMaker.final_()Switch this class to be final.Add an interface that this class or interface implements.ClassMaker.interface_()Switch this class to be an interface.Variable.makerType()Returns the type of this variable, if bound to a class which is being made.ClassMaker.permitSubclass(Object subclass) Convert this class into a sealed class by permitting a subclass.ClassMaker.private_()Switch this class to be private.ClassMaker.protected_()Switch this class to be protected.ClassMaker.public_()Switch this class to be public.Define a signature for this member, which is a string for supporting generic types.ClassMaker.sourceFile(String fileName) Set the source file of this class file by adding a source file attribute.ClassMaker.static_()Switch this class to be static.ClassMaker.synthetic()Indicate that this class is synthetic.Methods in org.cojen.maker with parameters of type ClassMakerModifier and TypeMethodDescriptionvoidType.Provider.addConstructors(ClassMaker cm) Fill out the external type by adding all the constructors and setting their access modifiers.voidType.Provider.addFields(ClassMaker cm) Fill out the external type by adding all the fields and setting their access modifiers.voidType.Provider.addMethods(ClassMaker cm) Fill out the external type by adding all the methods and setting their access modifiers.voidType.Provider.init(ClassMaker cm) Initialize the external type by specifying the type hierarchy and access modifiers.