Examples of ClassDescriptor


Examples of com.mobixess.jodb.core.transaction.JODBSession.ClassDescriptor

        {
            JODBSession session = _sessionContainer.getSession();
            Predicate predicate;
            Comparator comparator = null;
            try {
                ClassDescriptor predicateClassDescriptor = session.getDescriptorForClass(predicateClassName);
                predicate = (Predicate) predicateClassDescriptor.newInstance();
                if (comparatorClassName != null) {
                    ClassDescriptor comparatorClassDescriptor = session.getDescriptorForClass(comparatorClassName);
                    comparator = (Comparator) comparatorClassDescriptor.newInstance();
                }
            } catch (Exception e) {
                throw new JodbIOException(e);
            }
            return NQExecutor.getInstance().isOptimizedQuery(_sessionContainer.getSession(), predicate, comparator);
View Full Code Here

Examples of com.mobixess.jodb.core.transaction.JODBSession.ClassDescriptor

        {
            JODBSession session = _sessionContainer.getSession();
            Predicate predicate;
            Comparator comparator = null;
            try {
                ClassDescriptor predicateClassDescriptor = session.getDescriptorForClass(predicateClassName);
                predicate = (Predicate) predicateClassDescriptor.newInstance();
                if (comparatorClassName != null) {
                    ClassDescriptor comparatorClassDescriptor = session.getDescriptorForClass(comparatorClassName);
                    comparator = (Comparator) comparatorClassDescriptor.newInstance();
                }
            } catch (Exception e) {
                throw new JodbIOException(e);
            }
            JODBQueryList objectSet =  (JODBQueryList) NQExecutor.getInstance().execute(_sessionContainer.getSession(), predicate, comparator);
View Full Code Here

Examples of com.mobixess.jodb.core.transaction.JODBSession.ClassDescriptor

            mv.visitEnd();
        }

        private void addVarAccessDelegators() throws ClassNotFoundException{
            Iterator<String> keys = _subjectAnalysisDataContainer._directFieldsAccess.keySet().iterator();
            ClassDescriptor subjectClassDescriptor = _subjectAnalysisDataContainer._predicateSubjectClassDescriptor;
            while (keys.hasNext()) {
                String nextVar = keys.next();
                Type owner = _subjectAnalysisDataContainer._directFieldsAccess.get(nextVar);
                ClassDescriptor ownerClassDescriptor = _subjectAnalysisDataContainer._session.getDescriptorForClass(owner.getClassName());
                if(!owner.getInternalName().equals(_internalClassName)){
                    continue;
                }
                String methodNameBase = "_synthAcc$$$"+nextVar;
                String methodName = methodNameBase;
                int counter = 0;
                while(subjectClassDescriptor.getMethodForName(methodName)!=null){
                    methodName = methodNameBase+counter;
                    counter++;
                }
               
                Field field = ownerClassDescriptor.getFieldForName(nextVar);
                Type returnType = Type.getType(field.getType());
                org.objectweb.asm.commons.Method method = new org.objectweb.asm.commons.Method(methodName,returnType,new Type[0]);
                MethodVisitor mv = super.visitMethod(ACC_PUBLIC, methodName, method.getDescriptor(), null, null);
                int fieldId = ownerClassDescriptor.getFieldIDForName(nextVar);
                writeVarInitCondition(mv, fieldId, nextVar, field.getType());
                writeReturn(mv, field);
                _subjectAnalysisDataContainer._referringMethods.put(composeReferringMethodId(methodName, method.getDescriptor()), fieldId);
                _subjectAnalysisDataContainer._syntheticReferringMethods.put(nextVar, method);
            }
View Full Code Here

Examples of com.mobixess.jodb.core.transaction.JODBSession.ClassDescriptor

            _predicateMethod = predicateMethod;
            _matchMethodDesc = Type.getMethodDescriptor(predicateMethod);
            _methodName = predicateMethod.getName();
            Class predicateClass = predicateMethod.getDeclaringClass();
            _predicateClass = Type.getType(predicateClass);
            ClassDescriptor predicateClassDescriptor = predicateAnalysisDataContainer._session.getDescriptorForClass(predicateClass);
            Field field = predicateClassDescriptor.getOuterRefField();
            if(field!=null){
                _outerClassRefFieldName = field.getName();
            }
            _predicateAnalysisDataContainer = predicateAnalysisDataContainer;
        }
View Full Code Here

Examples of com.mobixess.jodb.core.transaction.JODBSession.ClassDescriptor

                        stackItem = _stack.get(_stack.size()-1);
                        if (_localPredicateSubjectVariables
                                .get(stackItem._localVarId))
                        {
                            Type type = Type.getObjectType(owner);
                            ClassDescriptor ownerDescriptor;
                            try {
                                ownerDescriptor = _predicateAnalysisDataContainer._session.getDescriptorForClass(type.getClassName());
                            } catch (ClassNotFoundException e) {
                                throw new RuntimeException(e);
                            }
                            Type ownerType = Type.getType(ownerDescriptor.getType());
                            Field field = ownerDescriptor.getFieldForName(name);
                            if(field==null){
                                _notEligible = true;
                                break;
                            }
                            Class fieldType = field.getType();
View Full Code Here

Examples of com.mobixess.jodb.core.transaction.JODBSession.ClassDescriptor

                        //_predicateAnalysisDataContainer._fieldByMethodAccessMap.put(name, _methodDecriptor);
                        String methodId = composeReferringMethodId(_methodName, _methodDecriptor);
                        Integer accessField = _predicateAnalysisDataContainer._referringMethods.get(methodId);
                        if(accessField == null){
                            Type type = Type.getObjectType(owner);
                            ClassDescriptor ownerDescriptor;
                            try {
                                ownerDescriptor = _predicateAnalysisDataContainer._session.getDescriptorForClass(type.getClassName());
                            } catch (ClassNotFoundException e) {
                                throw new RuntimeException(e);
                            }
                            int id = ownerDescriptor.getFieldIDForName(name);
//                            Class realOwner = ownerDescriptor.getTopmostFieldOwner(name);
//                            String fieldId = composeFieldId(realOwner.getName(), name, desc);
                            _predicateAnalysisDataContainer._referringMethods.put(methodId, id);
                        }
                    }
View Full Code Here

Examples of com.sun.grid.jgdi.configuration.reflect.ClassDescriptor

        return getProperties(obj, EditorUtil.PROPERTIES_READ_ONLY);
    }

    static List getProperties(GEObject obj, int propScope) {
        List<PropertyDescriptor> propList = new ArrayList<PropertyDescriptor>();
        ClassDescriptor cd = Util.getDescriptor(obj.getClass());
        for (PropertyDescriptor pd : cd.getProperties()) {
            if (EditorUtil.doNotDisplayAttr(obj, pd, propScope)) {
                continue;
            }
            if (isValidPropertyType(pd, propScope)) {
                propList.add(pd);
View Full Code Here

Examples of com.sun.grid.jgdi.configuration.reflect.ClassDescriptor

        return propList;
    }

    static PropertyDescriptor getProperty(GEObject obj, int propScope, String name) {
        List<PropertyDescriptor> propList = new ArrayList<PropertyDescriptor>();
        ClassDescriptor cd = Util.getDescriptor(obj.getClass());
        PropertyDescriptor pd = cd.getProperty(EditorUtil.unifyClientNamesWithAttr(obj, name));
        if (pd == null) {
            return null;
        }
        if (EditorUtil.doNotDisplayAttr(obj, pd, propScope)) {
            return null;
View Full Code Here

Examples of com.vladium.emma.data.ClassDescriptor

   
    TypeVisitor(IMetaData metadata, ICoverageData coveragedata) {
      this.coveragedata = coveragedata;
      this.descriptors = new HashMap();
      for (Iterator i = metadata.iterator(); i.hasNext(); ) {
        ClassDescriptor cd = (ClassDescriptor) i.next();
        descriptors.put(cd.getClassVMName(), cd);
      }
    }
View Full Code Here

Examples of com.volantis.mcs.model.descriptor.ClassDescriptor

    public ListComponent(final GUI gui, final ListProxy listProxy) {
        this.gui = gui;

        ListClassDescriptor descriptor = listProxy.getListClassDescriptor();
        final ClassDescriptor itemDescriptor = descriptor.getItemClassDescriptor();

        GridBagLayout gridBagLayout = new GridBagLayout();
        setLayout(gridBagLayout);

        GridBagConstraints gridBagConstraints = new GridBagConstraints();
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.