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

  • Start an intent from android
  • findViewById (Activity)
  • getSharedPreferences (Context)
  • getApplicationContext (Context)
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • System (java.lang)
    Provides access to system-related information and resources including standard input and output. Ena
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • Sublime Text for Python
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