![JAR search and dependency download from the Maven repository](/logo.png)
net.sourceforge.plantuml.preproc.DefineSignature Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plantuml-mit Show documentation
Show all versions of plantuml-mit Show documentation
PlantUML is a component that allows to quickly write diagrams from text.
// THIS FILE HAS BEEN GENERATED BY A PREPROCESSOR.
package net.sourceforge.plantuml.preproc;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.StringTokenizer;
public class DefineSignature {
private final String key;
private final String fonctionName;
private final List variables = new ArrayList<>();
private final boolean isMethod;
public DefineSignature(String key, String definitionQuoted) {
this.key = key;
this.isMethod = key.contains("(");
final StringTokenizer st = new StringTokenizer(key, "(),");
this.fonctionName = st.nextToken().trim();
final Variables master = new Variables(fonctionName, definitionQuoted);
while (st.hasMoreTokens()) {
final String var1 = st.nextToken().trim();
master.add(new DefineVariable(var1));
}
final int count = master.countDefaultValue();
for (int i = 0; i <= count; i++) {
variables.add(master.removeSomeDefaultValues(i));
}
}
@Override
public String toString() {
return key + "/" + fonctionName;
}
public boolean isMethod() {
return isMethod;
}
public String getKey() {
return key;
}
public List getVariationVariables() {
return Collections.unmodifiableList(variables);
}
public final String getFonctionName() {
return fonctionName;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy