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

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

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

origin: org.eclipse.emf.parsley/org.eclipse.emf.parsley.dsl

private boolean shouldOverride(final JvmGenericType it, final String methodName) {
 final Function1<JvmOperation, Boolean> _function = new Function1<JvmOperation, Boolean>() {
  @Override
  public Boolean apply(final JvmOperation it) {
   String _simpleName = it.getSimpleName();
   return Boolean.valueOf(Objects.equal(_simpleName, methodName));
  }
 };
 return IterableExtensions.<JvmOperation>exists(Iterables.<JvmOperation>filter(it.getAllFeatures(), JvmOperation.class), _function);
}

origin: org.eclipse.emf.parsley/org.eclipse.emf.parsley.dsl

 private Iterable<JvmOperation> superTypeJvmOperations(final JvmGenericType type) {
  if ((type == null)) {
   return CollectionLiterals.<JvmOperation>emptyList();
  }
  JvmType _type = IterableExtensions.<JvmTypeReference>head(type.getSuperTypes()).getType();
  return Iterables.<JvmOperation>filter(((JvmGenericType) _type).getAllFeatures(), JvmOperation.class);
 }
}
origin: org.eclipse.emf.parsley/org.eclipse.emf.parsley.dsl

protected IScope _customScope(final JvmGenericType t) {
 final Function1<JvmOperation, Boolean> _function = new Function1<JvmOperation, Boolean>() {
  @Override
  public Boolean apply(final JvmOperation it) {
   boolean _isStatic = it.isStatic();
   return Boolean.valueOf((!_isStatic));
  }
 };
 final Function<JvmOperation, QualifiedName> _function_1 = new Function<JvmOperation, QualifiedName>() {
  @Override
  public QualifiedName apply(final JvmOperation it) {
   QualifiedName _xifexpression = null;
   boolean _isGetterMethod = EmfParsleyDslScopeProvider.this.isGetterMethod(it.getSimpleName());
   if (_isGetterMethod) {
    _xifexpression = QualifiedName.create(EmfParsleyDslScopeProvider.this.getPropertyNameForGetterMethod(it.getSimpleName()));
   } else {
    _xifexpression = null;
   }
   return _xifexpression;
  }
 };
 Iterable<IEObjectDescription> _scopedElementsFor = Scopes.<JvmOperation>scopedElementsFor(IterableExtensions.<JvmOperation>filter(Iterables.<JvmOperation>filter(t.getAllFeatures(), JvmOperation.class), _function), _function_1);
 return new SimpleScope(_scopedElementsFor);
}

origin: org.eclipse.xtext/org.eclipse.xtext.xbase

protected JvmOperation findImplementingOperation(List<JvmType> rawTypes) {
  if (rawTypes.size() == 1) {
    JvmType rawType = rawTypes.get(0);
    if (rawType.eClass() == TypesPackage.Literals.JVM_GENERIC_TYPE) {
      JvmGenericType castedRawType = (JvmGenericType) rawType;
      if (!castedRawType.isFinal()) {
        Iterable<JvmFeature> features = castedRawType.getAllFeatures();
        JvmOperation result = null;
        for (JvmFeature feature : features) {
          if (feature.eClass() == TypesPackage.Literals.JVM_OPERATION) {
            JvmOperation op = (JvmOperation) feature;
            if (isValidFunction(op)) {
              if (result == null)
                result = op;
              else {
                return null;
              }
            }
          }
        }
        return result;
      }
    }
  }
  return null;
}
origin: io.sarl.lang/io.sarl.lang

  for (final JvmFeature feature : ((JvmGenericType) interfaceReference.getType()).getAllFeatures()) {
    if (!"java.lang.Object".equals(//$NON-NLS-1$
        feature.getDeclaringType().getQualifiedName())) {
for (final JvmFeature feature : parentType.getAllFeatures()) {
  if (!"java.lang.Object".equals(feature.getDeclaringType().getQualifiedName()) //$NON-NLS-1$
      && isVisible(jvmElement, feature)
origin: org.eclipse.xtend/org.eclipse.xtend.core

 return Boolean.valueOf(Objects.equal(_simpleName, featureName));
};
final JvmField field = IterableExtensions.<JvmField>findFirst(Iterables.<JvmField>filter(((JvmGenericType)type).getAllFeatures(), JvmField.class), _function);
if ((field == null)) {
 String _simpleName = ((JvmTypeReference)receiver).getSimpleName();
org.eclipse.xtext.common.typesJvmGenericTypegetAllFeatures

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

Popular in Java

  • Start an intent from android
  • scheduleAtFixedRate (Timer)
  • addToBackStack (FragmentTransaction)
  • getApplicationContext (Context)
  • Graphics2D (java.awt)
    This Graphics2D class extends the Graphics class to provide more sophisticated control overgraphics
  • Point (java.awt)
    A point representing a location in (x,y) coordinate space, specified in integer precision.
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Semaphore (java.util.concurrent)
    A counting semaphore. Conceptually, a semaphore maintains a set of permits. Each #acquire blocks if
  • Filter (javax.servlet)
    A filter is an object that performs filtering tasks on either the request to a resource (a servlet o
  • Top 12 Jupyter Notebook extensions
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