本文整理匯總了Java中mondrian.util.ArrayStack類的典型用法代碼示例。如果您正苦於以下問題:Java ArrayStack類的具體用法?Java ArrayStack怎麽用?Java ArrayStack使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
ArrayStack類屬於mondrian.util包,在下文中一共展示了ArrayStack類的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: lookupScopedNamedSet
import mondrian.util.ArrayStack; //導入依賴的package包/類
/**
* Looks up a named set defined by an alias.
*
* @param nameParts Multi-part identifier for set
* @param scopeList Parse tree node where name is used (last in list) and
*/
ScopedNamedSet lookupScopedNamedSet(
List<Id.Segment> nameParts,
ArrayStack<QueryPart> scopeList)
{
if (nameParts.size() != 1) {
return null;
}
if (!(nameParts.get(0) instanceof Id.NameSegment)) {
return null;
}
String name = ((Id.NameSegment) nameParts.get(0)).getName();
ScopedNamedSet bestScopedNamedSet = null;
int bestScopeOrdinal = -1;
for (ScopedNamedSet scopedNamedSet : scopedNamedSets) {
if (Util.equalName(scopedNamedSet.name, name)) {
int scopeOrdinal = scopeList.indexOf(scopedNamedSet.scope);
if (scopeOrdinal > bestScopeOrdinal) {
bestScopedNamedSet = scopedNamedSet;
bestScopeOrdinal = scopeOrdinal;
}
}
}
return bestScopedNamedSet;
}
示例2: lookupScopedNamedSet
import mondrian.util.ArrayStack; //導入依賴的package包/類
/**
* Looks up a named set defined by an alias.
*
* @param nameParts Multi-part identifier for set
* @param scopeList Parse tree node where name is used (last in list) and
*/
ScopedNamedSet lookupScopedNamedSet(
List<Id.Segment> nameParts,
ArrayStack<QueryPart> scopeList)
{
if (nameParts.size() != 1) {
return null;
}
String name = nameParts.get(0).name;
ScopedNamedSet bestScopedNamedSet = null;
int bestScopeOrdinal = -1;
for (ScopedNamedSet scopedNamedSet : scopedNamedSets) {
if (Util.equalName(scopedNamedSet.name, name)) {
int scopeOrdinal = scopeList.indexOf(scopedNamedSet.scope);
if (scopeOrdinal > bestScopeOrdinal) {
bestScopedNamedSet = scopedNamedSet;
bestScopeOrdinal = scopeOrdinal;
}
}
}
return bestScopedNamedSet;
}
示例3: initialValue
import mondrian.util.ArrayStack; //導入依賴的package包/類
protected ArrayStack<Locus> initialValue() {
return new ArrayStack<Locus>();
}
示例4: Walker
import mondrian.util.ArrayStack; //導入依賴的package包/類
public Walker(Walkable root)
{
stack = new ArrayStack();
currentFrame = null;
visit(null, root);
}
示例5: getScopeStack
import mondrian.util.ArrayStack; //導入依賴的package包/類
public ArrayStack<QueryPart> getScopeStack() {
return stack;
}