Package | Description |
---|---|
org.nutz.castor.castor |
Nutz内置的全部的castor实现
|
org.nutz.dao.entity |
抽象的Pojo配置信息描述
|
org.nutz.dao.impl.entity |
Pojo配置信息实现
|
org.nutz.dao.impl.entity.field | |
org.nutz.dao.impl.entity.info | |
org.nutz.dao.jdbc | |
org.nutz.ioc.aop | |
org.nutz.ioc.aop.impl | |
org.nutz.ioc.weaver | |
org.nutz.json |
让Json转换仅需一条语句
|
org.nutz.json.entity | |
org.nutz.json.impl | |
org.nutz.lang |
Java语法糖,封装众多常用实用方法
|
org.nutz.mvc.adaptor.injector | |
org.nutz.service |
服务类,Dao包的延伸
|
Modifier and Type | Method and Description |
---|---|
Mirror<?> |
Class2Mirror.cast(Class src,
Class toType,
String... args) |
Mirror |
Object2Mirror.cast(Object src,
Class<?> toType,
String... args) |
Mirror<?> |
String2Mirror.cast(String src,
Class<?> toType,
String... args) |
Modifier and Type | Method and Description |
---|---|
String |
Mirror2String.cast(Mirror src,
Class<?> toType,
String... args) |
Class |
Mirror2Class.cast(Mirror src,
Class toType,
String... args) |
Modifier and Type | Method and Description |
---|---|
Mirror<T> |
Entity.getMirror() |
Mirror<?> |
EntityField.getTypeMirror() |
Modifier and Type | Method and Description |
---|---|
Mirror<T> |
NutEntity.getMirror() |
Modifier and Type | Method and Description |
---|---|
Mirror<?> |
AbstractEntityField.getTypeMirror() |
Modifier and Type | Method and Description |
---|---|
Mirror<?> |
MappingInfo.getFieldTypeMirror() |
Modifier and Type | Method and Description |
---|---|
static ValueAdaptor |
Jdbcs.getAdaptor(Mirror<?> mirror) |
Modifier and Type | Method and Description |
---|---|
<T> Mirror<T> |
MirrorFactory.getMirror(Class<T> type,
String name)
根据一个类型生成 Mirror 对象
|
Modifier and Type | Method and Description |
---|---|
<T> Mirror<T> |
DefaultMirrorFactory.getMirror(Class<T> type,
String name) |
Modifier and Type | Method and Description |
---|---|
static FieldInjector |
FieldInjector.create(Mirror<?> mirror,
String fieldName,
ValueProxy vp,
boolean optional) |
Modifier and Type | Method and Description |
---|---|
static JsonEntity |
Json.getEntity(Mirror<?> mirror)
获取一个 Json 实体
|
List<JsonEntityField> |
AbstractJsonEntityFieldMaker.make(Mirror<?> mirror) |
List<JsonEntityField> |
JsonEntityFieldMaker.make(Mirror<?> mirror) |
abstract JsonEntityField |
AbstractJsonEntityFieldMaker.make(Mirror<?> mirror,
Field field) |
JsonEntityField |
AbstractJsonEntityFieldMaker.make(Mirror<?> mirror,
Method method) |
Modifier and Type | Method and Description |
---|---|
Mirror<?> |
JsonEntityField.getMirror() |
Modifier and Type | Method and Description |
---|---|
static JsonEntityField |
JsonEntityField.eval(Mirror<?> mirror,
Field fld) |
static JsonEntityField |
JsonEntityField.eval(Mirror<?> mirror,
String name,
Method getter,
Method setter)
根据名称获取字段实体, 默认以set优先
|
static JsonEntityField |
JsonEntityField.eval(Mirror<?> mirror,
String name,
Type type,
Ejecting ejecting,
Injecting injecting) |
Constructor and Description |
---|
JsonEntity(Mirror<?> mirror) |
Modifier and Type | Method and Description |
---|---|
JsonEntityField |
JsonEntityFieldMakerImpl.make(Mirror<?> mirror,
Field field) |
JsonEntityField |
JsonEntityFieldMakerImpl.make(Mirror<?> mirror,
Method method) |
Modifier and Type | Method and Description |
---|---|
static <T> Mirror<T> |
Mirror.me(Class<T> classOfT)
包裹一个类
|
static <T> Mirror<T> |
Mirror.me(Class<T> classOfT,
TypeExtractor typeExtractor)
包裹一个类,并设置自定义的类型提炼逻辑
|
static <T> Mirror<T> |
Mirror.me(T obj)
生成一个对象的 Mirror
|
static <T> Mirror<T> |
Mirror.me(Type type)
根据Type生成Mirror, 如果type是
ParameterizedType 类型的对象可以使用 getGenericsTypes() 方法取得它的泛型数组 |
Mirror<T> |
Mirror.setTypeExtractor(TypeExtractor typeExtractor)
设置自己的类型提炼逻辑
|
Modifier and Type | Method and Description |
---|---|
Class<?>[] |
TypeExtractor.extract(Mirror<?> mirror) |
static Type |
Lang.getFieldType(Mirror<?> me,
Field field)
当一个类使用
|
static Type |
Lang.getFieldType(Mirror<?> me,
String field)
当一个类使用
|
static Type |
Lang.getGenericsType(Mirror<?> me,
Type type)
当一个类使用
|
static Type[] |
Lang.getMethodParamTypes(Mirror<?> me,
Method method)
当一个类使用
|
Modifier and Type | Field and Description |
---|---|
protected Mirror<?> |
ObjectNavlPairInjector.mirror |
protected Mirror<?> |
ObjectPairInjector.mirror |
Modifier and Type | Method and Description |
---|---|
Mirror<T> |
EntityService.mirror()
获取实体类型的反射封装类实例
|
Copyright © 2017. All rights reserved.