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

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

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

origin: org.testeditor/org.testeditor.tcl.dsl

private void _infer(final JvmGenericType result, final TestConfiguration element) {
 result.setAbstract(true);
}

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

@Override
public void setAbstract(final boolean isAbstract) {
 this.checkMutable();
 this.getDelegate().setAbstract(isAbstract);
}

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

/**
 * Creates a public interface declaration, associated to the given sourceElement. It sets the given name, which might be
 * fully qualified using the standard Java notation.
 * 
 * @param sourceElement
 *            the sourceElement the resulting element is associated with.
 * @param name
 *            the qualified name of the resulting class.
 * @param initializer
 *            the initializer to apply on the created interface element. If <code>null</code>, the interface won't be initialized.
 * 
 * @return a {@link JvmGenericType} representing a Java class of the given name, <code>null</code> 
 *            if sourceElement or name are <code>null</code>.
 */
/* @Nullable */ 
public JvmGenericType toInterface(/* @Nullable */ EObject sourceElement, /* @Nullable */ String name, /* @Nullable */ Procedure1<? super JvmGenericType> initializer) {
  final JvmGenericType result = createJvmGenericType(sourceElement, name);
  if (result == null)
    return null;
  result.setInterface(true);
  result.setAbstract(true);
  associate(sourceElement, result);
  return initializeSafely(result, initializer);
}
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

final JvmGenericType innerType = this.typesFactory.createJvmGenericType();
innerType.setInterface(false);
innerType.setAbstract(false);
innerType.setVisibility(JvmVisibility.PUBLIC);
innerType.setStatic(true);
origin: io.sarl.lang/io.sarl.lang

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

setVisibility(inferredJvmType, source);
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.setAbstract(source.isAbstract());
inferredJvmType.setStrictFloatingPoint(source.isStrictFloatingPoint());
if (!inferredJvmType.isAbstract()) {
origin: io.sarl.lang/io.sarl.lang

inferredJvmType.setStatic(false);
final boolean isAbstract = source.isAbstract() || Utils.hasAbstractMember(source);
inferredJvmType.setAbstract(isAbstract);
inferredJvmType.setStrictFloatingPoint(false);
inferredJvmType.setFinal(!isAbstract && source.isFinal());
origin: io.sarl.lang/io.sarl.lang

inferredJvmType.setAbstract(false);
inferredJvmType.setStrictFloatingPoint(false);
if (!inferredJvmType.isAbstract()) {
origin: io.sarl.lang/io.sarl.lang

inferredJvmType.setStatic(false);
final boolean isAbstract = source.isAbstract() || Utils.hasAbstractMember(source);
inferredJvmType.setAbstract(isAbstract);
inferredJvmType.setStrictFloatingPoint(false);
inferredJvmType.setFinal(!isAbstract && source.isFinal());
org.eclipse.xtext.common.typesJvmGenericTypesetAbstract

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
  • setInterface
    Sets the value of the ' org.eclipse.xtext.common.types.JvmGenericType#isInterface' attribute.
  • setPackageName
  • setSimpleName
  • setVisibility
  • getAllFeatures
  • getSimpleName
  • isAbstract
  • getSimpleName,
  • isAbstract,
  • setFinal,
  • setStatic,
  • setStrictFloatingPoint,
  • getDeclaredFields,
  • getDeclaredOperations,
  • getIdentifier,
  • isFinal

Popular in Java

  • Making http post requests using okhttp
  • onRequestPermissionsResult (Fragment)
  • getSharedPreferences (Context)
  • startActivity (Activity)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Selector (java.nio.channels)
    A controller for the selection of SelectableChannel objects. Selectable channels can be registered w
  • Calendar (java.util)
    Calendar is an abstract base class for converting between a Date object and a set of integer fields
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Best plugins for Eclipse
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