congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
FinalFieldsConstructor.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.eclipse.xtend.lib.annotations.FinalFieldsConstructor
constructor

Best Java code snippets using org.eclipse.xtend.lib.annotations.FinalFieldsConstructor.<init> (Showing top 20 results out of 315)

origin: org.eclipse.xtext/org.eclipse.xtext.xbase

@FinalFieldsConstructor
private static class SwitchContext extends Context {
 private boolean validationMode;
 
 public SwitchContext(final JvmTypeReference expectedType, final ClassFinder classFinder, final Map<String, JvmIdentifiableElement> visibleFeatures, final Set<XExpression> alreadyEvaluating) {
  super(expectedType, classFinder, visibleFeatures, alreadyEvaluating);
 }
}

origin: org.eclipse.xtext/org.eclipse.xtext.xtext.generator

@FinalFieldsConstructor
public static class FactoryImpl extends EcoreResourceFactoryImpl {
 public static final String ECORE_SUFFIX = "ecore";
 
 private final Wrapper<Boolean> isSaving;
 
 @Override
 public Resource createResource(final URI uri) {
  return new FragmentFakingEcoreResource(uri, this.isSaving);
 }
 
 public FactoryImpl(final Wrapper<Boolean> isSaving) {
  super();
  this.isSaving = isSaving;
 }
}

origin: org.eclipse.xtext/org.eclipse.xtext.ide

@FinalFieldsConstructor
protected static class Entry {
 private final ProjectDescription description;
 
 private boolean marked;
 
 private boolean cyclic;
 
 @Override
 public String toString() {
  return this.description.getName();
 }
 
 public Entry(final ProjectDescription description) {
  super();
  this.description = description;
 }
}

origin: org.eclipse.vorto/org.eclipse.vorto.editor.infomodel.web

/**
 * Use this class to register additional components to be used within the web application.
 */
@FinalFieldsConstructor
@SuppressWarnings("all")
public class InformationModelWebModule extends AbstractInformationModelWebModule {
 public Class<? extends IWebResourceSetProvider> bindIWebResourceSetProvider() {
  return WebEditorResourceSetProvider.class;
 }
 
 public Class<? extends IServerResourceHandler> bindIServerResourceHandler() {
  return HashMapResourceHandler.class;
 }
 
 public InformationModelWebModule(final Provider<ExecutorService> arg0) {
  super(arg0);
 }
}

origin: org.eclipse.xtext/org.eclipse.xtext.ide

@FinalFieldsConstructor
public static class BufferedCancelIndicator implements CancelIndicator {
 private final CancelIndicator delegate;
 
 private Long canceledSince;
 
 @Override
 public boolean isCanceled() {
  if (((this.canceledSince == null) && this.delegate.isCanceled())) {
   this.canceledSince = Long.valueOf(System.currentTimeMillis());
   return false;
  }
  return ((this.canceledSince != null) && (System.currentTimeMillis() > ((this.canceledSince).longValue() + 1000)));
 }
 
 public BufferedCancelIndicator(final CancelIndicator delegate) {
  super();
  this.delegate = delegate;
 }
}

origin: org.eclipse.xtext/org.eclipse.xtext.xtext.generator

@FinalFieldsConstructor
protected static class LineSeparatorModule extends XtextRuntimeModule {
 private final ILineSeparatorInformation lineSeparatorInformation;
 
 @Override
 public void configure(final Binder binder) {
  final CompoundModule compound = this.getBindings();
  compound.configure(binder);
 }
 
 public ILineSeparatorInformation bindILineSeparatorInformation() {
  return this.lineSeparatorInformation;
 }
 
 public LineSeparatorModule(final ILineSeparatorInformation lineSeparatorInformation) {
  super();
  this.lineSeparatorInformation = lineSeparatorInformation;
 }
}

origin: org.eclipse.vorto/org.eclipse.vorto.editor.datatype.web

/**
 * Use this class to register additional components to be used within the web application.
 */
@FinalFieldsConstructor
@SuppressWarnings("all")
public class DatatypeWebModule extends AbstractDatatypeWebModule {
 public Class<? extends IWebResourceSetProvider> bindIWebResourceSetProvider() {
  return WebEditorResourceSetProvider.class;
 }
 
 public Class<? extends IServerResourceHandler> bindIServerResourceHandler() {
  return HashMapResourceHandler.class;
 }
 
 public DatatypeWebModule(final Provider<ExecutorService> arg0) {
  super(arg0);
 }
}

origin: io.typefox.lsapi/io.typefox.lsapi.services

@FinalFieldsConstructor
protected static class WorkspaceServiceImpl implements WorkspaceService {
 private final LanguageClientEndpoint connection;
 
 @Override
 public CompletableFuture<List<? extends SymbolInformation>> symbol(final WorkspaceSymbolParams params) {
  return this.connection.<SymbolInformation>getListPromise(MessageMethods.WORKSPACE_SYMBOL, params, SymbolInformation.class);
 }
 
 @Override
 public void didChangeConfiguraton(final DidChangeConfigurationParams params) {
  this.connection.sendNotification(MessageMethods.DID_CHANGE_CONF, params);
 }
 
 @Override
 public void didChangeWatchedFiles(final DidChangeWatchedFilesParams params) {
  this.connection.sendNotification(MessageMethods.DID_CHANGE_FILES, params);
 }
 
 public WorkspaceServiceImpl(final LanguageClientEndpoint connection) {
  super();
  this.connection = connection;
 }
}

origin: io.typefox.lsapi/io.typefox.lsapi.services

@FinalFieldsConstructor
protected static class WindowServiceImpl implements WindowService {
 private final LanguageClientEndpoint connection;
 
 @Override
 public void onShowMessage(final Consumer<MessageParams> callback) {
  this.connection.<MessageParams>addCallback(MessageMethods.SHOW_MESSAGE, callback, MessageParams.class);
 }
 
 @Override
 public void onShowMessageRequest(final Consumer<ShowMessageRequestParams> callback) {
  this.connection.<ShowMessageRequestParams>addCallback(MessageMethods.SHOW_MESSAGE_REQUEST, callback, ShowMessageRequestParams.class);
 }
 
 @Override
 public void onLogMessage(final Consumer<MessageParams> callback) {
  this.connection.<MessageParams>addCallback(MessageMethods.LOG_MESSAGE, callback, MessageParams.class);
 }
 
 public WindowServiceImpl(final LanguageClientEndpoint connection) {
  super();
  this.connection = connection;
 }
}

origin: org.eclipse.vorto/org.eclipse.vorto.editor.datatype.web

/**
 * Initialization support for running Xtext languages in web applications.
 */
@FinalFieldsConstructor
@SuppressWarnings("all")
public class DatatypeWebSetup extends DatatypeStandaloneSetup {
 private final Provider<ExecutorService> executorServiceProvider;
 
 @Override
 public Injector createInjector() {
  final DatatypeRuntimeModule runtimeModule = new DatatypeRuntimeModule();
  final DatatypeWebModule webModule = new DatatypeWebModule(this.executorServiceProvider);
  Modules.OverriddenModuleBuilder _override = Modules.override(runtimeModule);
  Module _with = _override.with(webModule);
  return Guice.createInjector(_with);
 }
 
 public DatatypeWebSetup(final Provider<ExecutorService> executorServiceProvider) {
  super();
  this.executorServiceProvider = executorServiceProvider;
 }
}

origin: org.eclipse.vorto/org.eclipse.vorto.editor.infomodel.web

/**
 * Initialization support for running Xtext languages in web applications.
 */
@FinalFieldsConstructor
@SuppressWarnings("all")
public class InformationModelWebSetup extends InformationModelStandaloneSetup {
 private final Provider<ExecutorService> executorServiceProvider;
 
 @Override
 public Injector createInjector() {
  final InformationModelRuntimeModule runtimeModule = new InformationModelRuntimeModule();
  final InformationModelWebModule webModule = new InformationModelWebModule(this.executorServiceProvider);
  Modules.OverriddenModuleBuilder _override = Modules.override(runtimeModule);
  Module _with = _override.with(webModule);
  return Guice.createInjector(_with);
 }
 
 public InformationModelWebSetup(final Provider<ExecutorService> executorServiceProvider) {
  super();
  this.executorServiceProvider = executorServiceProvider;
 }
}

origin: com.github.oehme.sobula/sobula

@FinalFieldsConstructor
private static class DocumentBuilder {
 private final Document document;
origin: org.eclipse.xtext/org.eclipse.xtext.ide

/**
 * @author kosyakov - Initial contribution and API
 * @since 2.11
 */
@FinalFieldsConstructor
@SuppressWarnings("all")
public class WorkspaceResourceAccess implements IReferenceFinder.IResourceAccess {
 private final WorkspaceManager workspaceManager;
 
 @Override
 public <R extends Object> R readOnly(final URI targetURI, final IUnitOfWork<R, ResourceSet> work) {
  final Function2<Document, XtextResource, R> _function = (Document document, XtextResource resource) -> {
   try {
    if ((resource == null)) {
     return null;
    }
    return work.exec(resource.getResourceSet());
   } catch (Throwable _e) {
    throw Exceptions.sneakyThrow(_e);
   }
  };
  return this.workspaceManager.<R>doRead(targetURI, _function);
 }
 
 public WorkspaceResourceAccess(final WorkspaceManager workspaceManager) {
  super();
  this.workspaceManager = workspaceManager;
 }
}

origin: org.eclipse.xtext/org.eclipse.xtext.xtext.generator

@FinalFieldsConstructor
@Accessors
protected static class SuperGrammar extends AdapterImpl {
 private final Grammar grammar;
 
 @Override
 public boolean isAdapterForType(final Object type) {
  return (type == SemanticSequencerExtensions.SuperGrammar.class);
 }
 
 public SuperGrammar(final Grammar grammar) {
  super();
  this.grammar = grammar;
 }
 
 @Pure
 public Grammar getGrammar() {
  return this.grammar;
 }
}

origin: org.eclipse.xtext/org.eclipse.xtext.xbase.testing

@FinalFieldsConstructor
public static class Result {
 @Accessors
 private final Set<CategorizedProblem> compilationProblems = CollectionLiterals.<CategorizedProblem>newLinkedHashSet();
 
 private final HashMap<String, byte[]> classMap = new HashMap<String, byte[]>();
 
 private final ClassLoader parentClassLoader;
 
 public ClassLoader getClassLoader() {
  return new InMemoryJavaCompiler.ByteClassLoader(this.classMap, this.parentClassLoader);
 }
 
 public Result(final ClassLoader parentClassLoader) {
  super();
  this.parentClassLoader = parentClassLoader;
 }
 
 @Pure
 public Set<CategorizedProblem> getCompilationProblems() {
  return this.compilationProblems;
 }
}

origin: org.eclipse.xtext/org.eclipse.xtext.ide

/**
 * @author kosyakov - Initial contribution and API
 */
@Singleton
@Accessors
@FinalFieldsConstructor
@SuppressWarnings("all")
public class DefaultBracePairProvider implements IBracePairProvider {
 private final Set<BracePair> pairs;
 
 public DefaultBracePairProvider() {
  this(
   Collections.<BracePair>unmodifiableSet(CollectionLiterals.<BracePair>newHashSet(new BracePair("(", ")", true), new BracePair("{", "}", true), new BracePair("[", "]", true))));
 }
 
 public DefaultBracePairProvider(final Set<BracePair> pairs) {
  super();
  this.pairs = pairs;
 }
 
 @Pure
 public Set<BracePair> getPairs() {
  return this.pairs;
 }
}

origin: org.eclipse.lsp4j/org.eclipse.lsp4j.generator

@Accessors
@FinalFieldsConstructor
@SuppressWarnings("all")
public class EitherTypeArgument {
origin: eclipse/lsp4j

@Accessors
@FinalFieldsConstructor
@SuppressWarnings("all")
public class EitherTypeArgument {
origin: org.eclipse.xtext/org.eclipse.xtext.xbase

@FinalFieldsConstructor
@SuppressWarnings("all")
public class ArrayBracketsFormattingReplacer implements ITextReplacer {
origin: org.eclipse.xtext/org.eclipse.xtext.xtext.generator

@FinalFieldsConstructor
public static class QualifiedClassName {
 @Accessors(AccessorType.PUBLIC_GETTER)
 private final String packageName;
 
 @Accessors(AccessorType.PUBLIC_GETTER)
 private final String className;
 
 @Pure
 public String getPackageName() {
  return this.packageName;
 }
 
 @Pure
 public String getClassName() {
  return this.className;
 }
 
 public QualifiedClassName(final String packageName, final String className) {
  super();
  this.packageName = packageName;
  this.className = className;
 }
}

org.eclipse.xtend.lib.annotationsFinalFieldsConstructor<init>

Popular methods of FinalFieldsConstructor

    Popular in Java

    • Parsing JSON documents to java classes using gson
    • getResourceAsStream (ClassLoader)
    • getExternalFilesDir (Context)
    • startActivity (Activity)
    • Graphics2D (java.awt)
      This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
    • String (java.lang)
    • System (java.lang)
      Provides access to system-related information and resources including standard input and output. Ena
    • HashSet (java.util)
      HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
    • NoSuchElementException (java.util)
      Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
    • CountDownLatch (java.util.concurrent)
      A synchronization aid that allows one or more threads to wait until a set of operations being perfor
    • 21 Best IntelliJ Plugins
    Tabnine Logo
    • Products

      Search for Java codeSearch for JavaScript code
    • IDE Plugins

      IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
    • Company

      About UsContact UsCareers
    • Resources

      FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
    Get Tabnine for your IDE now