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

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

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

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

@Override
public void setFinal(final boolean isFinal) {
 this.checkMutable();
 this.getDelegate().setFinal(isFinal);
}

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

 @Override
 public void apply(final JvmGenericType it) {
  String _packageName = model.getPackageName();
  it.setPackageName(_packageName);
  it.setFinal(true);
  EList<JvmTypeReference> _superTypes = it.getSuperTypes();
  JvmTypeReference _typeRef = PatternGroupClassInferrer.this.builder.typeRef(BaseGeneratedPatternGroup.class);
  PatternGroupClassInferrer.this._eMFJvmTypesBuilder.<JvmTypeReference>operator_add(_superTypes, _typeRef);
 }
};
origin: org.eclipse.viatra/org.eclipse.viatra.query.patternlanguage.emf

public JvmGenericType inferPatternGroupClass(final PatternModel model, final JvmTypeReferenceBuilder builder, final EMFPatternLanguageGeneratorConfig config, final boolean includePrivate) {
 JvmGenericType _xblockexpression = null;
 {
  this.builder = builder;
  final Procedure1<JvmGenericType> _function = (JvmGenericType it) -> {
   it.setPackageName(this.groupPackageName(model, includePrivate));
   it.setFinal(true);
   EList<JvmTypeReference> _superTypes = it.getSuperTypes();
   JvmTypeReference _typeRef = this.builder.typeRef(BaseGeneratedPatternGroup.class);
   this._eMFJvmTypesBuilder.<JvmTypeReference>operator_add(_superTypes, _typeRef);
   this._eMFJvmTypesBuilder.setFileHeader(it, this._eMFPatternLanguageJvmModelInferrerUtil.getFileComment(model));
  };
  _xblockexpression = this._eMFJvmTypesBuilder.toClass(model, this.groupClassName(model, includePrivate), _function);
 }
 return _xblockexpression;
}

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

 @Override
 public void apply(final JvmGenericType it) {
  it.setPackageName(querySpecificationPackageName);
  CharSequence _javadocQuerySpecificationClass = PatternQuerySpecificationClassInferrer.this._javadocInferrer.javadocQuerySpecificationClass(pattern);
  String _string = _javadocQuerySpecificationClass.toString();
  PatternQuerySpecificationClassInferrer.this._eMFJvmTypesBuilder.setDocumentation(it, _string);
  it.setFinal(true);
  boolean _isPublic = PatternQuerySpecificationClassInferrer.this.util.isPublic(pattern);
  if (_isPublic) {
   EList<JvmTypeReference> _superTypes = it.getSuperTypes();
   JvmTypeReference _typeRef = PatternQuerySpecificationClassInferrer.this.builder.typeRef(matcherClass);
   JvmTypeReference _typeRef_1 = PatternQuerySpecificationClassInferrer.this.builder.typeRef(BaseGeneratedEMFQuerySpecification.class, _typeRef);
   PatternQuerySpecificationClassInferrer.this._eMFJvmTypesBuilder.<JvmTypeReference>operator_add(_superTypes, _typeRef_1);
  } else {
   EList<JvmTypeReference> _superTypes_1 = it.getSuperTypes();
   JvmTypeReference _typeRef_2 = PatternQuerySpecificationClassInferrer.this.builder.typeRef(IPatternMatch.class);
   JvmTypeReference _typeRef_3 = PatternQuerySpecificationClassInferrer.this.builder.typeRef(matcherClass, _typeRef_2);
   JvmTypeReference _typeRef_4 = PatternQuerySpecificationClassInferrer.this.builder.typeRef(BaseGeneratedEMFQuerySpecification.class, _typeRef_3);
   PatternQuerySpecificationClassInferrer.this._eMFJvmTypesBuilder.<JvmTypeReference>operator_add(_superTypes_1, _typeRef_4);
  }
 }
};
origin: org.eclipse.xtend/org.eclipse.xtend.core

inferredType.setSimpleName(localClassName);
inferredType.setAnonymous(!hasAdditionalMembers(anonymousClass));
inferredType.setFinal(true);
inferredType.setVisibility(JvmVisibility.DEFAULT);
inferredType.getSuperTypes().add(jvmTypesBuilder.inferredType(anonymousClass));
origin: io.sarl.lang/io.sarl.lang

inferredJvmType.setSimpleName(localClassName);
inferredJvmType.setAnonymous(!hasAdditionalMembers(anonymousClass));
inferredJvmType.setFinal(true);
setVisibility(inferredJvmType, anonymousClass);
inferredJvmType.getSuperTypes().add(this.typeBuilder.inferredType(anonymousClass));
origin: io.sarl.lang/io.sarl.lang

innerType.setStatic(true);
innerType.setStrictFloatingPoint(false);
innerType.setFinal(false);
final String innerTypeName = Capacity.ContextAwareCapacityWrapper.class.getSimpleName();
innerType.setSimpleName(innerTypeName);
origin: org.eclipse.viatra/org.eclipse.viatra.query.patternlanguage.emf

/**
 * Infers the {@link IQuerySpecification} implementation class from {@link Pattern}.
 */
public JvmDeclaredType inferQuerySpecificationClass(final Pattern pattern, final boolean isPrelinkingPhase, final String querySpecificationPackageName, final JvmType matcherClass, final JvmTypeReferenceBuilder builder, final JvmAnnotationReferenceBuilder annBuilder, final EMFPatternLanguageGeneratorConfig config) {
 this.builder = builder;
 this.annBuilder = annBuilder;
 final Procedure1<JvmGenericType> _function = (JvmGenericType it) -> {
  it.setPackageName(querySpecificationPackageName);
  this._eMFJvmTypesBuilder.setDocumentation(it, this._javadocInferrer.javadocQuerySpecificationClass(pattern).toString());
  it.setFinal(true);
  if ((this.util.isPublic(pattern) && (config.getMatcherGenerationStrategy() != EMFPatternLanguageGeneratorConfig.MatcherGenerationStrategy.USE_GENERIC))) {
   EList<JvmTypeReference> _superTypes = it.getSuperTypes();
   JvmTypeReference _typeRef = this.builder.typeRef(BaseGeneratedEMFQuerySpecification.class, this.builder.typeRef(matcherClass));
   this._eMFJvmTypesBuilder.<JvmTypeReference>operator_add(_superTypes, _typeRef);
  } else {
   EList<JvmTypeReference> _superTypes_1 = it.getSuperTypes();
   JvmTypeReference _typeRef_1 = this.builder.typeRef(BaseGeneratedEMFQuerySpecificationWithGenericMatcher.class);
   this._eMFJvmTypesBuilder.<JvmTypeReference>operator_add(_superTypes_1, _typeRef_1);
  }
  this._eMFJvmTypesBuilder.setFileHeader(it, this.util.getFileComment(pattern));
 };
 final JvmGenericType querySpecificationClass = this._eMFJvmTypesBuilder.toClass(pattern, 
  this.util.querySpecificationClassName(pattern, config.getMatcherGenerationStrategy()), _function);
 return querySpecificationClass;
}

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

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

final boolean isAbstract = source.isAbstract() || Utils.hasAbstractMember(source);
inferredJvmType.setAbstract(isAbstract);
inferredJvmType.setFinal(!isAbstract && source.isFinal());
origin: org.eclipse.xtend/org.eclipse.xtend.core

inferredJvmType.setStrictFloatingPoint(source.isStrictFloatingPoint());
if (!inferredJvmType.isAbstract()) {
  inferredJvmType.setFinal(source.isFinal());
origin: io.sarl.lang/io.sarl.lang

inferredJvmType.setAbstract(isAbstract);
inferredJvmType.setStrictFloatingPoint(false);
inferredJvmType.setFinal(!isAbstract && source.isFinal());
origin: io.sarl.lang/io.sarl.lang

inferredJvmType.setStrictFloatingPoint(false);
if (!inferredJvmType.isAbstract()) {
  inferredJvmType.setFinal(source.isFinal());
origin: org.eclipse.incquery/org.eclipse.incquery.patternlanguage.emf

it.setVisibility(JvmVisibility.PRIVATE);
it.setStatic(true);
it.setFinal(true);
EList<JvmTypeReference> _superTypes = it.getSuperTypes();
JvmTypeReference _typeRef = PatternMatchClassInferrer.this.builder.typeRef(matchClass);
origin: io.sarl.lang/io.sarl.lang

inferredJvmType.setAbstract(isAbstract);
inferredJvmType.setStrictFloatingPoint(false);
inferredJvmType.setFinal(!isAbstract && source.isFinal());
origin: org.eclipse.viatra/org.eclipse.viatra.query.patternlanguage.emf

it.setVisibility(JvmVisibility.PRIVATE);
it.setStatic(true);
it.setFinal(true);
EList<JvmTypeReference> _superTypes = it.getSuperTypes();
JvmTypeReference _typeRef = this.builder.typeRef(matchClass);
org.eclipse.xtext.common.typesJvmGenericTypesetFinal

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,
  • setStatic,
  • setStrictFloatingPoint,
  • getDeclaredFields,
  • getDeclaredOperations,
  • getIdentifier,
  • isFinal

Popular in Java

  • Finding current android device location
  • addToBackStack (FragmentTransaction)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • runOnUiThread (Activity)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • JFrame (javax.swing)
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • 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