private static TypeClass getElementTypeClass(ITypeDescription desc) { for (;; desc = desc.getComponentType()) { TypeClass tc = desc.getTypeClass(); if (tc != TypeClass.SEQUENCE) { return tc; } } }
/** * Constructs a new <code>Type</code> from the given type description. * * @param typeDescription a type description. Must not be * <code>null</code>. */ public Type(ITypeDescription typeDescription) { _typeName = typeDescription.getTypeName(); _typeClass = typeDescription.getTypeClass(); _iTypeDescription = typeDescription; }
args[i], 0, unmarshal.readValue( (TypeDescription) argTypes[i].getComponentType()));
if (outSig[i] != null) { Object inout = Array.newInstance( outSig[i].getComponentType().getZClass(), 1); Array.set( inout, 0, unmarshal.readValue( (TypeDescription) outSig[i].getComponentType())); args[i] = inout; } else { outSig[i].getComponentType().getZClass(), 1);
private void handleInternalMessage(Message message) throws IOException { if (message.isRequest()) { String t = message.getType().getTypeName(); if (!t.equals("com.sun.star.bridge.XProtocolProperties")) { throw new IOException(
/** * Dispatches a <code>queryInterface</code> call * <p> * @return the result of the call (should be an <code>Any</code>) * @param message the parameter for the call * @param resultClass the result type as an out parameter * @param status the status as an out parameter * @param o_outs the out parameters of the call as out parameters * @param o_out_sig the out signature as an out parameter */ protected Object dispatch_queryInterface(Type type) { Class zInterface = type.getTypeDescription().getZClass(); Object result = null; Object face = UnoRuntime.queryInterface(zInterface, _object); // the hell knows why, but empty interfaces a given back as void anys if(face != null) result = new Any(type, face); return result; }
ITypeDescription superType = getSuperType(); IFieldDescription[] superDescs = superType == null ? null : superType.getFieldDescriptions(); int superCount = superDescs == null ? 0 : superDescs.length; IFieldDescription[] descs = new IFieldDescription[
if (argTypes[i] != null) { marshal.writeValue( (TypeDescription) argTypes[i].getComponentType(), Array.get(args[i], 0));
if (outSig[i] != null) { marshal.writeValue( (TypeDescription) outSig[i].getComponentType(), ((Object[]) arguments[i])[0]); } else {