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

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

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

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

/**
 * Determine whether the given type contributes to the conflict caused by the given default interface implementation.
 */
private boolean contributesToConflict(JvmGenericType rootType, ConflictingDefaultOperation conflictingDefaultOperation) {
  Set<JvmDeclaredType> involvedInterfaces = Sets.newHashSet();
  involvedInterfaces.add(conflictingDefaultOperation.getDeclaration().getDeclaringType());
  for (IResolvedOperation conflictingOperation : conflictingDefaultOperation.getConflictingOperations()) {
    involvedInterfaces.add(conflictingOperation.getDeclaration().getDeclaringType());
  }
  RecursionGuard<JvmDeclaredType> recursionGuard = new RecursionGuard<JvmDeclaredType>();
  if (rootType.isInterface()) {
    int contributingCount = 0;
    for (JvmTypeReference typeRef : rootType.getExtendedInterfaces()) {
      JvmType rawType = typeRef.getType();
      if (rawType instanceof JvmDeclaredType && contributesToConflict((JvmDeclaredType) rawType, involvedInterfaces, recursionGuard)) {
        contributingCount++;
      }
    }
    return contributingCount >= 2;
  } else {
    return contributesToConflict(rootType, involvedInterfaces, recursionGuard);
  }
}

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

public void registerAllTypes(final JvmType type, final Function1<? super String, ? extends Boolean> acceptor) {
 if (((type == null) || type.eIsProxy())) {
  return;
 }
 if (((!this.isLocal(type)) && (acceptor.apply(type.getIdentifier())).booleanValue())) {
  boolean _matched = false;
  if (type instanceof JvmGenericType) {
   _matched=true;
   this.registerAllTypes(((JvmGenericType)type).getDeclaringType(), acceptor);
   JvmTypeReference _extendedClass = null;
   if (((JvmGenericType)type)!=null) {
    _extendedClass=((JvmGenericType)type).getExtendedClass();
   }
   JvmType _type = null;
   if (_extendedClass!=null) {
    _type=_extendedClass.getType();
   }
   this.registerAllTypes(_type, acceptor);
   final Consumer<JvmTypeReference> _function = (JvmTypeReference it) -> {
    JvmType _type_1 = null;
    if (it!=null) {
     _type_1=it.getType();
    }
    this.registerAllTypes(_type_1, acceptor);
   };
   ((JvmGenericType)type).getExtendedInterfaces().forEach(_function);
  }
 }
}

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

innerType.getTypeParameters().add(typeParameter);
final Iterator<JvmTypeReference> extendedTypeIterator = inferredJvmType.getExtendedInterfaces().iterator();
if (extendedTypeIterator.hasNext()) {
  final JvmTypeReference extendedType = extendedTypeIterator.next();
for (final JvmGenericType sourceType : Iterables.concat(
    Collections.singletonList(inferredJvmType),
    Iterables.transform(Iterables.skip(inferredJvmType.getExtendedInterfaces(), 1), it -> {
      return (JvmGenericType) it.getType();
    }))) {
org.eclipse.xtext.common.typesJvmGenericTypegetExtendedInterfaces

Javadoc

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

Popular in Java

  • Updating database using SQL prepared statement
  • startActivity (Activity)
  • setScale (BigDecimal)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • CountDownLatch (java.util.concurrent)
    A synchronization aid that allows one or more threads to wait until a set of operations being perfor
  • Join (org.hibernate.mapping)
  • Best IntelliJ 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