Java Code Examples for org.stringtemplate.v4.Interpreter#getScopeStack()

The following examples show how to use org.stringtemplate.v4.Interpreter#getScopeStack() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JTreeScopeStackModel.java    From codebuff with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public JTreeScopeStackModel(InstanceScope scope) {
    root = new StringTree("Scope stack:");
    Set<String> names = new HashSet<String>();
    List<InstanceScope> stack = Interpreter.getScopeStack(scope, false);
    for (InstanceScope s : stack) {
        StringTree templateNode = new StringTree(s.st.getName());
        root.insertChild(0, templateNode);
        addAttributeDescriptions(s.st, templateNode, names);
    }
    //System.out.println(root.toStringTree());
}
 
Example 2
Source File: JTreeScopeStackModel.java    From codebuff with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public JTreeScopeStackModel(InstanceScope scope) {
	root = new StringTree("Scope stack:");
	Set<String> names = new HashSet<String>();
	List<InstanceScope> stack = Interpreter.getScopeStack(scope, false);
	for (InstanceScope s : stack) {
		StringTree templateNode = new StringTree(s.st.getName());
		root.insertChild(0, templateNode);
		addAttributeDescriptions(s.st, templateNode, names);
	}
	//System.out.println(root.toStringTree());
}
 
Example 3
Source File: JTreeScopeStackModel.java    From codebuff with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public JTreeScopeStackModel(InstanceScope scope) {
    root = new StringTree("Scope stack:");
    Set<String> names = new HashSet<String>();
    List<InstanceScope> stack = Interpreter.getScopeStack(scope, false);
    for (InstanceScope s : stack) {
        StringTree templateNode = new StringTree(s.st.getName());
        root.insertChild(0, templateNode);
        addAttributeDescriptions(s.st, templateNode, names);
    }
    //System.out.println(root.toStringTree());
}
 
Example 4
Source File: JTreeScopeStackModel.java    From codebuff with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public JTreeScopeStackModel(InstanceScope scope) {
    root = new StringTree("Scope stack:");
    Set<String> names = new HashSet<String>();
    List<InstanceScope> stack = Interpreter.getScopeStack(scope, false);
    for (InstanceScope s : stack) {
        StringTree templateNode = new StringTree(s.st.getName());
        root.insertChild(0, templateNode);
        addAttributeDescriptions(s.st, templateNode, names);
    }
    //System.out.println(root.toStringTree());
}
 
Example 5
Source File: JTreeScopeStackModel.java    From codebuff with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public JTreeScopeStackModel(InstanceScope scope) {
    root = new StringTree("Scope stack:");
    Set<String> names = new HashSet<String>();
    List<InstanceScope> stack = Interpreter.getScopeStack(scope, false);
    for (InstanceScope s : stack) {
        StringTree templateNode = new StringTree(s.st.getName());
        root.insertChild(0, templateNode);
        addAttributeDescriptions(s.st, templateNode, names);
    }
    //System.out.println(root.toStringTree());
}
 
Example 6
Source File: JTreeScopeStackModel.java    From codebuff with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public JTreeScopeStackModel(InstanceScope scope) {
    root = new StringTree("Scope stack:");
    Set<String> names = new HashSet<String>();
    List<InstanceScope> stack = Interpreter.getScopeStack(scope, false);
    for (InstanceScope s : stack) {
        StringTree templateNode = new StringTree(s.st.getName());
        root.insertChild(0, templateNode);
        addAttributeDescriptions(s.st, templateNode, names);
    }
    //System.out.println(root.toStringTree());
}
 
Example 7
Source File: JTreeScopeStackModel.java    From codebuff with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public JTreeScopeStackModel(InstanceScope scope) {
    root = new StringTree("Scope stack:");
    Set<String> names = new HashSet<String>();
    List<InstanceScope> stack = Interpreter.getScopeStack(scope, false);
    for (InstanceScope s : stack) {
        StringTree templateNode = new StringTree(s.st.getName());
        root.insertChild(0, templateNode);
        addAttributeDescriptions(s.st, templateNode, names);
    }
    //System.out.println(root.toStringTree());
}
 
Example 8
Source File: JTreeScopeStackModel.java    From codebuff with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public JTreeScopeStackModel(InstanceScope scope) {
    root = new StringTree("Scope stack:");
    Set<String> names = new HashSet<String>();
    List<InstanceScope> stack = Interpreter.getScopeStack(scope, false);
    for (InstanceScope s : stack) {
        StringTree templateNode = new StringTree(s.st.getName());
        root.insertChild(0, templateNode);
        addAttributeDescriptions(s.st, templateNode, names);
    }
    //System.out.println(root.toStringTree());
}
 
Example 9
Source File: JTreeScopeStackModel.java    From codebuff with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public JTreeScopeStackModel(InstanceScope scope) {
    root = new StringTree("Scope stack:");
    Set<String> names = new HashSet<String>();
    List<InstanceScope> stack = Interpreter.getScopeStack(scope, false);
    for (InstanceScope s : stack) {
        StringTree templateNode = new StringTree(s.st.getName());
        root.insertChild(0, templateNode);
        addAttributeDescriptions(s.st, templateNode, names);
    }
    //System.out.println(root.toStringTree());
}
 
Example 10
Source File: JTreeScopeStackModel.java    From codebuff with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public JTreeScopeStackModel(InstanceScope scope) {
    root = new StringTree("Scope stack:");
    Set<String> names = new HashSet<String>();
    List<InstanceScope> stack = Interpreter.getScopeStack(scope, false);
    for (InstanceScope s : stack) {
        StringTree templateNode = new StringTree(s.st.getName());
        root.insertChild(0, templateNode);
        addAttributeDescriptions(s.st, templateNode, names);
    }
    //System.out.println(root.toStringTree());
}
 
Example 11
Source File: JTreeScopeStackModel.java    From codebuff with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public JTreeScopeStackModel(InstanceScope scope) {
    root = new StringTree("Scope stack:");
    Set<String> names = new HashSet<String>();
    List<InstanceScope> stack = Interpreter.getScopeStack(scope, false);
    for (InstanceScope s : stack) {
        StringTree templateNode = new StringTree(s.st.getName());
        root.insertChild(0, templateNode);
        addAttributeDescriptions(s.st, templateNode, names);
    }
    //System.out.println(root.toStringTree());
}
 
Example 12
Source File: JTreeScopeStackModel.java    From codebuff with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public JTreeScopeStackModel(InstanceScope scope) {
    root = new StringTree("Scope stack:");
    Set<String> names = new HashSet<String>();
    List<InstanceScope> stack = Interpreter.getScopeStack(scope, false);
    for (InstanceScope s : stack) {
        StringTree templateNode = new StringTree(s.st.getName());
        root.insertChild(0, templateNode);
        addAttributeDescriptions(s.st, templateNode, names);
    }
    //System.out.println(root.toStringTree());
}
 
Example 13
Source File: JTreeScopeStackModel.java    From codebuff with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public JTreeScopeStackModel(InstanceScope scope) {
    root = new StringTree("Scope stack:");
    Set<String> names = new HashSet<String>();
    List<InstanceScope> stack = Interpreter.getScopeStack(scope, false);
    for (InstanceScope s : stack) {
        StringTree templateNode = new StringTree(s.st.getName());
        root.insertChild(0, templateNode);
        addAttributeDescriptions(s.st, templateNode, names);
    }
    //System.out.println(root.toStringTree());
}
 
Example 14
Source File: JTreeScopeStackModel.java    From codebuff with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public JTreeScopeStackModel(InstanceScope scope) {
    root = new StringTree("Scope stack:");
    Set<String> names = new HashSet<String>();
    List<InstanceScope> stack = Interpreter.getScopeStack(scope, false);
    for (InstanceScope s : stack) {
        StringTree templateNode = new StringTree(s.st.getName());
        root.insertChild(0, templateNode);
        addAttributeDescriptions(s.st, templateNode, names);
    }
    //System.out.println(root.toStringTree());
}
 
Example 15
Source File: JTreeScopeStackModel.java    From codebuff with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public JTreeScopeStackModel(InstanceScope scope) {
    root = new StringTree("Scope stack:");
    Set<String> names = new HashSet<String>();
    List<InstanceScope> stack = Interpreter.getScopeStack(scope, false);
    for (InstanceScope s : stack) {
        StringTree templateNode = new StringTree(s.st.getName());
        root.insertChild(0, templateNode);
        addAttributeDescriptions(s.st, templateNode, names);
    }
    //System.out.println(root.toStringTree());
}
 
Example 16
Source File: JTreeScopeStackModel.java    From codebuff with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public JTreeScopeStackModel(InstanceScope scope) {
    root = new StringTree("Scope stack:");
    Set<String> names = new HashSet<String>();
    List<InstanceScope> stack = Interpreter.getScopeStack(scope, false);
    for (InstanceScope s : stack) {
        StringTree templateNode = new StringTree(s.st.getName());
        root.insertChild(0, templateNode);
        addAttributeDescriptions(s.st, templateNode, names);
    }
    //System.out.println(root.toStringTree());
}
 
Example 17
Source File: JTreeScopeStackModel.java    From codebuff with BSD 2-Clause "Simplified" License 5 votes vote down vote up
public JTreeScopeStackModel(InstanceScope scope) {
    root = new StringTree("Scope stack:");
    Set<String> names = new HashSet<String>();
    List<InstanceScope> stack = Interpreter.getScopeStack(scope, false);
    for (InstanceScope s : stack) {
        StringTree templateNode = new StringTree(s.st.getName());
        root.insertChild(0, templateNode);
        addAttributeDescriptions(s.st, templateNode, names);
    }
    //System.out.println(root.toStringTree());
}