All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cfml.parsing.cfscript.CFScopeStack Maven / Gradle / Ivy

There is a newer version: 2.11.0
Show newest version
/*
 A stack of CFScope's is used to maintain local scopes, comprising the
 local vars and params, and nesting with object, as well as the global scope,
 comprising special global scope's (e.g. document/window in browsers), and
 the true global scope.
 */

package cfml.parsing.cfscript;

import java.util.ArrayList;

public class CFScopeStack extends ArrayList {
	
	private static final long serialVersionUID = 1L;
	
	public void push(CFScope scope) {
		super.add(scope);
	}
	
	public void pop() {
		super.remove(size() - 1);
	}
	
	public CFScope peek() {
		return super.get(size() - 1);
	}
	
	public CFScope peekFirst() {
		return super.get(0);
	}
	
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy