Package org.fuin.srcgen4javassist

Examples of org.fuin.srcgen4javassist.SgClass


public class GenerateSupported
{
    /** If in the project folder, creates a java file. */
    public static void main(final String[] args)
    {
        SgClass sgClass = generateClass();
        casFile(sgClass);
    }
View Full Code Here


    }

    private static SgClass generateClass()
    {
        SgClassPool sgPool = new SgClassPool();
        SgClass sgClass =
            new SgClass("public",
                GenerateSupported.class.getPackage().getName(),
                "IsSupported",
                true,
                null);
        SgClass sgPlugin = SgClass.create(sgPool, Plugin.class);
        for (SgClass i : sgPlugin.getInterfaces())
        {
            for (SgMethod m : i.getMethods())
            {
                new SgMethod(sgClass, m.getModifiers(), SgClass.BOOLEAN, m.getName());
                SgMethod sgMethodString =
View Full Code Here

TOP

Related Classes of org.fuin.srcgen4javassist.SgClass

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.