cfml.parsing.cfscript.script.CFParamStatement Maven / Gradle / Ivy
package cfml.parsing.cfscript.script;
import java.util.HashSet;
import java.util.Map;
import cfml.parsing.cfscript.CFExpression;
import cfml.parsing.cfscript.CFIdentifier;
public class CFParamStatement extends CFParsedAttributeStatement implements java.io.Serializable {
private static final long serialVersionUID = 1L;
private static HashSet validAttributes;
static {
validAttributes = new HashSet();
validAttributes.add("DEFAULT");
validAttributes.add("TYPE");
validAttributes.add("NAME");
validAttributes.add("MAX");
validAttributes.add("MIN");
validAttributes.add("PATTERN");
}
public CFParamStatement(org.antlr.v4.runtime.Token t, Map _attributes) {
super(t, _attributes);
validateAttributes(t, validAttributes);
}
@Override
public String Decompile(int indent) {
StringBuilder sb = new StringBuilder();
sb.append("param");
DecompileAttributes(sb);
return sb.toString();
}
public static HashSet getValidAttributes() {
return validAttributes;
}
}