Java Code Examples for org.jf.util.ImmutableUtils#nullToEmptyList()
The following examples show how to use
org.jf.util.ImmutableUtils#nullToEmptyList() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: ImmutableArrayPayload.java From zjdroid with Apache License 2.0 | 5 votes |
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); }
Example 2
Source File: ImmutableMethod.java From HeyGirl with Apache License 2.0 | 5 votes |
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; }
Example 3
Source File: ImmutableTryBlock.java From HeyGirl with Apache License 2.0 | 5 votes |
public ImmutableTryBlock(int startCodeAddress, int codeUnitCount, @Nullable ImmutableList<? extends ImmutableExceptionHandler> exceptionHandlers) { this.startCodeAddress = startCodeAddress; this.codeUnitCount = codeUnitCount; this.exceptionHandlers = ImmutableUtils.nullToEmptyList(exceptionHandlers); }
Example 4
Source File: ImmutableArrayPayload.java From HeyGirl with Apache License 2.0 | 5 votes |
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); }
Example 5
Source File: ImmutableTryBlock.java From ZjDroid with Apache License 2.0 | 5 votes |
public ImmutableTryBlock(int startCodeAddress, int codeUnitCount, @Nullable ImmutableList<? extends ImmutableExceptionHandler> exceptionHandlers) { this.startCodeAddress = startCodeAddress; this.codeUnitCount = codeUnitCount; this.exceptionHandlers = ImmutableUtils.nullToEmptyList(exceptionHandlers); }
Example 6
Source File: ImmutableMethodImplementation.java From HeyGirl with Apache License 2.0 | 5 votes |
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); }
Example 7
Source File: ImmutableArrayPayload.java From ZjDroid with Apache License 2.0 | 5 votes |
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); }
Example 8
Source File: ImmutableMethod.java From zjdroid with Apache License 2.0 | 5 votes |
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; }
Example 9
Source File: ImmutableTryBlock.java From zjdroid with Apache License 2.0 | 5 votes |
public ImmutableTryBlock(int startCodeAddress, int codeUnitCount, @Nullable ImmutableList<? extends ImmutableExceptionHandler> exceptionHandlers) { this.startCodeAddress = startCodeAddress; this.codeUnitCount = codeUnitCount; this.exceptionHandlers = ImmutableUtils.nullToEmptyList(exceptionHandlers); }
Example 10
Source File: ImmutableMethodImplementation.java From ZjDroid with Apache License 2.0 | 5 votes |
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); }
Example 11
Source File: ImmutableMethod.java From ZjDroid with Apache License 2.0 | 5 votes |
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; }
Example 12
Source File: ImmutableMethodImplementation.java From zjdroid with Apache License 2.0 | 5 votes |
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); }
Example 13
Source File: ImmutableMethodReference.java From ZjDroid with Apache License 2.0 | 5 votes |
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; }
Example 14
Source File: ImmutableMethod.java From ZjDroid with Apache License 2.0 | 5 votes |
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; }
Example 15
Source File: ImmutableTryBlock.java From ZjDroid with Apache License 2.0 | 5 votes |
public ImmutableTryBlock(int startCodeAddress, int codeUnitCount, @Nullable ImmutableList<? extends ImmutableExceptionHandler> exceptionHandlers) { this.startCodeAddress = startCodeAddress; this.codeUnitCount = codeUnitCount; this.exceptionHandlers = ImmutableUtils.nullToEmptyList(exceptionHandlers); }
Example 16
Source File: ImmutableArrayPayload.java From ZjDroid with Apache License 2.0 | 5 votes |
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); }
Example 17
Source File: ImmutableSparseSwitchPayload.java From zjdroid with Apache License 2.0 | 4 votes |
public ImmutableSparseSwitchPayload( @Nullable ImmutableList<? extends ImmutableSwitchElement> switchElements) { super(OPCODE); this.switchElements = ImmutableUtils.nullToEmptyList(switchElements); }
Example 18
Source File: ImmutablePackedSwitchPayload.java From HeyGirl with Apache License 2.0 | 4 votes |
public ImmutablePackedSwitchPayload( @Nullable ImmutableList<? extends ImmutableSwitchElement> switchElements) { super(OPCODE); this.switchElements = ImmutableUtils.nullToEmptyList(switchElements); }
Example 19
Source File: ImmutablePackedSwitchPayload.java From ZjDroid with Apache License 2.0 | 4 votes |
public ImmutablePackedSwitchPayload( @Nullable ImmutableList<? extends ImmutableSwitchElement> switchElements) { super(OPCODE); this.switchElements = ImmutableUtils.nullToEmptyList(switchElements); }
Example 20
Source File: ImmutablePackedSwitchPayload.java From ZjDroid with Apache License 2.0 | 4 votes |
public ImmutablePackedSwitchPayload( @Nullable ImmutableList<? extends ImmutableSwitchElement> switchElements) { super(OPCODE); this.switchElements = ImmutableUtils.nullToEmptyList(switchElements); }