railo.runtime.type
Class FunctionArgumentImpl

java.lang.Object
  extended by railo.runtime.type.FunctionArgumentImpl
All Implemented Interfaces:
Externalizable, Serializable, FunctionArgument

public final class FunctionArgumentImpl
extends Object
implements FunctionArgument, Externalizable

a single argument of a function

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface railo.runtime.type.FunctionArgument
DEFAULT_TYPE_LITERAL, DEFAULT_TYPE_NULL, DEFAULT_TYPE_RUNTIME_EXPRESSION
 
Constructor Summary
FunctionArgumentImpl()
          NEVER USE THIS CONSTRUCTOR, this constructor is only for deserialize this object from stream
FunctionArgumentImpl(Collection.Key name)
           
FunctionArgumentImpl(Collection.Key name, short type)
           
FunctionArgumentImpl(Collection.Key name, String type, boolean required, int defaultType, boolean passByReference, String dspName, String hint, StructImpl meta)
          Deprecated. use other constructor
FunctionArgumentImpl(Collection.Key name, String strType, short type)
           
FunctionArgumentImpl(Collection.Key name, String strType, short type, boolean required)
           
FunctionArgumentImpl(Collection.Key name, String strType, short type, boolean required, int defaultType)
           
FunctionArgumentImpl(Collection.Key name, String strType, short type, boolean required, int defaultType, boolean passByReference)
           
FunctionArgumentImpl(Collection.Key name, String strType, short type, boolean required, int defaultType, boolean passByReference, String dspName)
           
FunctionArgumentImpl(Collection.Key name, String strType, short type, boolean required, int defaultType, boolean passByReference, String dspName, String hint)
           
FunctionArgumentImpl(Collection.Key name, String strType, short type, boolean required, int defaultType, boolean passByReference, String dspName, String hint, StructImpl meta)
           
FunctionArgumentImpl(String name, String type, boolean required)
          Deprecated. use other constructor
FunctionArgumentImpl(String name, String type, boolean required, double defaultType, boolean passByReference, String dspName, String hint, StructImpl meta)
          Deprecated. use other constructor
FunctionArgumentImpl(String name, String type, boolean required, double defaultType, String dspName, String hint, StructImpl meta)
          Deprecated. use other constructor
FunctionArgumentImpl(String name, String type, boolean required, int defaultType, boolean passByReference, String dspName, String hint, StructImpl meta)
          Deprecated. use other constructor
FunctionArgumentImpl(String name, String type, boolean required, int defaultType, String dspName, String hint, StructImpl meta)
          Deprecated. use other constructor
FunctionArgumentImpl(String name, String type, boolean required, String dspName, String hint)
          Deprecated. use other constructor
FunctionArgumentImpl(String name, String type, boolean required, String dspName, String hint, StructImpl meta)
          Deprecated. use other constructor
FunctionArgumentImpl(String name, String strType, short type, boolean required, int defaultType, boolean passByReference, String dspName, String hint, StructImpl meta)
          Deprecated. use other constructor
 
Method Summary
static boolean equals(FunctionArgument left, FunctionArgument right)
           
 boolean equals(Object obj)
           
 int getDefaultType()
           
 String getDisplayName()
           
 String getHint()
           
 Struct getMetaData()
           
 Collection.Key getName()
           
 short getType()
           
 String getTypeAsString()
           
 boolean isPassByReference()
           
 boolean isRequired()
           
 void readExternal(ObjectInput in)
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FunctionArgumentImpl

public FunctionArgumentImpl(String name,
                            String type,
                            boolean required)
Deprecated. use other constructor


FunctionArgumentImpl

public FunctionArgumentImpl(String name,
                            String type,
                            boolean required,
                            String dspName,
                            String hint)
Deprecated. use other constructor


FunctionArgumentImpl

public FunctionArgumentImpl(String name,
                            String type,
                            boolean required,
                            String dspName,
                            String hint,
                            StructImpl meta)
Deprecated. use other constructor


FunctionArgumentImpl

public FunctionArgumentImpl(String name,
                            String type,
                            boolean required,
                            int defaultType,
                            String dspName,
                            String hint,
                            StructImpl meta)
Deprecated. use other constructor


FunctionArgumentImpl

public FunctionArgumentImpl(String name,
                            String type,
                            boolean required,
                            double defaultType,
                            String dspName,
                            String hint,
                            StructImpl meta)
Deprecated. use other constructor


FunctionArgumentImpl

public FunctionArgumentImpl(String name,
                            String type,
                            boolean required,
                            double defaultType,
                            boolean passByReference,
                            String dspName,
                            String hint,
                            StructImpl meta)
Deprecated. use other constructor


FunctionArgumentImpl

public FunctionArgumentImpl(String name,
                            String type,
                            boolean required,
                            int defaultType,
                            boolean passByReference,
                            String dspName,
                            String hint,
                            StructImpl meta)
Deprecated. use other constructor


FunctionArgumentImpl

public FunctionArgumentImpl(String name,
                            String strType,
                            short type,
                            boolean required,
                            int defaultType,
                            boolean passByReference,
                            String dspName,
                            String hint,
                            StructImpl meta)
Deprecated. use other constructor


FunctionArgumentImpl

public FunctionArgumentImpl(Collection.Key name,
                            String type,
                            boolean required,
                            int defaultType,
                            boolean passByReference,
                            String dspName,
                            String hint,
                            StructImpl meta)
Deprecated. use other constructor


FunctionArgumentImpl

public FunctionArgumentImpl()
NEVER USE THIS CONSTRUCTOR, this constructor is only for deserialize this object from stream


FunctionArgumentImpl

public FunctionArgumentImpl(Collection.Key name)

FunctionArgumentImpl

public FunctionArgumentImpl(Collection.Key name,
                            short type)

FunctionArgumentImpl

public FunctionArgumentImpl(Collection.Key name,
                            String strType,
                            short type)

FunctionArgumentImpl

public FunctionArgumentImpl(Collection.Key name,
                            String strType,
                            short type,
                            boolean required)

FunctionArgumentImpl

public FunctionArgumentImpl(Collection.Key name,
                            String strType,
                            short type,
                            boolean required,
                            int defaultType)

FunctionArgumentImpl

public FunctionArgumentImpl(Collection.Key name,
                            String strType,
                            short type,
                            boolean required,
                            int defaultType,
                            boolean passByReference)

FunctionArgumentImpl

public FunctionArgumentImpl(Collection.Key name,
                            String strType,
                            short type,
                            boolean required,
                            int defaultType,
                            boolean passByReference,
                            String dspName)

FunctionArgumentImpl

public FunctionArgumentImpl(Collection.Key name,
                            String strType,
                            short type,
                            boolean required,
                            int defaultType,
                            boolean passByReference,
                            String dspName,
                            String hint)

FunctionArgumentImpl

public FunctionArgumentImpl(Collection.Key name,
                            String strType,
                            short type,
                            boolean required,
                            int defaultType,
                            boolean passByReference,
                            String dspName,
                            String hint,
                            StructImpl meta)
Method Detail

getDefaultType

public int getDefaultType()
Specified by:
getDefaultType in interface FunctionArgument
Returns:
the defaultType

getName

public Collection.Key getName()
Specified by:
getName in interface FunctionArgument
Returns:
Returns the name of the argument.

isRequired

public boolean isRequired()
Specified by:
isRequired in interface FunctionArgument
Returns:
Returns if argument is required or not.

getType

public short getType()
Specified by:
getType in interface FunctionArgument
Returns:
Returns the type of the argument.

getTypeAsString

public String getTypeAsString()
Specified by:
getTypeAsString in interface FunctionArgument
Returns:
Returns the type of the argument.

getHint

public String getHint()
Specified by:
getHint in interface FunctionArgument
Returns:
Returns the Hint of the argument.

getDisplayName

public String getDisplayName()
Specified by:
getDisplayName in interface FunctionArgument
Returns:
Returns the Display name of the argument.

getMetaData

public Struct getMetaData()
Specified by:
getMetaData in interface FunctionArgument
Returns:
the meta data defined

isPassByReference

public boolean isPassByReference()
Specified by:
isPassByReference in interface FunctionArgument

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

equals

public static boolean equals(FunctionArgument left,
                             FunctionArgument right)


Copyright © 2012 Railo