本文整理汇总了Java中org.jf.util.ImmutableUtils.nullToEmptyList方法的典型用法代码示例。如果您正苦于以下问题:Java ImmutableUtils.nullToEmptyList方法的具体用法?Java ImmutableUtils.nullToEmptyList怎么用?Java ImmutableUtils.nullToEmptyList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.jf.util.ImmutableUtils
的用法示例。
在下文中一共展示了ImmutableUtils.nullToEmptyList方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: 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);
}
示例2: ImmutableMethodImplementation
import org.jf.util.ImmutableUtils; //导入方法依赖的package包/类
public ImmutableMethodImplementation(int registerCount,
@Nullable ImmutableList<? extends ImmutableInstruction> instructions,
@Nullable ImmutableList<? extends ImmutableTryBlock> tryBlocks,
@Nullable ImmutableList<? extends ImmutableDebugItem> debugItems) {
this.registerCount = registerCount;
this.instructions = ImmutableUtils.nullToEmptyList(instructions);
this.tryBlocks = ImmutableUtils.nullToEmptyList(tryBlocks);
this.debugItems = ImmutableUtils.nullToEmptyList(debugItems);
}
示例3: ImmutableArrayPayload
import org.jf.util.ImmutableUtils; //导入方法依赖的package包/类
public ImmutableArrayPayload(int elementWidth,
@Nullable ImmutableList<Number> arrayElements) {
super(OPCODE);
//TODO: need to ensure this is a valid width (1, 2, 4, 8)
this.elementWidth = elementWidth;
//TODO: need to validate the elements fit within the width
this.arrayElements = ImmutableUtils.nullToEmptyList(arrayElements);
}
示例4: ImmutableTryBlock
import org.jf.util.ImmutableUtils; //导入方法依赖的package包/类
public ImmutableTryBlock(int startCodeAddress,
int codeUnitCount,
@Nullable ImmutableList<? extends ImmutableExceptionHandler> exceptionHandlers) {
this.startCodeAddress = startCodeAddress;
this.codeUnitCount = codeUnitCount;
this.exceptionHandlers = ImmutableUtils.nullToEmptyList(exceptionHandlers);
}
示例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: ImmutableMethodReference
import org.jf.util.ImmutableUtils; //导入方法依赖的package包/类
public ImmutableMethodReference(@Nonnull String definingClass,
@Nonnull String name,
@Nullable ImmutableList<String> parameters,
@Nonnull String returnType) {
this.definingClass = definingClass;
this.name = name;
this.parameters = ImmutableUtils.nullToEmptyList(parameters);
this.returnType = returnType;
}
示例7: ImmutableMethodImplementation
import org.jf.util.ImmutableUtils; //导入方法依赖的package包/类
public ImmutableMethodImplementation(int registerCount,
ImmutableList<? extends ImmutableInstruction> instructions,
ImmutableList<? extends ImmutableTryBlock> tryBlocks,
ImmutableList<? extends ImmutableDebugItem> debugItems) {
this.registerCount = registerCount;
this.instructions = ImmutableUtils.nullToEmptyList(instructions);
this.tryBlocks = ImmutableUtils.nullToEmptyList(tryBlocks);
this.debugItems = ImmutableUtils.nullToEmptyList(debugItems);
}
示例8: ImmutableArrayPayload
import org.jf.util.ImmutableUtils; //导入方法依赖的package包/类
public ImmutableArrayPayload(int elementWidth,
ImmutableList<Number> arrayElements) {
super(OPCODE);
//TODO: need to ensure this is a valid width (1, 2, 4, 8)
this.elementWidth = elementWidth;
//TODO: need to validate the elements fit within the width
this.arrayElements = ImmutableUtils.nullToEmptyList(arrayElements);
}
示例9: ImmutableTryBlock
import org.jf.util.ImmutableUtils; //导入方法依赖的package包/类
public ImmutableTryBlock(int startCodeAddress,
int codeUnitCount,
ImmutableList<? extends ImmutableExceptionHandler> exceptionHandlers) {
this.startCodeAddress = startCodeAddress;
this.codeUnitCount = codeUnitCount;
this.exceptionHandlers = ImmutableUtils.nullToEmptyList(exceptionHandlers);
}
示例10: 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;
}
示例11: ImmutableMethodReference
import org.jf.util.ImmutableUtils; //导入方法依赖的package包/类
public ImmutableMethodReference( String definingClass,
String name,
ImmutableList<String> parameters,
String returnType) {
this.definingClass = definingClass;
this.name = name;
this.parameters = ImmutableUtils.nullToEmptyList(parameters);
this.returnType = returnType;
}
示例12: ImmutablePackedSwitchPayload
import org.jf.util.ImmutableUtils; //导入方法依赖的package包/类
public ImmutablePackedSwitchPayload(
@Nullable ImmutableList<? extends ImmutableSwitchElement> switchElements) {
super(OPCODE);
this.switchElements = ImmutableUtils.nullToEmptyList(switchElements);
}
示例13: ImmutableSparseSwitchPayload
import org.jf.util.ImmutableUtils; //导入方法依赖的package包/类
public ImmutableSparseSwitchPayload(
@Nullable ImmutableList<? extends ImmutableSwitchElement> switchElements) {
super(OPCODE);
this.switchElements = ImmutableUtils.nullToEmptyList(switchElements);
}
示例14: ImmutablePackedSwitchPayload
import org.jf.util.ImmutableUtils; //导入方法依赖的package包/类
public ImmutablePackedSwitchPayload(
ImmutableList<? extends ImmutableSwitchElement> switchElements) {
super(OPCODE);
this.switchElements = ImmutableUtils.nullToEmptyList(switchElements);
}
示例15: ImmutableSparseSwitchPayload
import org.jf.util.ImmutableUtils; //导入方法依赖的package包/类
public ImmutableSparseSwitchPayload(
ImmutableList<? extends ImmutableSwitchElement> switchElements) {
super(OPCODE);
this.switchElements = ImmutableUtils.nullToEmptyList(switchElements);
}