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

  • Finding current android device location
  • addToBackStack (FragmentTransaction)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • runOnUiThread (Activity)
  • Pointer (com.sun.jna)
    An abstraction for a native pointer data type. A Pointer instance represents, on the Java side, a na
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • Timer (java.util)
    Timers schedule one-shot or recurring TimerTask for execution. Prefer java.util.concurrent.Scheduled
  • JFrame (javax.swing)
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now