/** * Check if a dependency is already declared in another same bindMethod (or class field) on another child class. */ private void checkDependencyAlreadyDeclaredInChild(Annotation annotation, String methodOrField, boolean method) { if (! m_baseClass && m_bindMethods.contains(methodOrField + "/" + m_descriptor)) { throw new IllegalStateException("Annotation " + annotation.getName().getShortName() + " declared on " + m_currentClassName + "." + methodOrField + (method ? " method" : " field") + " is already declared in child classe(s)"); } m_bindMethods.add(methodOrField + "/" + m_descriptor); }
final String shortName = name.getShortName();
/** * Set location information for a type. */ public void setTypeLocation(SetLocation location, TypeRef type) throws Exception { String sf = getSourceFileFor(type); if (sf != null) { File sff = IO.getFile(sf); if (sff != null) { String names[] = { type.getShorterName(), type.getFQN(), type.getShortName() .replace('$', '.') }; for (String name : names) { FileLine fl = Processor.findHeader(sff, Pattern.compile("(class|interface)\\s*" + name, Pattern.DOTALL)); if (fl != null) fl.set(location); } } location.file(sf); } }
final String shortName = name.getShortName();
final String shortName = name.getShortName();
String name = Clazz.unCamel(clazz.getClassName().getShortName()); String description = null; String localization = id;
.getFQN(); String name = Clazz.unCamel(clazz.getClassName() .getShortName()); String description = null; String localization = id;
String name = Clazz.unCamel(clazz.getClassName().getShortName()); String description = null; String localization = id;
.getFQN(); String name = Clazz.unCamel(clazz.getClassName() .getShortName()); String description = null; String localization = id;
String name = Clazz.unCamel(clazz.getClassName().getShortName()); String description = null; String localization = id;
next.setProperty("@class", current.getFQN()); next.setProperty("@class-short", current.getClassName() .getShortName()); PackageRef pref = current.getClassName() .getPackageRef();
next.setProperty("@class", current.getFQN()); next.setProperty("@class-short", current.getClassName() .getShortName()); PackageRef pref = current.getClassName() .getPackageRef();
private void add(String name, String value) { if (value == null) return; Processor next = new Processor(analyzer); next.setProperty("@class", current.getFQN()); next.setProperty("@class-short", current.getClassName().getShortName()); PackageRef pref = current.getClassName().getPackageRef(); next.setProperty("@package", pref.getFQN()); Attrs info = analyzer.getClasspathExports().get(pref); if (info == null) info = analyzer.getContained().get(pref); if (info != null && info.containsKey("version")) { next.setProperty("@version", info.get("version")); } Macro macro = next.getReplacer(); /* * These strings come from code, which might also be included from * external parties. So we just do not want to call any system commands * from these sources */ boolean prev = macro.setNosystem(true); try { value = macro.process(value); headers.add(name, value); next.close(); } finally { macro.setNosystem(prev); } }
private void add(String name, String value) { if (value == null) return; Processor next = new Processor(analyzer); next.setProperty("@class", current.getFQN()); next.setProperty("@class-short", current.getClassName().getShortName()); PackageRef pref = current.getClassName().getPackageRef(); next.setProperty("@package", pref.getFQN()); Attrs info = analyzer.getClasspathExports().get(pref); if (info == null) info = analyzer.getContained().get(pref); if (info != null && info.containsKey("version")) { next.setProperty("@version", info.get("version")); } Macro macro = next.getReplacer(); /* * These strings come from code, which might also be included from * external parties. So we just do not want to call any system commands * from these sources */ boolean prev = macro.setNosystem(true); try { value = macro.process(value); headers.add(name, value); next.close(); } finally { macro.setNosystem(prev); } }
/** * Set location information for a type. */ public void setTypeLocation(SetLocation location, TypeRef type) throws Exception { String sf = getSourceFileFor(type); if (sf != null) { File sff = IO.getFile(sf); if (sff != null) { String names[] = { type.getShorterName(), type.getFQN(), type.getShortName() .replace('$', '.') }; for (String name : names) { FileLine fl = Processor.findHeader(sff, Pattern.compile("(class|interface)\\s*" + name, Pattern.DOTALL)); if (fl != null) fl.set(location); } } location.file(sf); } }
public String getShortName() { return component.getShortName() + "[]"; }
public String getShortName() { return component.getShortName() + "[]"; }
public String getShortName() { return component.getShortName() + "[]"; }
@Override public String getShortName() { return component.getShortName() + "[]"; }
@Override public String getShortName() { return component.getShortName() + "[]"; }