/** * Create a new metadata, populate it with default information, add it to the repository, and * return it. * * @param access * the access type to use in populating metadata */ public ClassMetaData addMetaData(Class<?> cls, int access) { return addMetaData(cls, access, false); }
/** * Create a new metadata, populate it with default information, add it to the repository, and * return it. * * @param access * the access type to use in populating metadata */ public ClassMetaData addMetaData(Class<?> cls, int access) { return addMetaData(cls, access, false); }
/** * Create a new metadata, populate it with default information, add it to the repository, and * return it. * * @param access * the access type to use in populating metadata */ public ClassMetaData addMetaData(Class<?> cls, int access) { return addMetaData(cls, access, false); }
/** * Create a new metadata, populate it with default information, add it to the repository, and * return it. * * @param access * the access type to use in populating metadata */ public ClassMetaData addMetaData(Class<?> cls, int access) { return addMetaData(cls, access, false); }
/** * Create a new metadata, populate it with default information, add it to the repository, and * return it. Use the default access type. */ public ClassMetaData addMetaData(Class<?> cls) { return addMetaData(cls, AccessCode.UNKNOWN); }
/** * Create a new metadata, populate it with default information, add it to * the repository, and return it. Use the default access type. */ public ClassMetaData addMetaData(Class cls) { return addMetaData(cls, ClassMetaData.ACCESS_UNKNOWN); }
/** * Create a new metadata, populate it with default information, add it to the repository, and * return it. Use the default access type. */ public ClassMetaData addMetaData(Class<?> cls) { return addMetaData(cls, AccessCode.UNKNOWN); }
/** * Create a new metadata, populate it with default information, add it to the repository, and * return it. Use the default access type. */ public ClassMetaData addMetaData(Class<?> cls) { return addMetaData(cls, AccessCode.UNKNOWN); }
/** * Create a new metadata, populate it with default information, add it to the repository, and * return it. Use the default access type. */ public ClassMetaData addMetaData(Class<?> cls) { return addMetaData(cls, AccessCode.UNKNOWN); }
private void add(Class cls) { // assume all user-defined types are PCs ClassMetaData meta = getRepository().addMetaData(cls); FieldMetaData[] fmds = meta.getDeclaredFields(); for (int i = 0; i < fmds.length; i++) { if (fmds[i].getDeclaredTypeCode() == JavaTypes.OBJECT && fmds[i].getDeclaredType() != Object.class) fmds[i].setDeclaredTypeCode(JavaTypes.PC); } meta.setSource(_file, meta.getSourceType(), _file == null ? "" : _file.getPath()); _flush = true; }
private void add(Class cls) { // assume all user-defined types are PCs ClassMetaData meta = getRepository().addMetaData(cls); FieldMetaData[] fmds = meta.getDeclaredFields(); for (int i = 0; i < fmds.length; i++) { if (fmds[i].getDeclaredTypeCode() == JavaTypes.OBJECT && fmds[i].getDeclaredType() != Object.class) fmds[i].setDeclaredTypeCode(JavaTypes.PC); } meta.setSource(_file, meta.getSourceType(), _file == null ? "" : _file.getPath()); _flush = true; }
private void add(Class cls) { // assume all user-defined types are PCs ClassMetaData meta = getRepository().addMetaData(cls); FieldMetaData[] fmds = meta.getDeclaredFields(); for (int i = 0; i < fmds.length; i++) { if (fmds[i].getDeclaredTypeCode() == JavaTypes.OBJECT && fmds[i].getDeclaredType() != Object.class) fmds[i].setDeclaredTypeCode(JavaTypes.PC); } meta.setSource(_file, meta.getSourceType(), _file == null ? "" : _file.getPath()); _flush = true; }
private void add(Class cls) { // assume all user-defined types are PCs ClassMetaData meta = getRepository().addMetaData(cls); FieldMetaData[] fmds = meta.getDeclaredFields(); for (int i = 0; i < fmds.length; i++) { if (fmds[i].getDeclaredTypeCode() == JavaTypes.OBJECT && fmds[i].getDeclaredType() != Object.class) fmds[i].setDeclaredTypeCode(JavaTypes.PC); } meta.setSource(_file, meta.getSourceType(), _file == null ? "" : _file.getPath()); _flush = true; }
private void add(Class cls) { // assume all user-defined types are PCs ClassMetaData meta = getRepository().addMetaData(cls); FieldMetaData[] fmds = meta.getDeclaredFields(); for (int i = 0; i < fmds.length; i++) { if (fmds[i].getDeclaredTypeCode() == JavaTypes.OBJECT && fmds[i].getDeclaredType() != Object.class) fmds[i].setDeclaredTypeCode(JavaTypes.PC); } meta.setSource(_file, meta.getSourceType()); _flush = true; }
/** * Find or create metadata for the given type. May return null if * this class has already been parsed fully. */ private ClassMetaData getMetaData() { ClassMetaData meta = getRepository().getCachedMetaData(_cls); if (meta != null && ((isMetaDataMode() && (meta.getSourceMode() & MODE_META) != 0) || (isMappingMode() && (meta.getSourceMode() & MODE_MAPPING) != 0))) { if (_log.isWarnEnabled()) _log.warn(_loc.get("dup-metadata", _cls.getName())); return null; } if (meta == null) { meta = getRepository().addMetaData(_cls); meta.setEnvClassLoader(_envLoader); meta.setSourceMode(MODE_NONE); meta.setSource(getSourceFile(), meta.SRC_ANNOTATIONS); } return meta; }
meta = repos.addMetaData(_cls, access); meta.setEnvClassLoader(_envLoader); meta.setSourceMode(MODE_NONE);
/** * Find or create metadata for the given type. May return null if * this class has already been parsed fully. */ private ClassMetaData getMetaData() { ClassMetaData meta = getRepository().getCachedMetaData(_cls); if (meta != null && ((isMetaDataMode() && (meta.getSourceMode() & MODE_META) != 0) || (isMappingMode() && (meta.getSourceMode() & MODE_MAPPING) != 0) ) ) { if (_log.isWarnEnabled()) { _log.warn(_loc.get("dup-metadata", _cls.getName())); } if(_log.isTraceEnabled()) { _log.trace(String.format( "MetaData originally obtained from file: %s under mode :%d with scope %s, and type :%d", meta.getSourceName(), meta.getSourceMode(), meta.getSourceScope(), meta.getSourceType())); } return null; } if (meta == null) { meta = getRepository().addMetaData(_cls, getAccessCode(_cls)); meta.setEnvClassLoader(_envLoader); meta.setSourceMode(MODE_NONE); meta.setSource(getSourceFile(), SourceTracker.SRC_ANNOTATIONS, getSourceFile() == null ? "" : getSourceFile().getPath()); } return meta; }
/** * Find or create metadata for the given type. May return null if * this class has already been parsed fully. */ private ClassMetaData getMetaData() { ClassMetaData meta = getRepository().getCachedMetaData(_cls); if (meta != null && ((isMetaDataMode() && (meta.getSourceMode() & MODE_META) != 0) || (isMappingMode() && (meta.getSourceMode() & MODE_MAPPING) != 0) ) ) { if (_log.isWarnEnabled()) { _log.warn(_loc.get("dup-metadata", _cls.getName())); } if(_log.isTraceEnabled()) { _log.trace(String.format( "MetaData originally obtained from file: %s under mode :%d with scope %s, and type :%d", meta.getSourceName(), meta.getSourceMode(), meta.getSourceScope(), meta.getSourceType())); } return null; } if (meta == null) { meta = getRepository().addMetaData(_cls, getAccessCode(_cls)); meta.setEnvClassLoader(_envLoader); meta.setSourceMode(MODE_NONE); meta.setSource(getSourceFile(), SourceTracker.SRC_ANNOTATIONS, getSourceFile() == null ? "" : getSourceFile().getPath()); } return meta; }
/** * Find or create metadata for the given type. May return null if * this class has already been parsed fully. */ private ClassMetaData getMetaData() { ClassMetaData meta = getRepository().getCachedMetaData(_cls); if (meta != null && ((isMetaDataMode() && (meta.getSourceMode() & MODE_META) != 0) || (isMappingMode() && (meta.getSourceMode() & MODE_MAPPING) != 0) ) ) { if (_log.isWarnEnabled()) { _log.warn(_loc.get("dup-metadata", _cls.getName())); } if(_log.isTraceEnabled()) { _log.trace(String.format( "MetaData originally obtained from file: %s under mode :%d with scope %s, and type :%d", meta.getSourceName(), meta.getSourceMode(), meta.getSourceScope(), meta.getSourceType())); } return null; } if (meta == null) { meta = getRepository().addMetaData(_cls, getAccessCode(_cls)); meta.setEnvClassLoader(_envLoader); meta.setSourceMode(MODE_NONE); meta.setSource(getSourceFile(), SourceTracker.SRC_ANNOTATIONS, getSourceFile() == null ? "" : getSourceFile().getPath()); } return meta; }
/** * Find or create metadata for the given type. May return null if * this class has already been parsed fully. */ private ClassMetaData getMetaData() { ClassMetaData meta = getRepository().getCachedMetaData(_cls); if (meta != null && ((isMetaDataMode() && (meta.getSourceMode() & MODE_META) != 0) || (isMappingMode() && (meta.getSourceMode() & MODE_MAPPING) != 0) ) ) { if (_log.isWarnEnabled()) { _log.warn(_loc.get("dup-metadata", _cls.getName())); } if(_log.isTraceEnabled()) { _log.trace(String.format( "MetaData originally obtained from file: %s under mode :%d with scope %s, and type :%d", meta.getSourceName(), meta.getSourceMode(), meta.getSourceScope(), meta.getSourceType())); } return null; } if (meta == null) { meta = getRepository().addMetaData(_cls, getAccessCode(_cls)); meta.setEnvClassLoader(_envLoader); meta.setSourceMode(MODE_NONE); meta.setSource(getSourceFile(), SourceTracker.SRC_ANNOTATIONS, getSourceFile() == null ? "" : getSourceFile().getPath()); } return meta; }