public ImmutablePackedSwitchPayload( ImmutableList<? extends ImmutableSwitchElement> switchElements) { super(OPCODE); this.switchElements = ImmutableUtils.nullToEmptyList(switchElements); }
public ImmutableDexFile(@Nullable ImmutableSet<? extends ImmutableClassDef> classes) { this.classes = ImmutableUtils.nullToEmptySet(classes); }
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);
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; }
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);
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);
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; }
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); }
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; }
public ImmutableAnnotationEncodedValue(@Nonnull String type, @Nullable ImmutableSet<? extends ImmutableAnnotationElement> elements) { this.type = type; this.elements = ImmutableUtils.nullToEmptySet(elements); }
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); }
public ImmutableAnnotation(int visibility, @Nonnull String type, @Nullable ImmutableSet<? extends ImmutableAnnotationElement> elements) { this.visibility = visibility; this.type = type; this.elements = ImmutableUtils.nullToEmptySet(elements); }
public ImmutablePackedSwitchPayload( @Nullable ImmutableList<? extends ImmutableSwitchElement> switchElements) { super(OPCODE); this.switchElements = ImmutableUtils.nullToEmptyList(switchElements); }
public ImmutableAnnotation(int visibility, @Nonnull String type, @Nullable ImmutableSet<? extends ImmutableAnnotationElement> elements) { this.visibility = visibility; this.type = type; this.elements = ImmutableUtils.nullToEmptySet(elements); }
public ImmutableSparseSwitchPayload( @Nullable ImmutableList<? extends ImmutableSwitchElement> switchElements) { super(OPCODE); this.switchElements = ImmutableUtils.nullToEmptyList(switchElements); }
public ImmutableDexFile(@Nonnull Opcodes opcodes, @Nullable ImmutableSet<? extends ImmutableClassDef> classes) { this.classes = ImmutableUtils.nullToEmptySet(classes); this.opcodes = opcodes; }
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); }
public ImmutableAnnotationEncodedValue(@Nonnull String type, @Nullable ImmutableSet<? extends ImmutableAnnotationElement> elements) { this.type = type; this.elements = ImmutableUtils.nullToEmptySet(elements); }
public ImmutableTryBlock(int startCodeAddress, int codeUnitCount, @Nullable ImmutableList<? extends ImmutableExceptionHandler> exceptionHandlers) { this.startCodeAddress = startCodeAddress; this.codeUnitCount = codeUnitCount; this.exceptionHandlers = ImmutableUtils.nullToEmptyList(exceptionHandlers); }
public ImmutableAnnotationEncodedValue(@Nonnull String type, @Nullable ImmutableSet<? extends ImmutableAnnotationElement> elements) { this.type = type; this.elements = ImmutableUtils.nullToEmptySet(elements); }