public abstract class CollectionField extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CollectionField.GenericType |
Modifier and Type | Field and Description |
---|---|
Dotted |
collectionType |
org.mutabilitydetector.checkers.CollectionField.Node |
root |
Modifier | Constructor and Description |
---|---|
protected |
CollectionField(Dotted collectionType,
org.mutabilitydetector.checkers.CollectionField.Node root) |
Modifier and Type | Method and Description |
---|---|
abstract String |
asSimpleString()
Similar to
CollectionField#asString , but uses unqualified class names |
abstract String |
asString() |
static CollectionField |
from(String collectionType,
String signature) |
List<CollectionField.GenericType> |
getGenericParameterTypes()
Get flat list of generics tree represented by
root |
abstract boolean |
isGeneric() |
abstract CollectionField |
transformGenericTree(Function<CollectionField.GenericType,CollectionField.GenericType> function)
Apply function to all generics tree nodes and return resulting tree
|
public final Dotted collectionType
public final org.mutabilitydetector.checkers.CollectionField.Node root
protected CollectionField(Dotted collectionType, org.mutabilitydetector.checkers.CollectionField.Node root)
public List<CollectionField.GenericType> getGenericParameterTypes()
root
public abstract boolean isGeneric()
public abstract String asString()
public abstract String asSimpleString()
CollectionField#asString
, but uses unqualified class namespublic static CollectionField from(String collectionType, String signature)
public abstract CollectionField transformGenericTree(Function<CollectionField.GenericType,CollectionField.GenericType> function)
Copyright © 2008–2020 Graham Allan. All rights reserved.