public TypeInfo(QName tagName, Type type, Annotation... annotations) {
if(tagName==null || type==null || annotations==null) {
String nullArgs = "";
if(tagName == null) nullArgs = "tagName";
if(type == null) nullArgs += (nullArgs.length() > 0 ? ", type" : "type");
if(annotations == null) nullArgs += (nullArgs.length() > 0 ? ", annotations" : "annotations");
// Messages.ARGUMENT_CANT_BE_NULL.format(nullArgs);
throw new IllegalArgumentException( "Argument(s) \"" + nullArgs + "\" can''t be null.)");
}
this.tagName = new QName(tagName.getNamespaceURI().intern(), tagName.getLocalPart().intern(), tagName.getPrefix());
this.type = type;
if (type instanceof Class && ((Class<?>)type).isPrimitive()) nillable = false;
this.annotations = annotations;
}
TypeInfo.java 文件源码
java
阅读 39
收藏 0
点赞 0
评论 0
项目:OpenJSharp
作者:
评论列表
文章目录