- java.lang.Object
-
- org.praxislive.code.CodeConnector<CoreCodeDelegate>
-
- org.praxislive.core.code.CoreCodeConnector
-
public class CoreCodeConnector extends CodeConnector<CoreCodeDelegate>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.praxislive.code.CodeConnector
CodeConnector.Plugin
-
-
Constructor Summary
Constructors Constructor Description CoreCodeConnector(CodeFactory.Task<CoreCodeDelegate> contextCreator, CoreCodeDelegate delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
analyseMethod(Method method)
Called during processing to analyse each discovered method.protected boolean
requiresClock()
Called by the CodeContext to control whether the context should be attached to the execution clock.-
Methods inherited from class org.praxislive.code.CodeConnector
addControl, addDefaultControls, addDefaultPorts, addPort, addReference, analyseField, analyseFields, analyseMethods, buildBaseComponentInfo, buildComponentInfo, buildControlInfo, buildPortInfo, createCodeControl, createInfoControl, extractControls, extractInfo, extractPorts, extractRefs, findID, findID, getDelegate, getInternalIndex, getLog, getSyntheticIndex, javaNameToID, process, shouldAddPort
-
-
-
-
Constructor Detail
-
CoreCodeConnector
public CoreCodeConnector(CodeFactory.Task<CoreCodeDelegate> contextCreator, CoreCodeDelegate delegate)
-
-
Method Detail
-
requiresClock
protected boolean requiresClock()
Description copied from class:CodeConnector
Called by the CodeContext to control whether the context should be attached to the execution clock. This method returns true if the delegate has any fields of typeProperty
. May be overridden.- Overrides:
requiresClock
in classCodeConnector<CoreCodeDelegate>
- Returns:
- whether context should connect to clock
-
analyseMethod
protected void analyseMethod(Method method)
Description copied from class:CodeConnector
Called during processing to analyse each discovered method. May be overridden to extend. The default behaviour will first pass to available plugins (seeCodeConnector.Plugin
), then check for trigger, in, aux-in and function annotations in that order. First valid match wins.- Overrides:
analyseMethod
in classCodeConnector<CoreCodeDelegate>
- Parameters:
method
- discovered method
-
-