INNER CODE UNIT · Java

getCompensation

jolie/jolie · jolie/src/main/java/jolie/ExecutionThread.java:269

	public synchronized Process getCompensation( String id ) {
		if( scopeStack.isEmpty() && parent != null ) {
			return parent.getCompensation( id );
		}

		return scopeStack.peek().getCompensation( id );
	}

	/**
	 * Returns true if this thread is executing inside a scope. Use this method to check if calling a
	 * variant of popScope is safe.
	 *
	 * @see #popScope()
	 * @see #popScope(boolean)
	 * @return true if this thread is executing inside a scope.
	 */
	public synchronized boolean hasScope() {
		return !scopeStack.isEmpty();

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…