本文整理汇总了Java中org.jf.util.ImmutableUtils.nullToEmptySet方法的典型用法代码示例。如果您正苦于以下问题:Java ImmutableUtils.nullToEmptySet方法的具体用法?Java ImmutableUtils.nullToEmptySet怎么用?Java ImmutableUtils.nullToEmptySet使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.jf.util.ImmutableUtils
的用法示例。
在下文中一共展示了ImmutableUtils.nullToEmptySet方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: ImmutableClassDef
import org.jf.util.ImmutableUtils; //导入方法依赖的package包/类
public ImmutableClassDef(@Nonnull String type,
int accessFlags,
@Nullable String superclass,
@Nullable ImmutableSet<String> interfaces,
@Nullable String sourceFile,
@Nullable ImmutableSet<? extends ImmutableAnnotation> annotations,
@Nullable ImmutableSortedSet<? extends ImmutableField> staticFields,
@Nullable ImmutableSortedSet<? extends ImmutableField> instanceFields,
@Nullable ImmutableSortedSet<? extends ImmutableMethod> directMethods,
@Nullable ImmutableSortedSet<? extends ImmutableMethod> virtualMethods) {
this.type = type;
this.accessFlags = accessFlags;
this.superclass = superclass;
this.interfaces = ImmutableUtils.nullToEmptySet(interfaces);
this.sourceFile = sourceFile;
this.annotations = ImmutableUtils.nullToEmptySet(annotations);
this.staticFields = ImmutableUtils.nullToEmptySortedSet(staticFields);
this.instanceFields = ImmutableUtils.nullToEmptySortedSet(instanceFields);
this.directMethods = ImmutableUtils.nullToEmptySortedSet(directMethods);
this.virtualMethods = ImmutableUtils.nullToEmptySortedSet(virtualMethods);
}
示例2: ImmutableClassDef
import org.jf.util.ImmutableUtils; //导入方法依赖的package包/类
public ImmutableClassDef( String type,
int accessFlags,
String superclass,
ImmutableList<String> interfaces,
String sourceFile,
ImmutableSet<? extends ImmutableAnnotation> annotations,
ImmutableSortedSet<? extends ImmutableField> staticFields,
ImmutableSortedSet<? extends ImmutableField> instanceFields,
ImmutableSortedSet<? extends ImmutableMethod> directMethods,
ImmutableSortedSet<? extends ImmutableMethod> virtualMethods) {
this.type = type;
this.accessFlags = accessFlags;
this.superclass = superclass;
this.interfaces = ImmutableUtils.nullToEmptyList(interfaces);
this.sourceFile = sourceFile;
this.annotations = ImmutableUtils.nullToEmptySet(annotations);
this.staticFields = ImmutableUtils.nullToEmptySortedSet(staticFields);
this.instanceFields = ImmutableUtils.nullToEmptySortedSet(instanceFields);
this.directMethods = ImmutableUtils.nullToEmptySortedSet(directMethods);
this.virtualMethods = ImmutableUtils.nullToEmptySortedSet(virtualMethods);
}
示例3: ImmutableClassDef
import org.jf.util.ImmutableUtils; //导入方法依赖的package包/类
public ImmutableClassDef(@Nonnull String type,
int accessFlags,
@Nullable String superclass,
@Nullable ImmutableList<String> interfaces,
@Nullable String sourceFile,
@Nullable ImmutableSet<? extends ImmutableAnnotation> annotations,
@Nullable ImmutableSortedSet<? extends ImmutableField> staticFields,
@Nullable ImmutableSortedSet<? extends ImmutableField> instanceFields,
@Nullable ImmutableSortedSet<? extends ImmutableMethod> directMethods,
@Nullable ImmutableSortedSet<? extends ImmutableMethod> virtualMethods) {
this.type = type;
this.accessFlags = accessFlags;
this.superclass = superclass;
this.interfaces = ImmutableUtils.nullToEmptyList(interfaces);
this.sourceFile = sourceFile;
this.annotations = ImmutableUtils.nullToEmptySet(annotations);
this.staticFields = ImmutableUtils.nullToEmptySortedSet(staticFields);
this.instanceFields = ImmutableUtils.nullToEmptySortedSet(instanceFields);
this.directMethods = ImmutableUtils.nullToEmptySortedSet(directMethods);
this.virtualMethods = ImmutableUtils.nullToEmptySortedSet(virtualMethods);
}
示例4: ImmutableAnnotation
import org.jf.util.ImmutableUtils; //导入方法依赖的package包/类
public ImmutableAnnotation(int visibility,
@Nonnull String type,
@Nullable ImmutableSet<? extends ImmutableAnnotationElement> elements) {
this.visibility = visibility;
this.type = type;
this.elements = ImmutableUtils.nullToEmptySet(elements);
}
示例5: ImmutableMethod
import org.jf.util.ImmutableUtils; //导入方法依赖的package包/类
public ImmutableMethod(@Nonnull String definingClass,
@Nonnull String name,
@Nullable ImmutableList<? extends ImmutableMethodParameter> parameters,
@Nonnull String returnType,
int accessFlags,
@Nullable ImmutableSet<? extends ImmutableAnnotation> annotations,
@Nullable ImmutableMethodImplementation methodImplementation) {
this.definingClass = definingClass;
this.name = name;
this.parameters = ImmutableUtils.nullToEmptyList(parameters);
this.returnType = returnType;
this.accessFlags = accessFlags;
this.annotations = ImmutableUtils.nullToEmptySet(annotations);
this.methodImplementation = methodImplementation;
}
示例6: ImmutableMethodParameter
import org.jf.util.ImmutableUtils; //导入方法依赖的package包/类
public ImmutableMethodParameter(@Nonnull String type,
@Nullable ImmutableSet<? extends ImmutableAnnotation> annotations,
@Nullable String name) {
this.type = type;
this.annotations = ImmutableUtils.nullToEmptySet(annotations);
this.name = name;
}
示例7: ImmutableField
import org.jf.util.ImmutableUtils; //导入方法依赖的package包/类
public ImmutableField(@Nonnull String definingClass,
@Nonnull String name,
@Nonnull String type,
int accessFlags,
@Nullable ImmutableEncodedValue initialValue,
@Nullable ImmutableSet<? extends ImmutableAnnotation> annotations) {
this.definingClass = definingClass;
this.name = name;
this.type = type;
this.accessFlags = accessFlags;
this.initialValue = initialValue;
this.annotations = ImmutableUtils.nullToEmptySet(annotations);
}
示例8: ImmutableMethod
import org.jf.util.ImmutableUtils; //导入方法依赖的package包/类
public ImmutableMethod( String definingClass,
String name,
ImmutableList<? extends ImmutableMethodParameter> parameters,
String returnType,
int accessFlags,
ImmutableSet<? extends ImmutableAnnotation> annotations,
ImmutableMethodImplementation methodImplementation) {
this.definingClass = definingClass;
this.name = name;
this.parameters = ImmutableUtils.nullToEmptyList(parameters);
this.returnType = returnType;
this.accessFlags = accessFlags;
this.annotations = ImmutableUtils.nullToEmptySet(annotations);
this.methodImplementation = methodImplementation;
}
示例9: ImmutableMethodParameter
import org.jf.util.ImmutableUtils; //导入方法依赖的package包/类
public ImmutableMethodParameter( String type,
ImmutableSet<? extends ImmutableAnnotation> annotations,
String name) {
this.type = type;
this.annotations = ImmutableUtils.nullToEmptySet(annotations);
this.name = name;
}
示例10: ImmutableField
import org.jf.util.ImmutableUtils; //导入方法依赖的package包/类
public ImmutableField( String definingClass,
String name,
String type,
int accessFlags,
ImmutableEncodedValue initialValue,
ImmutableSet<? extends ImmutableAnnotation> annotations) {
this.definingClass = definingClass;
this.name = name;
this.type = type;
this.accessFlags = accessFlags;
this.initialValue = initialValue;
this.annotations = ImmutableUtils.nullToEmptySet(annotations);
}
示例11: ImmutableDexFile
import org.jf.util.ImmutableUtils; //导入方法依赖的package包/类
public ImmutableDexFile(@Nullable ImmutableSet<? extends ImmutableClassDef> classes) {
this.classes = ImmutableUtils.nullToEmptySet(classes);
}
示例12: ImmutableAnnotationEncodedValue
import org.jf.util.ImmutableUtils; //导入方法依赖的package包/类
public ImmutableAnnotationEncodedValue(@Nonnull String type,
@Nullable ImmutableSet<? extends ImmutableAnnotationElement> elements) {
this.type = type;
this.elements = ImmutableUtils.nullToEmptySet(elements);
}
示例13: ImmutableDexFile
import org.jf.util.ImmutableUtils; //导入方法依赖的package包/类
public ImmutableDexFile( Opcodes opcodes, ImmutableSet<? extends ImmutableClassDef> classes) {
this.classes = ImmutableUtils.nullToEmptySet(classes);
this.opcodes = opcodes;
}
示例14: ImmutableAnnotationEncodedValue
import org.jf.util.ImmutableUtils; //导入方法依赖的package包/类
public ImmutableAnnotationEncodedValue( String type,
ImmutableSet<? extends ImmutableAnnotationElement> elements) {
this.type = type;
this.elements = ImmutableUtils.nullToEmptySet(elements);
}
示例15: ImmutableDexFile
import org.jf.util.ImmutableUtils; //导入方法依赖的package包/类
@Deprecated
public ImmutableDexFile(@Nullable ImmutableSet<? extends ImmutableClassDef> classes) {
this.classes = ImmutableUtils.nullToEmptySet(classes);
this.opcodes = Opcodes.forApi(19);
}