lombok.experimental.PackagePrivate Java Examples
The following examples show how to use
lombok.experimental.PackagePrivate.
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: HandleFieldDefaults.java From EasyMPermission with MIT License | 6 votes |
public void setFieldDefaultsForField(EclipseNode fieldNode, ASTNode pos, AccessLevel level, boolean makeFinal) { FieldDeclaration field = (FieldDeclaration) fieldNode.get(); if (level != null && level != AccessLevel.NONE) { if ((field.modifiers & (ClassFileConstants.AccPublic | ClassFileConstants.AccPrivate | ClassFileConstants.AccProtected)) == 0) { if (!hasAnnotation(PackagePrivate.class, fieldNode)) { field.modifiers |= EclipseHandlerUtil.toEclipseModifier(level); } } } if (makeFinal && (field.modifiers & ClassFileConstants.AccFinal) == 0) { if (!hasAnnotation(NonFinal.class, fieldNode)) { field.modifiers |= ClassFileConstants.AccFinal; } } fieldNode.rebuild(); }
Example #2
Source File: HandleFieldDefaults.java From EasyMPermission with MIT License | 6 votes |
public void setFieldDefaultsForField(JavacNode fieldNode, DiagnosticPosition pos, AccessLevel level, boolean makeFinal) { JCVariableDecl field = (JCVariableDecl) fieldNode.get(); if (level != null && level != AccessLevel.NONE) { if ((field.mods.flags & (Flags.PUBLIC | Flags.PRIVATE | Flags.PROTECTED)) == 0) { if (!hasAnnotationAndDeleteIfNeccessary(PackagePrivate.class, fieldNode)) { field.mods.flags |= toJavacModifier(level); } } } if (makeFinal && (field.mods.flags & Flags.FINAL) == 0) { if (!hasAnnotationAndDeleteIfNeccessary(NonFinal.class, fieldNode)) { field.mods.flags |= Flags.FINAL; } } fieldNode.rebuild(); }
Example #3
Source File: ManageAudienceClientBuilder.java From line-bot-sdk-java with Apache License 2.0 | 4 votes |
/** * Use {@link ManageAudienceClient#builder()} to create instance. */ @PackagePrivate ManageAudienceClientBuilder() { }
Example #4
Source File: LineOAuthClientBuilder.java From line-bot-sdk-java with Apache License 2.0 | 4 votes |
/** * Creates a {@link LineOAuthClient}. Use {@link LineOAuthClient#builder()} instead. */ @PackagePrivate LineOAuthClientBuilder() { }
Example #5
Source File: LineBlobClientBuilder.java From line-bot-sdk-java with Apache License 2.0 | 4 votes |
/** * Use {@link LineBlobClient#builder} to create instance. */ @PackagePrivate LineBlobClientBuilder() { }
Example #6
Source File: LineMessagingClientBuilder.java From line-bot-sdk-java with Apache License 2.0 | 2 votes |
/** * Use {@link LineMessagingClient#builder(String)} to create instance. * * @see LineMessagingClient#builder(String) * @see LineMessagingClient#builder(ChannelTokenSupplier) */ @PackagePrivate LineMessagingClientBuilder() { }