Tabnine Logo
JvmGenericType.setStatic
Code IndexAdd Tabnine to your IDE (free)

How to use
setStatic
method
in
org.eclipse.xtext.common.types.JvmGenericType

Best Java code snippets using org.eclipse.xtext.common.types.JvmGenericType.setStatic (Showing top 16 results out of 315)

origin: org.eclipse.xtend/org.eclipse.xtend.core

@Override
public void setStatic(final boolean isStatic) {
 this.checkMutable();
 this.getDelegate().setStatic(isStatic);
}

origin: org.eclipse.incquery/org.eclipse.incquery.patternlanguage.emf

 @Override
 public void apply(final JvmGenericType it) {
  it.setVisibility(JvmVisibility.PRIVATE);
  it.setStatic(true);
  EList<JvmTypeReference> _superTypes = it.getSuperTypes();
  JvmTypeReference _typeRef = PatternQuerySpecificationClassInferrer.this.builder.typeRef(BaseGeneratedEMFPQuery.class);
  PatternQuerySpecificationClassInferrer.this._eMFJvmTypesBuilder.<JvmTypeReference>operator_add(_superTypes, _typeRef);
  PatternQuerySpecificationClassInferrer.this.inferPQueryMembers(it, pattern, specBuilder);
 }
};
origin: org.eclipse.viatra/org.eclipse.viatra.query.patternlanguage.emf

/**
 * Infers the {@link Consumer} implementation class from a {@link Pattern}.
 */
public JvmDeclaredType inferProcessorClass(final Pattern pattern, final boolean isPrelinkingPhase, final String processorPackageName, final JvmType matchClass, final JvmTypeReferenceBuilder builder, final JvmAnnotationReferenceBuilder annBuilder, final EMFPatternLanguageGeneratorConfig config) {
 this.builder = builder;
 this.annBuilder = annBuilder;
 final Procedure1<JvmGenericType> _function = (JvmGenericType it) -> {
  EMFPatternLanguageGeneratorConfig.MatcherGenerationStrategy _matcherGenerationStrategy = config.getMatcherGenerationStrategy();
  boolean _equals = Objects.equal(_matcherGenerationStrategy, EMFPatternLanguageGeneratorConfig.MatcherGenerationStrategy.NESTED_CLASS);
  it.setStatic(_equals);
  it.setPackageName(processorPackageName);
  this._eMFJvmTypesBuilder.setDocumentation(it, this._javadocInferrer.javadocProcessorClass(pattern).toString());
  it.setAbstract(true);
  EList<JvmTypeReference> _superTypes = it.getSuperTypes();
  JvmTypeReference _typeRef = this.builder.typeRef(Consumer.class, this.builder.typeRef(matchClass));
  this._eMFJvmTypesBuilder.<JvmTypeReference>operator_add(_superTypes, _typeRef);
  this._eMFJvmTypesBuilder.setFileHeader(it, this._eMFPatternLanguageJvmModelInferrerUtil.getFileComment(pattern));
 };
 final JvmGenericType processorClass = this._eMFJvmTypesBuilder.toClass(pattern, this._eMFPatternLanguageJvmModelInferrerUtil.processorClassName(pattern, config.getMatcherGenerationStrategy()), _function);
 return processorClass;
}

origin: org.eclipse.xtend/org.eclipse.xtend.core

protected void initialize(XtendInterface source, JvmGenericType inferredJvmType) {
  inferredJvmType.setVisibility(source.getVisibility());
  inferredJvmType.setStatic(source.isStatic() && !isTopLevel(source));
  inferredJvmType.setAbstract(true);
  inferredJvmType.setStrictFloatingPoint(source.isStrictFloatingPoint());
  translateAnnotationsTo(source.getAnnotations(), inferredJvmType);
  for (JvmTypeReference intf : source.getExtends()) {
    inferredJvmType.getSuperTypes().add(jvmTypesBuilder.cloneWithProxies(intf));
  }
  fixTypeParameters(inferredJvmType);
  for (XtendMember member : source.getMembers()) {
    if (member instanceof XtendField
        || (member instanceof XtendFunction && ((XtendFunction) member).getName() != null)) {
      transform(member, inferredJvmType, false);
    }
  }
  jvmTypesBuilder.copyDocumentationTo(source, inferredJvmType);
  nameClashResolver.resolveNameClashes(inferredJvmType);
}

origin: io.sarl.lang/io.sarl.lang

innerType.setAbstract(false);
innerType.setVisibility(JvmVisibility.PUBLIC);
innerType.setStatic(true);
innerType.setStrictFloatingPoint(false);
innerType.setFinal(false);
origin: org.eclipse.incquery/org.eclipse.incquery.patternlanguage.emf

@Override
public void apply(final JvmGenericType it) {
 it.setVisibility(JvmVisibility.PRIVATE);
 it.setStatic(true);
 EList<JvmMember> _members = it.getMembers();
 JvmTypeReference _typeRef = PatternQuerySpecificationClassInferrer.this.builder.typeRef(querySpecificationClass);
origin: io.sarl.lang/io.sarl.lang

inferredJvmType.setAbstract(true);
setVisibility(inferredJvmType, source);
inferredJvmType.setStatic(false);
inferredJvmType.setStrictFloatingPoint(false);
inferredJvmType.setFinal(false);
origin: io.sarl.lang/io.sarl.lang

inferredJvmType.setStatic(false);
inferredJvmType.setStrictFloatingPoint(false);
setVisibility(inferredJvmType, source);
origin: org.eclipse.incquery/org.eclipse.incquery.patternlanguage.emf

@Override
public void apply(final JvmGenericType it) {
 it.setVisibility(JvmVisibility.PRIVATE);
 it.setStatic(true);
 it.setFinal(true);
 EList<JvmTypeReference> _superTypes = it.getSuperTypes();
origin: io.sarl.lang/io.sarl.lang

inferredJvmType.setStatic(false);
final boolean isAbstract = source.isAbstract() || Utils.hasAbstractMember(source);
inferredJvmType.setAbstract(isAbstract);
origin: org.eclipse.xtend/org.eclipse.xtend.core

inferredJvmType.setStatic(isStatic);
inferredJvmType.setAbstract(source.isAbstract());
inferredJvmType.setStrictFloatingPoint(source.isStrictFloatingPoint());
origin: io.sarl.lang/io.sarl.lang

inferredJvmType.setStatic(false);
inferredJvmType.setAbstract(false);
inferredJvmType.setStrictFloatingPoint(false);
origin: io.sarl.lang/io.sarl.lang

inferredJvmType.setStatic(false);
final boolean isAbstract = source.isAbstract() || Utils.hasAbstractMember(source);
inferredJvmType.setAbstract(isAbstract);
origin: org.eclipse.viatra/org.eclipse.viatra.query.patternlanguage.emf

final Procedure1<JvmGenericType> _function = (JvmGenericType it) -> {
 if (nestedClasses) {
  it.setStatic(true);
 } else {
  it.setPackageName(packageName);
final Procedure1<JvmGenericType> _function_1 = (JvmGenericType it) -> {
 if (nestedClasses) {
  it.setStatic(true);
 } else {
  it.setPackageName(packageName);
origin: org.eclipse.viatra/org.eclipse.viatra.query.patternlanguage.emf

final Procedure1<JvmGenericType> _function = (JvmGenericType it) -> {
 it.setVisibility(JvmVisibility.PRIVATE);
 it.setStatic(true);
 it.setFinal(true);
 EList<JvmTypeReference> _superTypes = it.getSuperTypes();
origin: org.eclipse.viatra/org.eclipse.viatra.query.patternlanguage.emf

final Procedure1<JvmGenericType> _function = (JvmGenericType it) -> {
 it.setVisibility(JvmVisibility.PRIVATE);
 it.setStatic(true);
 StringConcatenation _builder = new StringConcatenation();
 _builder.append("Inner class allowing the singleton instance of {@link ");
final Procedure1<JvmGenericType> _function_1 = (JvmGenericType it) -> {
 it.setVisibility(JvmVisibility.PRIVATE);
 it.setStatic(true);
 EList<JvmTypeReference> _superTypes = it.getSuperTypes();
 JvmTypeReference _typeRef = this.builder.typeRef(BaseGeneratedEMFPQuery.class);
org.eclipse.xtext.common.typesJvmGenericTypesetStatic

Popular methods of JvmGenericType

  • getMembers
  • isInterface
    Returns the value of the 'Interface' attribute. If the meaning of the 'Interface' attribute isn't cl
  • getSuperTypes
  • getTypeParameters
  • getDeclaredConstructors
  • setAbstract
  • setInterface
    Sets the value of the ' org.eclipse.xtext.common.types.JvmGenericType#isInterface' attribute.
  • setPackageName
  • setSimpleName
  • setVisibility
  • getAllFeatures
  • getSimpleName
  • getAllFeatures,
  • getSimpleName,
  • isAbstract,
  • setFinal,
  • setStrictFloatingPoint,
  • getDeclaredFields,
  • getDeclaredOperations,
  • getIdentifier,
  • isFinal

Popular in Java

  • Creating JSON documents from java classes using gson
  • compareTo (BigDecimal)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • putExtra (Intent)
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • BitSet (java.util)
    The BitSet class implements abit array [http://en.wikipedia.org/wiki/Bit_array]. Each element is eit
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • Scanner (java.util)
    A parser that parses a text string of primitive types and strings with the help of regular expressio
  • JLabel (javax.swing)
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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