public class ArgumentDeclaration extends DeclarationElement implements IArgumentDeclaration, IDeclarationSupport
| Modifier and Type | Field and Description |
|---|---|
static Object |
VALUE_UNDEFINED |
MOD_TRANSIENT| Constructor and Description |
|---|
ArgumentDeclaration(Object declarationContext,
String name,
String modifiers) |
ArgumentDeclaration(Object declarationContext,
String name,
String modifiers,
Object defaultValue,
Class type) |
ArgumentDeclaration(Object declarationContext,
String name,
String modifiers,
Object defaultValue,
Class type,
String description) |
ArgumentDeclaration(Object declarationContext,
String name,
String modifiers,
String description) |
addModifier, getDescription, getModifiers, getModifierString, getName, hasModifier, setDescription, setModifierString, setName, validateName, validatePathgetDeclarationContext, isBlockequals, getClass, hashCode, notify, notifyAll, wait, wait, waitgetModifierString, getName, hasModifiergetDeclarationContext, isBlockpublic static final Object VALUE_UNDEFINED
public ArgumentDeclaration(Object declarationContext, String name, String modifiers)
public ArgumentDeclaration(Object declarationContext, String name, String modifiers, Object defaultValue, Class type)
public ArgumentDeclaration(Object declarationContext, String name, String modifiers, Object defaultValue, Class type, String description)
public static ArgumentDeclaration declareConstant(IDeclarationBlock declarationBlock, String pPath, String pModifiers, Object pDefaultValue, Class pType) throws DeclarationException
DeclarationExceptionpublic static ArgumentDeclaration declareConstant(IDeclarationBlock declarationBlock, String pPath, String pModifiers, Object pDefaultValue, Class pType, String description) throws DeclarationException
DeclarationExceptionpublic static ArgumentDeclaration declareFunctor(IDeclarationBlock declarationBlock, String pPath, String pModifiers, IFunctor pDefaultFunctor, Class pType, String description) throws DeclarationException
DeclarationExceptionpublic ArgumentDeclaration copy()
IDeclarationcopy in interface IDeclarationpublic ArgumentDeclaration declare(String pName, String pModifiers, Object pDefaultValue, Class pType)
public IDeclarationBlock getDeclarationBlock()
IDeclarationSupportgetDeclarationBlock in interface IDeclarationSupportpublic IFunctor getDefaultFunctor()
public String getDefaultLabel()
public Object getDefaultValue(IArgs scope) throws FunctorInvocationException
getDefaultValue in interface IArgumentDeclarationFunctorInvocationExceptionpublic Class getType()
getType in interface IArgumentDeclarationpublic String getTypeLabel()
public boolean isDefaultDefined()
isDefaultDefined in interface IArgumentDeclarationpublic void setDefaultFunctor(IFunctor defaultFunctor)
public void setDefaultValue(Object defaultValue)
public void setDefaultValueUndefined()
public void setType(Class pType)
public String toString()
toString in class DeclarationElementCopyright © 2013 intarsys consulting GmbH. All Rights Reserved.