public ImmutableArrayEncodedValue(@Nonnull Collection<? extends EncodedValue> value) { this.value = ImmutableEncodedValueFactory.immutableListOf(value); }
public ImmutableAnnotationElement(@Nonnull String name, @Nonnull EncodedValue value) { this.name = name; this.value = ImmutableEncodedValueFactory.of(value); }
public ImmutableField(@Nonnull String definingClass, @Nonnull String name, @Nonnull String type, int accessFlags, @Nullable EncodedValue initialValue, @Nullable Collection<? extends Annotation> annotations) { this.definingClass = definingClass; this.name = name; this.type = type; this.accessFlags = accessFlags; this.initialValue = ImmutableEncodedValueFactory.ofNullable(initialValue); this.annotations = ImmutableAnnotation.immutableSetOf(annotations); }
@Override public EncodedValue apply(Field input) { EncodedValue initialValue = input.getInitialValue(); if (initialValue == null) { return ImmutableEncodedValueFactory.defaultValueForType(input.getType()); } return initialValue; } };
public ImmutableField(@Nonnull String definingClass, @Nonnull String name, @Nonnull String type, int accessFlags, @Nullable EncodedValue initialValue, @Nullable Collection<? extends Annotation> annotations) { this.definingClass = definingClass; this.name = name; this.type = type; this.accessFlags = accessFlags; this.initialValue = ImmutableEncodedValueFactory.ofNullable(initialValue); this.annotations = ImmutableAnnotation.immutableSetOf(annotations); }
@Override public EncodedValue apply(Field input) { EncodedValue initialValue = input.getInitialValue(); if (initialValue == null) { return ImmutableEncodedValueFactory.defaultValueForType(input.getType()); } return initialValue; } };
public ImmutableAnnotationElement(@Nonnull String name, @Nonnull EncodedValue value) { this.name = name; this.value = ImmutableEncodedValueFactory.of(value); }
public ImmutableArrayEncodedValue(@Nonnull Collection<? extends EncodedValue> value) { this.value = ImmutableEncodedValueFactory.immutableListOf(value); }
public ImmutableField(@Nonnull String definingClass, @Nonnull String name, @Nonnull String type, int accessFlags, @Nullable EncodedValue initialValue, @Nullable Collection<? extends Annotation> annotations) { this.definingClass = definingClass; this.name = name; this.type = type; this.accessFlags = accessFlags; this.initialValue = ImmutableEncodedValueFactory.ofNullable(initialValue); this.annotations = ImmutableAnnotation.immutableSetOf(annotations); }
@Nullable public static ImmutableEncodedValue ofNullable(@Nullable EncodedValue encodedValue) { if (encodedValue == null) { return null; } return of(encodedValue); }
public ImmutableArrayEncodedValue(@Nonnull Collection<? extends EncodedValue> value) { this.value = ImmutableEncodedValueFactory.immutableListOf(value); }
@Nonnull @Override protected ImmutableEncodedValue makeImmutable(@Nonnull EncodedValue item) { return of(item); } };
public ImmutableCallSiteReference(@Nonnull String name, @Nonnull MethodHandleReference methodHandle, @Nonnull String methodName, @Nonnull MethodProtoReference methodProto, @Nonnull Iterable<? extends EncodedValue> extraArguments) { this.name = name; this.methodHandle = ImmutableMethodHandleReference.of(methodHandle); this.methodName = methodName; this.methodProto = ImmutableMethodProtoReference.of(methodProto); this.extraArguments = ImmutableEncodedValueFactory.immutableListOf(extraArguments); }
@Nullable public static ImmutableEncodedValue ofNullable(@Nullable EncodedValue encodedValue) { if (encodedValue == null) { return null; } return of(encodedValue); }
public ImmutableCallSiteReference(@Nonnull String name, @Nonnull MethodHandleReference methodHandle, @Nonnull String methodName, @Nonnull MethodProtoReference methodProto, @Nonnull Iterable<? extends EncodedValue> extraArguments) { this.name = name; this.methodHandle = ImmutableMethodHandleReference.of(methodHandle); this.methodName = methodName; this.methodProto = ImmutableMethodProtoReference.of(methodProto); this.extraArguments = ImmutableEncodedValueFactory.immutableListOf(extraArguments); }
@Nonnull @Override protected ImmutableEncodedValue makeImmutable(@Nonnull EncodedValue item) { return of(item); } };
@Nonnull public static ImmutableCallSiteReference of(@Nonnull CallSiteReference callSiteReference) { if (callSiteReference instanceof ImmutableCallSiteReference) { return (ImmutableCallSiteReference) callSiteReference; } return new ImmutableCallSiteReference(callSiteReference.getName(), ImmutableMethodHandleReference.of(callSiteReference.getMethodHandle()), callSiteReference.getMethodName(), ImmutableMethodProtoReference.of(callSiteReference.getMethodProto()), ImmutableEncodedValueFactory.immutableListOf(callSiteReference.getExtraArguments())); }
public ImmutableAnnotationElement(@Nonnull String name, @Nonnull EncodedValue value) { this.name = name; this.value = ImmutableEncodedValueFactory.of(value); }
@Nonnull public static ImmutableCallSiteReference of(@Nonnull CallSiteReference callSiteReference) { if (callSiteReference instanceof ImmutableCallSiteReference) { return (ImmutableCallSiteReference) callSiteReference; } return new ImmutableCallSiteReference(callSiteReference.getName(), ImmutableMethodHandleReference.of(callSiteReference.getMethodHandle()), callSiteReference.getMethodName(), ImmutableMethodProtoReference.of(callSiteReference.getMethodProto()), ImmutableEncodedValueFactory.immutableListOf(callSiteReference.getExtraArguments())); }
@Nonnull @Override protected ImmutableEncodedValue makeImmutable(@Nonnull EncodedValue item) { return of(item); } };