Class FunctionDefImpl
java.lang.Object
tripleo.elijah_durable_congenial.lang.impl.BaseFunctionDef
tripleo.elijah_durable_congenial.lang.impl.FunctionDefImpl
- All Implemented Interfaces:
ClassItem,Documentable,FunctionDef,OS_Container,OS_Element,OS_NamedElement
public class FunctionDefImpl
extends BaseFunctionDef
implements Documentable, ClassItem, FunctionDef
-
Nested Class Summary
Nested classes/interfaces inherited from interface tripleo.elijah_durable_congenial.lang.i.FunctionDef
FunctionDef.Species -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(FunctionItem seq) @NotNull OS_FuncTypevoid@Nullable TypeNameCan benullunder the following circumstances:
voidserializeTo(@NotNull SmallWriter sw) voidset(FunctionModifiers mod) voidsetAbstract(boolean b) voidsetBody(@NotNull FunctionBody aFunctionBody) voidsetHeader(@NotNull FunctionHeader aFunctionHeader) voidsetName(IdentExpression aText) voidtoString()voidvisitGen(@NotNull ElElementVisitor visit) Methods inherited from class tripleo.elijah_durable_congenial.lang.impl.BaseFunctionDef
addAnnotation, addDocString, addToContainer, annotationIterable, fal, getAccess, getArgs, getCategory, getContext, getItems, getNameNode, getSpecies, hasItem, items, name, scope, setAccess, setAnnotations, setCategory, setContext, setFal, setSpecies, walkAnnotationsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface tripleo.elijah_durable_congenial.lang.i.ClassItem
getAccess, getCategory, setAccess, setCategoryMethods inherited from interface tripleo.elijah_durable_congenial.lang.i.Documentable
addDocStringMethods inherited from interface tripleo.elijah_durable_congenial.lang.i.FunctionDef
fal, getArgs, getItems, getNameNode, getSpecies, items, scope, setAnnotations, setContext, setFal, setSpeciesMethods inherited from interface tripleo.elijah_durable_congenial.lang.i.OS_Element
asString, getContextMethods inherited from interface tripleo.elijah_durable_congenial.lang.i.OS_NamedElement
name
-
Constructor Details
-
FunctionDefImpl
-
-
Method Details
-
getEnName
- Specified by:
getEnNamein interfaceOS_NamedElement- Overrides:
getEnNamein classBaseFunctionDef
-
setName
- Specified by:
setNamein interfaceFunctionDef- Overrides:
setNamein classBaseFunctionDef
-
add
- Specified by:
addin interfaceFunctionDef- Overrides:
addin classBaseFunctionDef
-
setBody
- Specified by:
setBodyin interfaceFunctionDef- Overrides:
setBodyin classBaseFunctionDef
-
getParent
- Specified by:
getParentin interfaceFunctionDef- Specified by:
getParentin interfaceOS_Element- Specified by:
getParentin classBaseFunctionDef
-
postConstruct
public void postConstruct()- Specified by:
postConstructin interfaceFunctionDef- Specified by:
postConstructin classBaseFunctionDef
-
setReturnType
- Specified by:
setReturnTypein interfaceFunctionDef- Overrides:
setReturnTypein classBaseFunctionDef
-
set
- Specified by:
setin interfaceFunctionDef- Overrides:
setin classBaseFunctionDef
-
setAbstract
public void setAbstract(boolean b) - Specified by:
setAbstractin interfaceFunctionDef- Overrides:
setAbstractin classBaseFunctionDef
-
setHeader
- Specified by:
setHeaderin interfaceFunctionDef- Specified by:
setHeaderin classBaseFunctionDef
-
getOS_Type
- Specified by:
getOS_Typein interfaceFunctionDef- Overrides:
getOS_Typein classBaseFunctionDef
-
visitGen
- Specified by:
visitGenin interfaceFunctionDef- Specified by:
visitGenin interfaceOS_Element- Overrides:
visitGenin classBaseFunctionDef
-
returnType
Can benullunder the following circumstances:
1. The compiler(parser) didn't get a chance to set it yet
2. The programmer did not specify a return value and the compiler must deduce it
3. The function is a void-type and specification isn't required- Specified by:
returnTypein interfaceFunctionDef- Overrides:
returnTypein classBaseFunctionDef- Returns:
- the associated TypeName or NULL
-
toString
- Specified by:
toStringin interfaceFunctionDef- Overrides:
toStringin classObject
-
serializeTo
- Specified by:
serializeToin interfaceClassItem- Specified by:
serializeToin interfaceFunctionDef- Specified by:
serializeToin interfaceOS_Element- Overrides:
serializeToin classBaseFunctionDef
-