pl.touk.nussknacker.engine.api.process
ClassExtractionSettings
Companion object ClassExtractionSettings
case class ClassExtractionSettings(excludeClassPredicates: Seq[ClassPredicate], excludeClassMemberPredicates: Seq[ClassMemberPredicate], includeClassMemberPredicates: Seq[ClassMemberPredicate], typingFunctionRules: Seq[TypingFunctionRule], propertyExtractionStrategy: PropertyFromGetterExtractionStrategy) extends Product with Serializable
Settings for class extraction which is done to handle e.g. syntax suggestions in UI
One-liner that will help to find list of interesting methods in class:
classOf[CLASS_NAME].getMethods.filterNot(m => java.lang.reflect.Modifier.isStatic(m.getModifiers)).map(_.getName) .filterNot(Set("wait", "notify", "notifyAll", "equals", "hashCode", "getClass").contains).distinct.sorted.mkString("|")
- excludeClassPredicates
- sequence of predicates to determine hidden classes
- excludeClassMemberPredicates
- sequence of predicates to determine excluded class members - will be used all predicates that matches given class
- includeClassMemberPredicates
- sequence of predicates to determine included class members - will be used all predicates that matches given class. If none is matching, all non-excluded members will be visible.
- propertyExtractionStrategy
- strategy for extraction property based on getter. It can be defined what will happen if some class has 'getField' or 'isField' method. It can be: added 'field' property next to 'getField', replaced 'getField' with 'field' or leaved as it is.
- Alphabetic
- By Inheritance
- ClassExtractionSettings
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ClassExtractionSettings(excludeClassPredicates: Seq[ClassPredicate], excludeClassMemberPredicates: Seq[ClassMemberPredicate], includeClassMemberPredicates: Seq[ClassMemberPredicate], typingFunctionRules: Seq[TypingFunctionRule], propertyExtractionStrategy: PropertyFromGetterExtractionStrategy)
- excludeClassPredicates
- sequence of predicates to determine hidden classes
- excludeClassMemberPredicates
- sequence of predicates to determine excluded class members - will be used all predicates that matches given class
- includeClassMemberPredicates
- sequence of predicates to determine included class members - will be used all predicates that matches given class. If none is matching, all non-excluded members will be visible.
- propertyExtractionStrategy
- strategy for extraction property based on getter. It can be defined what will happen if some class has 'getField' or 'isField' method. It can be: added 'field' property next to 'getField', replaced 'getField' with 'field' or leaved as it is.
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val excludeClassMemberPredicates: Seq[ClassMemberPredicate]
- val excludeClassPredicates: Seq[ClassPredicate]
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- val includeClassMemberPredicates: Seq[ClassMemberPredicate]
- def isHidden(clazz: Class[_]): Boolean
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val propertyExtractionStrategy: PropertyFromGetterExtractionStrategy
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def typingFunction(clazz: Class[_], member: Member): Option[TypingFunctionForClassMember]
- val typingFunctionRules: Seq[TypingFunctionRule]
- def visibleMembersPredicate(clazz: Class[_]): VisibleMembersPredicate
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)