public class JavaModelUtil extends Object
JavaModelUtil class provides helper functions to access the given model.| Constructor and Description |
|---|
JavaModelUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,Object> |
getAnnotations(Map<String,Object> model)
Returns the model annotations-element (
ModelConstant.ANNOTATIONS) |
static String |
getCanonicalName(Map<String,Object> model)
Returns the model's canonicalName element, which is the full qualified name of the input class
|
static Map<String,Object> |
getExtendedType(Map<String,Object> model)
Returns the model's super type element
|
static Map<String,Object> |
getField(Map<String,Object> model,
String fieldName)
Returns the field model with the given field name from model
|
static List<Map<String,Object>> |
getFields(Map<String,Object> model)
Returns the list of all field models (
ModelConstant.FIELDS) |
static Map<String,Object> |
getImplementedType(Map<String,Object> model,
String fqn)
Returns the interface model for the given interface name if such an interface exists, otherwise null.
|
static List<Map<String,Object>> |
getImplementedTypes(Map<String,Object> model)
Returns the model's implemented types element, which is a list consisting of the interface models
|
static Map<String,String> |
getJavaDocModel(Map<String,Object> documentedElementModel)
Returns the JavaDoc model of the documented element model passed.
|
static Map<String,Object> |
getMethod(Map<String,Object> model,
String methodName)
Returns the method model of the model with the given methodName.
|
static Map<String,Object> |
getMethodAccessibleField(Map<String,Object> model,
String fieldName)
Returns the field model with the given field name from model
|
static List<Map<String,Object>> |
getMethodAccessibleFields(Map<String,Object> model)
Returns the list of all field models (
ModelConstant.METHOD_ACCESSIBLE_FIELDS) |
static List<Map<String,Object>> |
getMethods(Map<String,Object> model)
Returns the model's methods element, which is a list consisting of the method models
|
static String |
getName(Map<String,Object> model)
Returns the model's name element, which is the simple name of the input class
|
static Map<String,Object> |
getRoot(Map<String,Object> model)
Returns the model root-element (
ModelConstant.MODEL_ROOT) |
public static Map<String,Object> getRoot(Map<String,Object> model)
ModelConstant.MODEL_ROOT)model - raw modelModelConstant.MODEL_ROOT)public static Map<String,Object> getAnnotations(Map<String,Object> model)
ModelConstant.ANNOTATIONS)model - raw modelModelConstant.ANNOTATIONS)public static List<Map<String,Object>> getFields(Map<String,Object> model)
ModelConstant.FIELDS)model - raw modelpublic static Map<String,Object> getField(Map<String,Object> model, String fieldName)
model - raw modelfieldName - field name to be retrievedpublic static List<Map<String,Object>> getMethodAccessibleFields(Map<String,Object> model)
ModelConstant.METHOD_ACCESSIBLE_FIELDS)model - raw modelpublic static Map<String,Object> getMethodAccessibleField(Map<String,Object> model, String fieldName)
model - raw modelfieldName - field name to be retrievedpublic static Map<String,Object> getExtendedType(Map<String,Object> model)
model - raw modelpublic static List<Map<String,Object>> getImplementedTypes(Map<String,Object> model)
model - raw modelpublic static Map<String,Object> getImplementedType(Map<String,Object> model, String fqn)
model - raw modelfqn - full qualified name, which identifies the specific interfacepublic static List<Map<String,Object>> getMethods(Map<String,Object> model)
model - raw modelpublic static Map<String,Object> getMethod(Map<String,Object> model, String methodName)
model - raw modelmethodName - method name to search fornull if no method with the
given name found.public static String getName(Map<String,Object> model)
model - raw modelpublic static String getCanonicalName(Map<String,Object> model)
model - raw modelpublic static Map<String,String> getJavaDocModel(Map<String,Object> documentedElementModel)
documentedElementModel - element model, from which the javaDoc model should be retrieved.null if not available.Copyright © 2018 DevonFw. All rights reserved.