MethodDescription(IMethodDescription other, int index) { this( other.getName(), index, other.isOneway(), other.getInSignature(), other.getOutSignature(), other.getReturnSignature(), other.getMethod()); }
throws IOException int funId = desc.getIndex(); if (funId < 0 || funId > MAX_FUNCTIONID16) { throw new IllegalArgumentException( boolean moreFlags = forceSync && desc.isOneway(); boolean longHeader = moreFlags; int header = 0; new Type(XCurrentContext.class)); ITypeDescription[] inSig = desc.getInSignature(); ITypeDescription[] outSig = desc.getOutSignature(); for (int i = 0; i < inSig.length; ++i) { if (inSig[i] != null) { boolean sync = forceSync || !desc.isOneway(); if (sync) { pendingOut.push(
: null; IMethodDescription desc = inL1Type.getMethodDescription(functionId); ITypeDescription[] inSig = desc.getInSignature(); ITypeDescription[] outSig = desc.getOutSignature(); Object[] args = new Object[inSig.length]; for (int i = 0; i < args.length; ++i) { boolean sync = forcedSynchronous || !desc.isOneway(); if (sync) { pendingIn.push(
} else { resultType = (TypeDescription) pending.function.getReturnSignature(); argTypes = pending.function.getOutSignature(); args = pending.arguments;
private boolean writeRequest( boolean internal, String oid, TypeDescription type, String function, ThreadId tid, Object[] arguments) throws IOException { IMethodDescription desc = type.getMethodDescription(function); synchronized (output) { if (desc.getIndex() == MethodDescription.ID_RELEASE && releaseQueue.size() < MAX_RELEASE_QUEUE_SIZE) { releaseQueue.add( new QueuedRelease(internal, oid, type, desc, tid)); return false; } else { writeQueuedReleases(); return writeRequest( internal, oid, type, desc, tid, arguments, true); } } }
public IMethodDescription getMethodDescription(String name) { initMethodDescriptions(); for (int i = 0; i < superMethodDescriptions.length; ++i) { if (superMethodDescriptions[i].getName().equals(name)) { return superMethodDescriptions[i]; } } for (int i = 0; i < methodDescriptions.length; ++i) { if (methodDescriptions[i].getName().equals(name)) { return methodDescriptions[i]; } } return null; }
} else { resultType = (TypeDescription) pending.function.getReturnSignature(); argTypes = pending.function.getOutSignature(); args = pending.arguments;
+ " type " + t); int fid = message.getMethod().getIndex(); switch (fid) { case PROPERTIES_FID_REQUEST_CHANGE:
String oid = msg.getObjectId(); Type type = new Type(msg.getType()); int fid = msg.getMethod().getIndex(); if (fid == MethodDescription.ID_RELEASE) { _java_environment.revokeInterface(oid, type);