Tabnine Logo
ClassAttributeValue.getValue
Code IndexAdd Tabnine to your IDE (free)

How to use
getValue
method
in
org.springframework.roo.classpath.details.annotations.ClassAttributeValue

Best Java code snippets using org.springframework.roo.classpath.details.annotations.ClassAttributeValue.getValue (Showing top 19 results out of 315)

origin: spring-projects/spring-roo

/**
 * Check that the parameters of the method are equals of parameters list
 *
 * @param method Method to check
 * @param methodParametersToCompare Parameters to compare
 * @return true if are equals, false otherwise
 */
private boolean checkParameters(MethodMetadata method, List<?> methodParametersToCompare) {
 boolean parametersAreEquals = true;
 List<AnnotatedJavaType> parameterTypes = method.getParameterTypes();
 if (methodParametersToCompare.size() != parameterTypes.size()) {
  parametersAreEquals = false;
 } else {
  for (int i = 0; i < methodParametersToCompare.size(); i++) {
   ClassAttributeValue methodParameterToCompare =
     (ClassAttributeValue) methodParametersToCompare.get(i);
   AnnotatedJavaType parameterJavaType = parameterTypes.get(i);
   if (!methodParameterToCompare.getValue().getSimpleTypeName()
     .equals(parameterJavaType.getJavaType().getSimpleTypeName())) {
    parametersAreEquals = false;
    break;
   }
  }
 }
 return parametersAreEquals;
}
origin: spring-projects/spring-roo

 @Override
 public Object getTagValue(final MemberHoldingTypeDetails type) {
  final AnnotationMetadata layerAnnotation =
    MemberFindingUtils.getAnnotationOfType(type.getAnnotations(), layerAnnotationType);
  if (layerAnnotation == null || layerAnnotation.getAttribute(domainTypesAttribute) == null) {
   return null;
  }
  final AnnotationAttributeValue<?> value = layerAnnotation.getAttribute(domainTypesAttribute);
  final List<JavaType> domainTypes = new ArrayList<JavaType>();
  if (value instanceof ClassAttributeValue) {
   domainTypes.add(((ClassAttributeValue) value).getValue());
  } else if (value instanceof ArrayAttributeValue<?>) {
   final ArrayAttributeValue<?> castValue = (ArrayAttributeValue<?>) value;
   for (final AnnotationAttributeValue<?> val : castValue.getValue()) {
    if (val instanceof ClassAttributeValue) {
     domainTypes.add(((ClassAttributeValue) val).getValue());
    }
   }
  }
  return domainTypes;
 }
}
origin: spring-projects/spring-roo

/**
 * Check that the parameters of the method are equals of parameters list
 *
 * @param method Method to check
 * @param methodParametersToCompare Parameters to compare
 * @return true if are equals, false otherwise
 */
private boolean checkParameters(MethodMetadata method, List<?> methodParametersToCompare) {
 boolean parametersAreEquals = true;
 List<AnnotatedJavaType> parameterTypes = method.getParameterTypes();
 if (methodParametersToCompare.size() != parameterTypes.size()) {
  parametersAreEquals = false;
 } else {
  for (int i = 0; i < methodParametersToCompare.size(); i++) {
   ClassAttributeValue methodParameterToCompare =
     (ClassAttributeValue) methodParametersToCompare.get(i);
   AnnotatedJavaType parameterJavaType = parameterTypes.get(i);
   if (!methodParameterToCompare.getValue().getSimpleTypeName()
     .equals(parameterJavaType.getJavaType().getSimpleTypeName())) {
    parametersAreEquals = false;
    break;
   }
  }
 }
 return parametersAreEquals;
}
origin: spring-projects/spring-roo

 && val instanceof ClassAttributeValue) {
final ClassAttributeValue classValue = (ClassAttributeValue) val;
result1.add(classValue.getValue());
origin: spring-projects/spring-roo

ClassAttributeValue classAnnotationParameters =
  (ClassAttributeValue) annotationParameters.get(i);
if (!classAnnotationParametersToAdd.getValue().getSimpleTypeName()
  .equals(classAnnotationParameters.getValue().getSimpleTypeName())) {
 parametersAreEquals = false;
 break;
origin: spring-projects/spring-roo

ClassAttributeValue classAnnotationParameters =
  (ClassAttributeValue) annotationParameters.get(i);
if (!classAnnotationParametersToAdd.getValue().getSimpleTypeName()
  .equals(classAnnotationParameters.getValue().getSimpleTypeName())) {
 parametersAreEquals = false;
 break;
origin: spring-projects/spring-roo

JavaType endpoint = endpointAttr.getValue();
origin: spring-projects/spring-roo

 attributeValue = "'" + ((CharAttributeValue) value).getValue().toString() + "'";
} else if (value instanceof ClassAttributeValue) {
 final JavaType clazz = ((ClassAttributeValue) value).getValue();
 if (resolver == null || resolver.isFullyQualifiedFormRequiredAfterAutoImport(clazz)) {
  attributeValue = clazz.getFullyQualifiedTypeName() + ".class";
origin: spring-projects/spring-roo

final JavaType castValue = ((ClassAttributeValue) value).getValue();
origin: spring-projects/spring-roo

while (it.hasNext()) {
 ClassAttributeValue existingEndPointAttr = (ClassAttributeValue) it.next();
 JavaType existingEndPoint = existingEndPointAttr.getValue();
 if (existingEndPoint.getFullyQualifiedTypeName().equals(
   endpointClass.getFullyQualifiedTypeName())) {
origin: org.springframework.roo/org.springframework.roo.classpath

 @Override
 public Object getTagValue(final MemberHoldingTypeDetails type) {
  final AnnotationMetadata layerAnnotation =
    MemberFindingUtils.getAnnotationOfType(type.getAnnotations(), layerAnnotationType);
  if (layerAnnotation == null || layerAnnotation.getAttribute(domainTypesAttribute) == null) {
   return null;
  }
  final AnnotationAttributeValue<?> value = layerAnnotation.getAttribute(domainTypesAttribute);
  final List<JavaType> domainTypes = new ArrayList<JavaType>();
  if (value instanceof ClassAttributeValue) {
   domainTypes.add(((ClassAttributeValue) value).getValue());
  } else if (value instanceof ArrayAttributeValue<?>) {
   final ArrayAttributeValue<?> castValue = (ArrayAttributeValue<?>) value;
   for (final AnnotationAttributeValue<?> val : castValue.getValue()) {
    if (val instanceof ClassAttributeValue) {
     domainTypes.add(((ClassAttributeValue) val).getValue());
    }
   }
  }
  return domainTypes;
 }
}
origin: org.springframework.roo/org.springframework.roo.classpath

 && val instanceof ClassAttributeValue) {
final ClassAttributeValue classValue = (ClassAttributeValue) val;
result1.add(classValue.getValue());
origin: org.springframework.roo/org.springframework.roo.classpath

 attributeValue = "'" + ((CharAttributeValue) value).getValue().toString() + "'";
} else if (value instanceof ClassAttributeValue) {
 final JavaType clazz = ((ClassAttributeValue) value).getValue();
 if (resolver == null || resolver.isFullyQualifiedFormRequiredAfterAutoImport(clazz)) {
  attributeValue = clazz.getFullyQualifiedTypeName() + ".class";
origin: org.gvnix/org.gvnix.addon.geo.addon

    .getValue();
for (ClassAttributeValue entity : entityLayers) {
  entitiesToVisualize.add(entity.getValue());
origin: org.gvnix/org.gvnix.service.roo.addon.addon

    .getFullyQualifiedTypeName()
    .contentEquals(
        webResultType.getValue()
            .getFullyQualifiedTypeName()),
"Attribute 'webResultType' in annotation @GvNIXWebMethod defined in method '"
.getValue()
.getFullyQualifiedTypeName()
.contentEquals(JavaType.VOID_OBJECT.getFullyQualifiedTypeName())
&& !webResultType
    .getValue()
    .getFullyQualifiedTypeName()
    .contentEquals(
origin: org.gvnix/org.gvnix.addon.geo.addon

    .getValue();
for (ClassAttributeValue currentEntity : mapViewerAttributesOldValues) {
  if (currentEntity.getValue().equals(controller)) {
    notIncluded = false;
    break;
origin: org.gvnix/org.gvnix.service.roo.addon.addon

&& gvNIXWParamTypeAttrVal.getValue() != null,
"Must be set 'type' attribute in @GvNIXWebParam annotation to: "
    + inputParameter.getJavaType()
        .contentEquals(
            gvNIXWParamTypeAttrVal
                .getValue()
                .getFullyQualifiedTypeName()),
"The 'type' attribute in @GvNIXWebParam annotation to: "
origin: org.gvnix/org.gvnix.service.roo.addon.addon

.getValue().contains("void"))
&& (resultTypeAttributeValue != null && !resultTypeAttributeValue
    .getValue()
    .getFullyQualifiedTypeName()
    .contains(
origin: org.gvnix/org.gvnix.service.roo.addon.addon

.getValue().contains("void"))
&& (resultTypeAttributeValue != null && !resultTypeAttributeValue
    .getValue()
    .getFullyQualifiedTypeName()
    .contains(
org.springframework.roo.classpath.details.annotationsClassAttributeValuegetValue

Popular methods of ClassAttributeValue

  • <init>
    Constructor
  • getName

Popular in Java

  • Finding current android device location
  • setScale (BigDecimal)
  • onRequestPermissionsResult (Fragment)
  • getSystemService (Context)
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • NumberFormat (java.text)
    The abstract base class for all number formats. This class provides the interface for formatting and
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • AtomicInteger (java.util.concurrent.atomic)
    An int value that may be updated atomically. See the java.util.concurrent.atomic package specificati
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now