/** * get visitor name * * @return visitor name */ public String getVisitorName() { VisitorFile f = (VisitorFile) visitor.getAttributes().get("file"); LOGGER.debug("listener name {}", modFile(f)); return modFile(f); }
/** * get listener name * * @return listener name */ public String getListenerName() { ListenerFile f = (ListenerFile) listener.getAttributes().get("file"); LOGGER.debug("listener name {}", modFile(f)); return modFile(f); }
/** * get parser name * * @return parser name */ public String getParserName() { ParserFile f = (ParserFile) parser.getAttributes().get("file"); LOGGER.debug("parser name {}", modFile(f)); return modFile(f); }
/** * get lexer name * * @return lexer name */ public String getLexerName() { LexerFile f = (LexerFile) lexer.getAttributes().get("lexerFile"); LOGGER.debug("lexer name {}", modFile(f)); return modFile(f); }
/** * get base visitor name * * @return base visitor name */ public String getBaseVisitorName() { BaseVisitorFile f = (BaseVisitorFile) baseVisitor.getAttributes().get("file"); LOGGER.debug("listener name {}", modFile(f)); return modFile(f); }
/** * get base listener name * * @return base listener name */ public String getBaseListenerName() { BaseListenerFile f = (BaseListenerFile) baseListener.getAttributes().get("file"); LOGGER.debug("base listener name {}", modFile(f)); return modFile(f); }
public void addAttributeDescriptions(ST st, StringTree node) { Map<String, Object> attrs = st.getAttributes(); if ( attrs==null ) return; for (String a : attrs.keySet()) { String descr = null; if ( st.debugState!=null && st.debugState.addAttrEvents!=null ) { List<AddAttributeEvent> events = st.debugState.addAttrEvents.get(a); StringBuilder locations = new StringBuilder(); int i = 0; if ( events!=null ) { for (AddAttributeEvent ae : events) { if ( i>0 ) locations.append(", "); locations.append(ae.getFileName()+":"+ae.getLine()); i++; } } if ( locations.length()>0 ) { descr = a+" = "+attrs.get(a)+" @ "+locations.toString(); } else { descr = a + " = " +attrs.get(a); } } else { descr = a + " = " +attrs.get(a); } node.addChild( new StringTree(descr) ); } }
public void addAttributeDescriptions(ST st, StringTree node, Set<String> names) { Map<String, Object> attrs = st.getAttributes(); if ( attrs==null ) return; for (String a : attrs.keySet()) {
public void addAttributeDescriptions(ST st, StringTree node, Set<String> names) { Map<String, Object> attrs = st.getAttributes(); if ( attrs==null ) return; for (String a : attrs.keySet()) {
public void addAttributeDescriptions(ST st, StringTree node, Set<String> names) { Map<String, Object> attrs = st.getAttributes(); if ( attrs==null ) return; for (String a : attrs.keySet()) {
public void addAttributeDescriptions(ST st, StringTree node, Set<String> names) { Map<String, Object> attrs = st.getAttributes(); if ( attrs==null ) return; for (String a : attrs.keySet()) {
public void addAttributeDescriptions(ST st, StringTree node, Set<String> names) { Map<String, Object> attrs = st.getAttributes(); if ( attrs==null ) return; for (String a : attrs.keySet()) {
public void addAttributeDescriptions(ST st, StringTree node, Set<String> names) { Map<String, Object> attrs = st.getAttributes(); if ( attrs==null ) return; for (String a : attrs.keySet()) {
public void addAttributeDescriptions(ST st, StringTree node, Set<String> names) { Map<String, Object> attrs = st.getAttributes(); if ( attrs==null ) return; for (String a : attrs.keySet()) {