void bind() { CClassInfo ci = getClassInfo(); assert ci!=null || attributes.isEmpty(); for( CPropertyInfo p : attributes ) CClassInfo child = owner.getOrCreateElement(e.name).getClassInfo(); assert child!=null; // we are requiring them to be classes. p.getTypes().add(new CTypeRef(child,new QName("",e.name),null,false,null)); if(ref.getClassInfo()!=null) refType = ref.getClassInfo(); else { refType = ref.getConversion().getInfo();
void bind() { CClassInfo ci = getClassInfo(); assert ci!=null || attributes.isEmpty(); for( CPropertyInfo p : attributes ) CClassInfo child = owner.getOrCreateElement(e.name).getClassInfo(); assert child!=null; // we are requiring them to be classes. p.getTypes().add(new CTypeRef(child,new QName("",e.name),null,false,null)); if(ref.getClassInfo()!=null) refType = ref.getClassInfo(); else { refType = ref.getConversion().getInfo();
void bind() { CClassInfo ci = getClassInfo(); assert ci!=null || attributes.isEmpty(); for( CPropertyInfo p : attributes ) CClassInfo child = owner.getOrCreateElement(e.name).getClassInfo(); assert child!=null; // we are requiring them to be classes. p.getTypes().add(new CTypeRef(child,new QName("",e.name),null,false,null)); if(ref.getClassInfo()!=null) refType = ref.getClassInfo(); else { refType = ref.getConversion().getInfo();
void bind() { CClassInfo ci = getClassInfo(); assert ci!=null || attributes.isEmpty(); for( CPropertyInfo p : attributes ) CClassInfo child = owner.getOrCreateElement(e.name).getClassInfo(); assert child!=null; // we are requiring them to be classes. p.getTypes().add(new CTypeRef(child,new QName("",e.name),null,false,null)); if(ref.getClassInfo()!=null) refType = ref.getClassInfo(); else { refType = ref.getConversion().getInfo();
void bind() { CClassInfo ci = getClassInfo(); assert ci!=null || attributes.isEmpty(); for( CPropertyInfo p : attributes ) CClassInfo child = owner.getOrCreateElement(e.name).getClassInfo(); assert child!=null; // we are requiring them to be classes. p.getTypes().add(new CTypeRef(child,new QName("",e.name),null,false,null)); if(ref.getClassInfo()!=null) refType = ref.getClassInfo(); else { refType = ref.getConversion().getInfo();
/** * Creates constructor declarations as specified in the * binding information. * * <p> * Also checks that the binding file does not contain * declarations for non-existent elements. */ private void processConstructorDeclarations() { for( BIElement decl: bindInfo.elements() ) { Element e = elements.get(decl.name()); if(e==null) { error(decl.getSourceLocation(), Messages.ERR_BINDINFO_NON_EXISTENT_ELEMENT_DECLARATION,decl.name()); continue; // continue to process next declaration } if(!decl.isClass()) // only element-class declaration has constructor definitions continue; decl.declareConstructors(e.getClassInfo()); } }
/** * Creates constructor declarations as specified in the * binding information. * * <p> * Also checks that the binding file does not contain * declarations for non-existent elements. */ private void processConstructorDeclarations() { for( BIElement decl: bindInfo.elements() ) { Element e = elements.get(decl.name()); if(e==null) { error(decl.getSourceLocation(), Messages.ERR_BINDINFO_NON_EXISTENT_ELEMENT_DECLARATION,decl.name()); continue; // continue to process next declaration } if(!decl.isClass()) // only element-class declaration has constructor definitions continue; decl.declareConstructors(e.getClassInfo()); } }
/** * Creates constructor declarations as specified in the * binding information. * * <p> * Also checks that the binding file does not contain * declarations for non-existent elements. */ private void processConstructorDeclarations() { for( BIElement decl: bindInfo.elements() ) { Element e = elements.get(decl.name()); if(e==null) { error(decl.getSourceLocation(), Messages.ERR_BINDINFO_NON_EXISTENT_ELEMENT_DECLARATION,decl.name()); continue; // continue to process next declaration } if(!decl.isClass()) // only element-class declaration has constructor definitions continue; decl.declareConstructors(e.getClassInfo()); } }
/** * Creates constructor declarations as specified in the * binding information. * * <p> * Also checks that the binding file does not contain * declarations for non-existent elements. */ private void processConstructorDeclarations() { for( BIElement decl: bindInfo.elements() ) { Element e = elements.get(decl.name()); if(e==null) { error(decl.getSourceLocation(), Messages.ERR_BINDINFO_NON_EXISTENT_ELEMENT_DECLARATION,decl.name()); continue; // continue to process next declaration } if(!decl.isClass()) // only element-class declaration has constructor definitions continue; decl.declareConstructors(e.getClassInfo()); } }
/** * Creates constructor declarations as specified in the * binding information. * * <p> * Also checks that the binding file does not contain * declarations for non-existent elements. */ private void processConstructorDeclarations() { for( BIElement decl: bindInfo.elements() ) { Element e = elements.get(decl.name()); if(e==null) { error(decl.getSourceLocation(), Messages.ERR_BINDINFO_NON_EXISTENT_ELEMENT_DECLARATION,decl.name()); continue; // continue to process next declaration } if(!decl.isClass()) // only element-class declaration has constructor definitions continue; decl.declareConstructors(e.getClassInfo()); } }