Package com.mobixess.jodb.core.transaction.JODBSession

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


                        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

                        //_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

TOP

Related Classes of com.mobixess.jodb.core.transaction.JODBSession.ClassDescriptor

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.