Java Code Examples for org.stringtemplate.v4.ST#isAnonSubtemplate()

The following examples show how to use org.stringtemplate.v4.ST#isAnonSubtemplate() . 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: JTreeSTModel.java    From codebuff with BSD 2-Clause "Simplified" License 5 votes vote down vote up
@Override
public String toString() {
    ST st = event.scope.st;
    if ( st.isAnonSubtemplate() ) return "{...}";
    if ( st.debugState!=null && st.debugState.newSTEvent!=null ) {
        String label = st.toString()+" @ "+st.debugState.newSTEvent.getFileName()+":" +
                       st.debugState.newSTEvent.getLine();
        return "<html><b>" +
            StringRenderer.escapeHTML(label)+"</b></html>";
    }
    else {
        return st.toString();
    }
}
 
Example 2
Source File: JTreeSTModel.java    From codebuff with BSD 2-Clause "Simplified" License 5 votes vote down vote up
@Override
public String toString() {
	ST st = event.scope.st;
	if ( st.isAnonSubtemplate() ) return "{...}";
	if ( st.debugState!=null && st.debugState.newSTEvent!=null ) {
		String label = st.toString()+" @ "+st.debugState.newSTEvent.getFileName()+":"+
			   st.debugState.newSTEvent.getLine();
		return "<html><b>" + StringRenderer.escapeHTML(label) + "</b></html>";
	}
	else {
		return st.toString();
	}
}
 
Example 3
Source File: JTreeSTModel.java    From codebuff with BSD 2-Clause "Simplified" License 5 votes vote down vote up
@Override
public String toString() {
    ST st = event.scope.st;
    if ( st.isAnonSubtemplate() ) return "{...}";
    if ( st.debugState!=null && st.debugState.newSTEvent!=null ) {
        String label = st.toString()+" @ "+st.debugState.newSTEvent.getFileName()+":" +
                       st.debugState.newSTEvent.getLine();
        return "<html><b>" +
            StringRenderer.escapeHTML(label)+"</b></html>";
    }
    else {
        return st.toString();
    }
}
 
Example 4
Source File: JTreeSTModel.java    From codebuff with BSD 2-Clause "Simplified" License 5 votes vote down vote up
@Override
public String toString() {
    ST st = event.scope.st;
    if ( st.isAnonSubtemplate() ) return "{...}";
    if ( st.debugState!=null && st.debugState.newSTEvent!=null ) {
        String label = st.toString()+" @ "+st.debugState.newSTEvent.getFileName()+":" +
                       st.debugState.newSTEvent.getLine();
        return "<html><b>"+
               StringRenderer.escapeHTML(label)+"</b></html>";
    }
    else {
        return st.toString();
    }
}
 
Example 5
Source File: JTreeSTModel.java    From codebuff with BSD 2-Clause "Simplified" License 5 votes vote down vote up
@Override
public String toString() {
    ST st = event.scope.st;
    if ( st.isAnonSubtemplate() ) return "{...}";
    if ( st.debugState!=null && st.debugState.newSTEvent!=null ) {
        String label =
            st.toString()+" @ "+st.debugState.newSTEvent.getFileName()+":" +
            st.debugState.newSTEvent.getLine();
        return "<html><b>" +
               StringRenderer.escapeHTML(label)+"</b></html>";
    }
    else {
        return st.toString();
    }
}
 
Example 6
Source File: JTreeSTModel.java    From codebuff with BSD 2-Clause "Simplified" License 5 votes vote down vote up
@Override
public String toString() {
    ST st = event.scope.st;
    if ( st.isAnonSubtemplate() ) return "{...}";
    if ( st.debugState!=null && st.debugState.newSTEvent!=null ) {
        String label = st.toString()+" @ "+st.debugState.newSTEvent.getFileName()+":" +
                       st.debugState.newSTEvent.getLine();
        return "<html><b>" +
            StringRenderer.escapeHTML(label)+"</b></html>";
    }
    else {
        return st.toString();
    }
}
 
Example 7
Source File: JTreeSTModel.java    From codebuff with BSD 2-Clause "Simplified" License 5 votes vote down vote up
@Override
public String toString() {
    ST st = event.scope.st;
    if ( st.isAnonSubtemplate() ) return "{...}";
    if ( st.debugState!=null && st.debugState.newSTEvent!=null ) {
        String label = st.toString()+" @ "+st.debugState.newSTEvent.getFileName()+":" +
                       st.debugState.newSTEvent.getLine();
        return "<html><b>" +
            StringRenderer.escapeHTML(label)+"</b></html>";
    }
    else {
        return st.toString();
    }
}
 
Example 8
Source File: JTreeSTModel.java    From codebuff with BSD 2-Clause "Simplified" License 5 votes vote down vote up
@Override
public String toString() {
    ST st = event.scope.st;
    if ( st.isAnonSubtemplate() ) return "{...}";
    if ( st.debugState!=null && st.debugState.newSTEvent!=null ) {
        String label = st.toString()+" @ "+st.debugState.newSTEvent.getFileName()+":" +
                       st.debugState.newSTEvent.getLine();
        return "<html><b>"+
               StringRenderer.escapeHTML(label)+"</b></html>";
    }
    else {
        return st.toString();
    }
}
 
Example 9
Source File: JTreeSTModel.java    From codebuff with BSD 2-Clause "Simplified" License 5 votes vote down vote up
@Override
public String toString() {
    ST st = event.scope.st;
    if ( st.isAnonSubtemplate() ) return "{...}";
    if ( st.debugState!=null && st.debugState.newSTEvent!=null ) {
        String label = st.toString()+" @ "+st.debugState.newSTEvent.getFileName()+":" +
                       st.debugState.newSTEvent.getLine();
        return "<html><b>" +
            StringRenderer.escapeHTML(label)+"</b></html>";
    }
    else {
        return st.toString();
    }
}
 
Example 10
Source File: JTreeSTModel.java    From codebuff with BSD 2-Clause "Simplified" License 5 votes vote down vote up
@Override
public String toString() {
    ST st = event.scope.st;
    if ( st.isAnonSubtemplate() ) return "{...}";
    if ( st.debugState!=null && st.debugState.newSTEvent!=null ) {
        String label = st.toString()+" @ "+st.debugState.newSTEvent.getFileName()+":"+st.debugState.newSTEvent.getLine();
        return "<html><b>"+StringRenderer.escapeHTML(label)+"</b></html>";
    }
    else {
        return st.toString();
    }
}
 
Example 11
Source File: JTreeSTModel.java    From codebuff with BSD 2-Clause "Simplified" License 5 votes vote down vote up
@Override
public String toString() {
    ST st = event.scope.st;
    if ( st.isAnonSubtemplate() ) return "{...}";
    if ( st.debugState!=null && st.debugState.newSTEvent!=null ) {
        String label = st.toString()+" @ "+st.debugState.newSTEvent.getFileName()+":"+st.debugState.newSTEvent.getLine();
        return "<html><b>"+StringRenderer.escapeHTML(label)+"</b></html>";
    }
    else {
        return st.toString();
    }
}
 
Example 12
Source File: JTreeSTModel.java    From codebuff with BSD 2-Clause "Simplified" License 5 votes vote down vote up
@Override
public String toString() {
    ST st = event.scope.st;
    if ( st.isAnonSubtemplate() ) return "{...}";
    if ( st.debugState!=null && st.debugState.newSTEvent!=null ) {
        String label = st.toString()+" @ "+st.debugState.newSTEvent.getFileName()+":"+st.debugState.newSTEvent.getLine();
        return "<html><b>"+StringRenderer.escapeHTML(label)+"</b></html>";
    }
    else {
        return st.toString();
    }
}
 
Example 13
Source File: JTreeSTModel.java    From codebuff with BSD 2-Clause "Simplified" License 5 votes vote down vote up
@Override
public String toString() {
    ST st = event.scope.st;
    if ( st.isAnonSubtemplate() ) return "{...}";
    if ( st.debugState!=null && st.debugState.newSTEvent!=null ) {
        String label = st.toString()+" @ "+st.debugState.newSTEvent.getFileName()+":"+st.debugState.newSTEvent.getLine();
        return "<html><b>"+StringRenderer.escapeHTML(label)+"</b></html>";
    }
    else {
        return st.toString();
    }
}
 
Example 14
Source File: JTreeSTModel.java    From codebuff with BSD 2-Clause "Simplified" License 5 votes vote down vote up
@Override
public String toString() {
    ST st = event.scope.st;
    if ( st.isAnonSubtemplate() ) return "{...}";
    if ( st.debugState!=null && st.debugState.newSTEvent!=null ) {
        String label = st.toString()+" @ "+st.debugState.newSTEvent.getFileName()+":"+st.debugState.newSTEvent.getLine();
        return "<html><b>"+StringRenderer.escapeHTML(label)+"</b></html>";
    }
    else {
        return st.toString();
    }
}
 
Example 15
Source File: JTreeSTModel.java    From codebuff with BSD 2-Clause "Simplified" License 5 votes vote down vote up
@Override
public String toString() {
    ST st = event.scope.st;
    if ( st.isAnonSubtemplate() ) return "{...}";
    if ( st.debugState!=null && st.debugState.newSTEvent!=null ) {
        String label = st.toString()+" @ "+st.debugState.newSTEvent.getFileName()+":"+st.debugState.newSTEvent.getLine();
        return "<html><b>"+StringRenderer.escapeHTML(label)+"</b></html>";
    }
    else {
        return st.toString();
    }
}
 
Example 16
Source File: JTreeSTModel.java    From codebuff with BSD 2-Clause "Simplified" License 5 votes vote down vote up
@Override
public String toString() {
    ST st = event.scope.st;
    if ( st.isAnonSubtemplate() ) return "{...}";
    if ( st.debugState!=null && st.debugState.newSTEvent!=null ) {
        String label = st.toString()+" @ "+st.debugState.newSTEvent.getFileName()+":"+st.debugState.newSTEvent.getLine();
        return "<html><b>"+StringRenderer.escapeHTML(label)+"</b></html>";
    }
    else {
        return st.toString();
    }
}
 
Example 17
Source File: JTreeSTModel.java    From codebuff with BSD 2-Clause "Simplified" License 5 votes vote down vote up
@Override
public String toString() {
    ST st = event.scope.st;
    if ( st.isAnonSubtemplate() ) return "{...}";
    if ( st.debugState!=null && st.debugState.newSTEvent!=null ) {
        String label = st.toString()+" @ "+st.debugState.newSTEvent.getFileName()+":"+st.debugState.newSTEvent.getLine();
        return "<html><b>"+StringRenderer.escapeHTML(label)+"</b></html>";
    }
    else {
        return st.toString();
    }
}