INNER CODE UNIT · Java

getCurrentScopeCompensation

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

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

		return scopeStack.peek().getSelfCompensation();
	}

	/**
	 * Returns the compensator for scope name id.
	 *
	 * @param id the scope name owning the compensator to retrieve
	 * @return the compensator for scope name id.
	 */
	public synchronized Process getCompensation( String id ) {
		if( scopeStack.isEmpty() && parent != null ) {
			return parent.getCompensation( id );
		}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…