All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cfml.parsing.cfscript.script.CFParamStatement Maven / Gradle / Ivy

There is a newer version: 2.11.0
Show newest version
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;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy