Examples of IStructureDatabase


Examples of tod.core.database.structure.IStructureDatabase

    @Override
    public IBehaviorInfo getMethodBehavior(Method method) {
        try {
            String className = method.declaringType().name();
            IStructureDatabase db = this.todSession.getLogBrowser().getStructureDatabase();
            IClassInfo cls = db.getClass(className, false);
            List<Type> argumentTypes = method.argumentTypes();
            ITypeInfo[] args = new ITypeInfo[argumentTypes.size()];
            for (int i = 0; i < argumentTypes.size(); i++) {
                args[i] = db.getType(argumentTypes.get(i).signature(), false);
            }
            ITypeInfo ret = db.getType(method.returnType().signature(), false);
            IBehaviorInfo behavior = cls.getBehavior(method.name(), args, ret);
            return behavior;
        } catch (ClassNotLoadedException ex) {
            return null;
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.