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

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

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

origin: io.sarl.pythongenerator/io.sarl.pythongenerator.generator

/** Create a JvmType for a Python type.
 *
 * @param pythonName the python type name.
 * @return the type.
 */
@SuppressWarnings("static-method")
protected JvmType newType(String pythonName) {
  final JvmGenericType type = TypesFactory.eINSTANCE.createJvmGenericType();
  final int index = pythonName.indexOf("."); //$NON-NLS-1$
  if (index <= 0) {
    type.setSimpleName(pythonName);
  } else {
    type.setPackageName(pythonName.substring(0, index - 1));
    type.setSimpleName(pythonName.substring(index + 1));
  }
  return type;
}
origin: org.eclipse.incquery/org.eclipse.incquery.patternlanguage.emf

 @Override
 public void apply(final JvmGenericType it) {
  it.setPackageName(packageName);
  EList<JvmTypeReference> _superTypes = it.getSuperTypes();
  JvmTypeReference _typeRef = EMFPatternLanguageJvmModelInferrer.this._typeReferenceBuilder.typeRef(BasePatternMatch.class);
  EMFPatternLanguageJvmModelInferrer.this._eMFJvmTypesBuilder.<JvmTypeReference>operator_add(_superTypes, _typeRef);
 }
};
origin: org.eclipse.incquery/org.eclipse.incquery.patternlanguage.emf

 @Override
 public void apply(final JvmGenericType it) {
  it.setPackageName(packageName);
  EList<JvmTypeReference> _superTypes = it.getSuperTypes();
  JvmTypeReference _typeRef = EMFPatternLanguageJvmModelInferrer.this._typeReferenceBuilder.typeRef(matchClass);
  JvmTypeReference _typeRef_1 = EMFPatternLanguageJvmModelInferrer.this._typeReferenceBuilder.typeRef(BaseMatcher.class, _typeRef);
  EMFPatternLanguageJvmModelInferrer.this._eMFJvmTypesBuilder.<JvmTypeReference>operator_add(_superTypes, _typeRef_1);
 }
};
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.incquery/org.eclipse.incquery.patternlanguage.emf

 @Override
 public void apply(final JvmGenericType it) {
  it.setPackageName(processorPackageName);
  CharSequence _javadocProcessorClass = PatternMatchProcessorClassInferrer.this._javadocInferrer.javadocProcessorClass(pattern);
  String _string = _javadocProcessorClass.toString();
  PatternMatchProcessorClassInferrer.this._eMFJvmTypesBuilder.setDocumentation(it, _string);
  it.setAbstract(true);
  EList<JvmTypeReference> _superTypes = it.getSuperTypes();
  JvmTypeReference _typeRef = PatternMatchProcessorClassInferrer.this.builder.typeRef(matchClass);
  JvmTypeReference _typeRef_1 = PatternMatchProcessorClassInferrer.this.builder.typeRef(IMatchProcessor.class, _typeRef);
  PatternMatchProcessorClassInferrer.this._eMFJvmTypesBuilder.<JvmTypeReference>operator_add(_superTypes, _typeRef_1);
 }
};
origin: org.eclipse.xtext/org.eclipse.xtext.xbase

protected JvmGenericType createJvmGenericType(/* @Nullable */ EObject sourceElement, /* @Nullable */ String name) {
  if (sourceElement == null || name == null)
    return null;
  Pair<String, String> fullName = splitQualifiedName(name);
  final JvmGenericType result = typesFactory.createJvmGenericType();
  result.setSimpleName(fullName.getSecond());
  if (fullName.getFirst() != null)
    result.setPackageName(fullName.getFirst());
  result.setVisibility(JvmVisibility.PUBLIC);
  return result;
}
origin: org.eclipse.xtext.common/types

result.setSimpleName(clazz.getSimpleName());
if (clazz.getDeclaringClass() == null && clazz.getPackage() != null)
  result.setPackageName(clazz.getPackage().getName());
origin: org.eclipse.xtext/org.eclipse.xtext.common.types

result.setSimpleName(clazz.getSimpleName());
if (clazz.getDeclaringClass() == null && clazz.getPackage() != null)
  result.setPackageName(clazz.getPackage().getName());
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.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.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.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: org.eclipse.viatra/org.eclipse.viatra.query.patternlanguage.emf

 it.setStatic(true);
} else {
 it.setPackageName(packageName);
 this._eMFJvmTypesBuilder.setFileHeader(it, this._eMFPatternLanguageJvmModelInferrerUtil.getFileComment(pattern));
 it.setStatic(true);
} else {
 it.setPackageName(packageName);
 this._eMFJvmTypesBuilder.setFileHeader(it, this._eMFPatternLanguageJvmModelInferrerUtil.getFileComment(pattern));
org.eclipse.xtext.common.typesJvmGenericTypesetPackageName

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.
  • setSimpleName
  • setVisibility
  • getAllFeatures
  • getSimpleName
  • isAbstract
  • getSimpleName,
  • isAbstract,
  • setFinal,
  • setStatic,
  • setStrictFloatingPoint,
  • getDeclaredFields,
  • getDeclaredOperations,
  • getIdentifier,
  • isFinal

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getContentResolver (Context)
  • onCreateOptionsMenu (Activity)
  • findViewById (Activity)
  • PrintStream (java.io)
    Fake signature of an existing Java class.
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • JTextField (javax.swing)
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Top PhpStorm 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