Class CFunction
java.lang.Object
io.github.potjerodekool.nabu.tree.impl.CTree
io.github.potjerodekool.nabu.tree.element.impl.CFunction
Implementation of Function
-
Constructor Summary
ConstructorsConstructorDescriptionCFunction(FunctionBuilder functionBuilder) CFunction(String simpleName, Kind kind, Modifiers modifiers, List<TypeParameterTree> typeParameters, VariableDeclaratorTree receiverParameter, List<VariableDeclaratorTree> parameters, ExpressionTree returnType, List<Tree> thrownTypes, BlockStatementTree body, ExpressionTree defaultValue) CFunction(String simpleName, Kind kind, Modifiers modifiers, List<TypeParameterTree> typeParameters, VariableDeclaratorTree receiverParameter, List<VariableDeclaratorTree> parameters, ExpressionTree returnType, List<Tree> thrownTypes, BlockStatementTree body, ExpressionTree defaultValue, int lineNumber, int columnNumber) -
Method Summary
Modifier and TypeMethodDescription<R,P> R accept(TreeVisitor<R, P> visitor, P param) voidaddParameter(VariableDeclaratorTree parameter) voidaddParameters(int index, List<VariableDeclaratorTree> parameters) voidaddParameters(List<VariableDeclaratorTree> parameters) builder()getBody()getKind()voidsetBody(BlockStatementTree body) voidsetMethodSymbol(ExecutableElement methodSymbol) Methods inherited from class io.github.potjerodekool.nabu.tree.impl.CTree
getColumnNumber, getLineNumber, getType, setTypeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.potjerodekool.nabu.tree.Tree
getColumnNumber, getLineNumber, getType, setType
-
Constructor Details
-
CFunction
public CFunction(String simpleName, Kind kind, Modifiers modifiers, List<TypeParameterTree> typeParameters, VariableDeclaratorTree receiverParameter, List<VariableDeclaratorTree> parameters, ExpressionTree returnType, List<Tree> thrownTypes, BlockStatementTree body, ExpressionTree defaultValue) -
CFunction
public CFunction(String simpleName, Kind kind, Modifiers modifiers, List<TypeParameterTree> typeParameters, VariableDeclaratorTree receiverParameter, List<VariableDeclaratorTree> parameters, ExpressionTree returnType, List<Tree> thrownTypes, BlockStatementTree body, ExpressionTree defaultValue, int lineNumber, int columnNumber) -
CFunction
-
-
Method Details
-
getMethodSymbol
- Specified by:
getMethodSymbolin interfaceFunction
-
setMethodSymbol
- Specified by:
setMethodSymbolin interfaceFunction
-
getSimpleName
- Specified by:
getSimpleNamein interfaceFunction
-
getKind
-
getModifiers
- Specified by:
getModifiersin interfaceFunction
-
getDefaultValue
- Specified by:
getDefaultValuein interfaceFunction
-
getReceiverParameter
- Specified by:
getReceiverParameterin interfaceFunction
-
getParameters
- Specified by:
getParametersin interfaceFunction
-
addParameters
- Specified by:
addParametersin interfaceFunction
-
addParameter
- Specified by:
addParameterin interfaceFunction
-
addParameters
- Specified by:
addParametersin interfaceFunction
-
getReturnType
- Specified by:
getReturnTypein interfaceFunction
-
getThrownTypes
- Specified by:
getThrownTypesin interfaceFunction
-
getBody
-
setBody
-
getTypeParameters
- Specified by:
getTypeParametersin interfaceFunction
-
accept
-
builder
-