pl.touk.nussknacker.engine.api.process
ClassExtractionSettings
Companion object ClassExtractionSettings
case class ClassExtractionSettings(excludeClassPredicates: Seq[ClassPredicate], excludeClassMemberPredicates: Seq[ClassMemberPredicate], includeClassMemberPredicates: Seq[ClassMemberPredicate], 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
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
ClassExtractionSettings(excludeClassPredicates: Seq[ClassPredicate], excludeClassMemberPredicates: Seq[ClassMemberPredicate], includeClassMemberPredicates: Seq[ClassMemberPredicate], 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( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- val excludeClassMemberPredicates: Seq[ClassMemberPredicate]
- val excludeClassPredicates: Seq[ClassPredicate]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- 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
- @native() @HotSpotIntrinsicCandidate()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val propertyExtractionStrategy: PropertyFromGetterExtractionStrategy
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
- def visibleMembersPredicate(clazz: Class[_]): VisibleMembersPredicate
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.