congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
JvmGenericType.isFinal
Code IndexAdd Tabnine to your IDE (free)

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

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

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

@Override
public boolean isFinal() {
 return this.getDelegate().isFinal();
}

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: org.eclipse.xtend/org.eclipse.xtend.core

@Check
public void checkSuperTypes(AnonymousClass anonymousClass) {
  JvmGenericType inferredType = associations.getInferredType(anonymousClass);
  if (inferredType != null) {
    JvmTypeReference superTypeRef = Iterables.getLast(inferredType.getSuperTypes());
    JvmType superType = superTypeRef.getType();
    if(superType instanceof JvmGenericType && ((JvmGenericType) superType).isFinal())
      error("Attempt to override final class", anonymousClass.getConstructorCall(), XCONSTRUCTOR_CALL__CONSTRUCTOR, INSIGNIFICANT_INDEX, OVERRIDDEN_FINAL);
  }
}

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

if (jvm.isFinal()) {
  bitset.set(4);
origin: org.eclipse.xtext/org.eclipse.xtext.xbase

protected ITreeAppendable _generateModifier(final JvmGenericType it, final ITreeAppendable appendable, final GeneratorConfig config) {
 ITreeAppendable _xblockexpression = null;
 {
  this.generateVisibilityModifier(it, appendable);
  boolean _isInterface = it.isInterface();
  boolean _not = (!_isInterface);
  if (_not) {
   boolean _isStatic = it.isStatic();
   if (_isStatic) {
    appendable.append("static ");
   }
   boolean _isAbstract = it.isAbstract();
   if (_isAbstract) {
    appendable.append("abstract ");
   }
  }
  boolean _isFinal = it.isFinal();
  if (_isFinal) {
   appendable.append("final ");
  }
  ITreeAppendable _xifexpression = null;
  boolean _isStrictFloatingPoint = it.isStrictFloatingPoint();
  if (_isStrictFloatingPoint) {
   _xifexpression = appendable.append("strictfp ");
  }
  _xblockexpression = _xifexpression;
 }
 return _xblockexpression;
}

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

@Check
public void checkSuperTypes(XtendClass xtendClass) {
  JvmTypeReference superClass = xtendClass.getExtends();
  if (superClass != null && superClass.getType() != null) {
    if (!(superClass.getType() instanceof JvmGenericType)
        || ((JvmGenericType) superClass.getType()).isInterface()) {
      error("Superclass must be a class", XTEND_CLASS__EXTENDS, CLASS_EXPECTED);
    } else {
      if (((JvmGenericType) superClass.getType()).isFinal()) {
        error("Attempt to override final class", XTEND_CLASS__EXTENDS, OVERRIDDEN_FINAL);
      }
      checkWildcardSupertype(xtendClass, superClass, XTEND_CLASS__EXTENDS, INSIGNIFICANT_INDEX);
    }
  }
  for (int i = 0; i < xtendClass.getImplements().size(); ++i) {
    JvmTypeReference implementedType = xtendClass.getImplements().get(i);
    if (!isInterface(implementedType.getType()) && !isAnnotation(implementedType.getType())) {
      error("Implemented interface must be an interface", XTEND_CLASS__IMPLEMENTS, i, INTERFACE_EXPECTED);
    }
    checkWildcardSupertype(xtendClass, implementedType, XTEND_CLASS__IMPLEMENTS, i);
  }
  JvmGenericType inferredType = associations.getInferredType(xtendClass);
  if (inferredType != null && hasCycleInHierarchy(inferredType, Sets.<JvmGenericType> newHashSet())) {
    error("The inheritance hierarchy of " + notNull(xtendClass.getName()) + " contains cycles",
        XTEND_TYPE_DECLARATION__NAME, CYCLIC_INHERITANCE);
  }
}
origin: io.sarl.lang/io.sarl.lang

&& context.getGeneratorConfig2().isGenerateInlineAnnotation()
&& !source.isAbstract() && !container.isInterface()
&& (source.isStatic() || source.isFinal() || container.isFinal())
&& context.getParentContext() == null
&& this.annotationFinder.findAnnotation(operation, Inline.class) == null) {
origin: org.eclipse.xtext/org.eclipse.xtext.xbase

JvmGenericType castedLeftType = (JvmGenericType) leftType;
EClass rightEClass = rightType.eClass();
if (castedLeftType.isFinal()) {
  if (rightEClass == TypesPackage.Literals.JVM_TYPE_PARAMETER && getSuperType(right, castedLeftType) != null) {
    return flags | SUCCESS | SUBTYPE;
org.eclipse.xtext.common.typesJvmGenericTypeisFinal

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

Popular in Java

  • Making http post requests using okhttp
  • addToBackStack (FragmentTransaction)
  • getSystemService (Context)
  • getApplicationContext (Context)
  • BorderLayout (java.awt)
    A border layout lays out a container, arranging and resizing its components to fit in five regions:
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • InputStream (java.io)
    A readable source of bytes.Most clients will use input streams that read data from the file system (
  • HashMap (java.util)
    HashMap is an implementation of Map. All optional operations are supported.All elements are permitte
  • UUID (java.util)
    UUID is an immutable representation of a 128-bit universally unique identifier (UUID). There are mul
  • Top Vim 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