Examples of kind()


Examples of org.eclipse.jdt.internal.compiler.lookup.ReferenceBinding.kind()

          } else {
            this.collection.computeConversion(this.scope, collectionType, collectionType);
          }

          TypeBinding[] arguments = null;
          switch (iterableType.kind()) {
            case Binding.RAW_TYPE : // for(Object o : Iterable)
              this.kind = RAW_ITERABLE;
              this.collectionElementType = this.scope.getJavaLangObject();
              if (!this.collectionElementType.isCompatibleWith(elementType)
                  && !this.scope.isBoxingCompatibleWith(this.collectionElementType, elementType)) {
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.lookup.TypeBinding.kind()

        argsContainCast = true;
      }
      argument.setExpressionContext(INVOCATION_CONTEXT);
      if ((argumentType = argumentTypes[i] = this.arguments[i].resolveType(scope)) == null)
        argHasError = true;
      if (argumentType != null && argumentType.kind() == Binding.POLY_TYPE) {
        if (this.innerInferenceHelper == null)
          this.innerInferenceHelper = new InnerInferenceHelper();
      }
    }
    if (argHasError) {
View Full Code Here

Examples of org.eclipse.sapphire.java.JavaType.kind()

       
        final JdtJavaTypeReferenceService service = new JdtJavaTypeReferenceService( project );
        final JavaType type = service.resolve( "foo.bar.TestClass" );
       
        assertNotNull( type );
        assertEquals( JavaTypeKind.CLASS, type.kind() );
    }
   
    @Test

    public void testIsAbstractClass() throws Exception
View Full Code Here

Examples of org.eclipse.sapphire.java.JavaTypeConstraint.kind()

        final PropertyDef property = context().find( PropertyDef.class );
        final JavaTypeConstraint javaTypeConstraintAnnotation = property.getAnnotation( JavaTypeConstraint.class );
       
        final Set<JavaTypeKind> kind = EnumSet.noneOf( JavaTypeKind.class );
       
        for( JavaTypeKind k : javaTypeConstraintAnnotation.kind() )
        {
            kind.add( k );
        }
       
        final Set<String> type = new HashSet<String>();
View Full Code Here

Examples of org.eclipse.ui.internal.texteditor.quickdiff.compare.rangedifferencer.RangeDifference.kind()

  private RangeDifference findConsistentRangeAfterLeft(int line, int size) {
    RangeDifference found= null;

    for (ListIterator it= fDifferences.listIterator(fDifferences.size()); it.hasPrevious();) {
      RangeDifference difference= (RangeDifference) it.previous();
      if (found == null || difference.kind() == RangeDifference.NOCHANGE
          && (difference.leftStart() > line && difference.leftLength() >= size
              || difference.leftStart() <= line && difference.leftEnd() - line >= size))
        found= difference;

      if (difference.leftStart() <= line)
View Full Code Here

Examples of org.jboss.xb.annotations.JBossXmlModelGroup.kind()

         JBossXmlModelGroup xmlModelGroup = propClassInfo.getUnderlyingAnnotation(JBossXmlModelGroup.class);
         if (xmlModelGroup != null && xmlModelGroup.particles().length == 0)
         {
            if (trace)
               log.trace("Property " + property.getName() + " is bound to " + xmlModelGroup.kind());

            ModelGroupBinding propertyGroup = null;
            QName groupName = null;
            if (!JBossXmlConstants.DEFAULT.equals(xmlModelGroup.name()))
               groupName = new QName(xmlModelGroup.name());
View Full Code Here

Examples of org.omg.CORBA.PrimitiveDef.kind()

* @param irObject org.omg.CORBA.IRObject
*/
protected IRPrimitive(org.omg.CORBA.IRObject irObject) {
  super(irObject);
  PrimitiveDef primitiveDef = PrimitiveDefHelper.narrow((org.omg.CORBA.Object)irObject);
  switch (primitiveDef.kind().value()) {
    case PrimitiveKind._pk_null:
      setName("null")// gibt's nicht laut CORBA Spez.
      break;
    case PrimitiveKind._pk_void:
      setName("void");
View Full Code Here

Examples of org.omg.CORBA.TypeCode.kind()

                                                       ServiceInfo serviceInfo) {
        CorbaObjectHandler handler = null;       
        TypeCode tc = CorbaUtils.getTypeCode(orb, idlType, typeMaps);
        if (CorbaUtils.isPrimitiveIdlType(idlType)) {
            // Any is a special primitive
            if (tc.kind().value() == TCKind._tk_any) {
                handler = new CorbaAnyHandler(name, idlType, tc, null);               
            } else {
                handler = new CorbaPrimitiveHandler(name, idlType, tc, null);
            }
        } else {
View Full Code Here

Examples of org.omg.CORBA.TypeCode.kind()

            } else {
                handler = new CorbaPrimitiveHandler(name, idlType, tc, null);
            }
        } else {
            CorbaTypeImpl type = CorbaUtils.getCorbaType(idlType, typeMaps);
            switch (tc.kind().value()) {
            case TCKind._tk_array:
                handler = new CorbaArrayHandler(name, idlType, tc, type);
                break;
            case TCKind._tk_enum:
                handler = new CorbaEnumHandler(name, idlType, tc, type);
View Full Code Here

Examples of org.omg.CORBA.TypeCode.kind()

        TypeCode objTypeCode = orb.get_primitive_tc(TCKind.tk_float);
        CorbaPrimitiveHandler obj = new CorbaPrimitiveHandler(objName, objIdlType, objTypeCode, null);
        CorbaStreamable streamable = new CorbaStreamable(obj, objName);      

        TypeCode type = streamable._type();
        assertTrue(type.kind().value() == objTypeCode.kind().value());
       
        CorbaPrimitiveHandler storedObj = (CorbaPrimitiveHandler)streamable.getObject();
        assertNotNull(storedObj);
       
        int mode = streamable.getMode();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.