Tabnine Logo
PropertyMeta.isConstructorProperty
Code IndexAdd Tabnine to your IDE (free)

How to use
isConstructorProperty
method
in
org.simpleflatmapper.reflect.meta.PropertyMeta

Best Java code snippets using org.simpleflatmapper.reflect.meta.PropertyMeta.isConstructorProperty (Showing top 16 results out of 315)

origin: arnaudroger/SimpleFlatMapper

@Override
public void manualMatch(PropertyMeta<?, ?> prop) {
  if (prop.isConstructorProperty()) {
    removeNonMatching(((ConstructorPropertyMeta) prop).getParameter());
  }
  super.manualMatch(prop);
}
origin: arnaudroger/SimpleFlatMapper

public void forEachConstructorProperties(ForEachCallBack<PropertyMapping<T, ?, K>> handler)  {
  modifiable = false;
  for (PropertyMapping<T, ?, K> property : properties) {
    if (property != null) {
      PropertyMeta<T, ?> propertyMeta = property.getPropertyMeta();
      if (propertyMeta != null && propertyMeta.isConstructorProperty() && ! propertyMeta.isSubProperty()) {
        handler.handle(property);
      }
    }
  }
}
origin: org.simpleflatmapper/sfm-reflect

@Override
public void manualMatch(PropertyMeta<?, ?> prop) {
  if (prop.isConstructorProperty()) {
    removeNonMatching(((ConstructorPropertyMeta) prop).getParameter());
  }
  super.manualMatch(prop);
}
origin: org.simpleflatmapper/sfm-map

public void forEachConstructorProperties(ForEachCallBack<PropertyMapping<T, ?, K>> handler)  {
  modifiable = false;
  for (PropertyMapping<T, ?, K> property : properties) {
    if (property != null) {
      PropertyMeta<T, ?> propertyMeta = property.getPropertyMeta();
      if (propertyMeta != null && propertyMeta.isConstructorProperty() && ! propertyMeta.isSubProperty()) {
        handler.handle(property);
      }
    }
  }
}
origin: arnaudroger/SimpleFlatMapper

private int compare(PropertyMeta<?, ?> p1, PropertyMeta<?, ?> p2) {
  if (p1.isConstructorProperty()) {
    if (!p2.isConstructorProperty()) {
      return -1;
    }
  } else if (p2.isConstructorProperty()) {
    return 1;
  } else if (!p1.isSelf()) {
    if (p2.isSelf()) {
      return -1;
    }
  } else if (!p2.isSelf()) {
    return 1;
  } else if (!p1.isSubProperty()) {
    if (p2.isSubProperty()) {
      return -1;
    }
  } else if (!p2.isSubProperty()) {
    return 1;
  }
  return getterSetterCompare(p1, p2);
}
origin: org.simpleflatmapper/sfm-reflect

private int compare(PropertyMeta<?, ?> p1, PropertyMeta<?, ?> p2) {
  if (p1.isConstructorProperty()) {
    if (!p2.isConstructorProperty()) {
      return -1;
    }
  } else if (p2.isConstructorProperty()) {
    return 1;
  } else if (!p1.isSelf()) {
    if (p2.isSelf()) {
      return -1;
    }
  } else if (!p2.isSelf()) {
    return 1;
  } else if (!p1.isSubProperty()) {
    if (p2.isSubProperty()) {
      return -1;
    }
  } else if (!p2.isSubProperty()) {
    return 1;
  }
  return getterSetterCompare(p1, p2);
}
origin: arnaudroger/SimpleFlatMapper

if (e.owner.isConstructorProperty()) {
  ConstructorPropertyMeta<T, ?> meta = (ConstructorPropertyMeta<T, ?>) e.owner;
  injectionParams.add(new SubPropertyParam(meta.getParameter(), meta, e.propertyMappings, this));
origin: org.simpleflatmapper/sfm-map

if (e.owner.isConstructorProperty()) {
  ConstructorPropertyMeta<T, ?> meta = (ConstructorPropertyMeta<T, ?>) e.owner;
  injectionParams.add(new SubPropertyParam(meta.getParameter(), meta, e.propertyMappings, this));
origin: arnaudroger/SimpleFlatMapper

if (!e.owner.isConstructorProperty()) {
  final MappingContextFactoryBuilder currentBuilder = getMapperContextFactoryBuilder(e.owner, e.propertyMappings);
origin: org.simpleflatmapper/sfm-map

if (!e.owner.isConstructorProperty()) {
  final MappingContextFactoryBuilder currentBuilder = getMapperContextFactoryBuilder(e.owner, e.propertyMappings);
origin: arnaudroger/SimpleFlatMapper

  @Override
  public boolean test(PropertyMeta<?, ?> propertyMeta) {
    if (propertyMeta.isSelf()) {
      return true;
    }
    if (!NullSetter.isNull(propertyMeta.getSetter())) {
      return true;
    }
    if (propertyMeta.isConstructorProperty()) {
      return true;
    }

    if (propertyMeta.isSubProperty()) {
      SubPropertyMeta subPropertyMeta = (SubPropertyMeta) propertyMeta;
      if (subPropertyMeta.getOwnerProperty().isConstructorProperty()
          || !NullSetter.isNull(subPropertyMeta.getOwnerProperty().getSetter())) {
        return test(subPropertyMeta.getSubProperty());
      }
    }
     return false;
  }
}
origin: org.simpleflatmapper/sfm-map

  @Override
  public boolean test(PropertyMeta<?, ?> propertyMeta) {
    if (propertyMeta.isSelf()) {
      return true;
    }
    if (!NullSetter.isNull(propertyMeta.getSetter())) {
      return true;
    }
    if (propertyMeta.isConstructorProperty()) {
      return true;
    }

    if (propertyMeta.isSubProperty()) {
      SubPropertyMeta subPropertyMeta = (SubPropertyMeta) propertyMeta;
      if (subPropertyMeta.getOwnerProperty().isConstructorProperty()
          || !NullSetter.isNull(subPropertyMeta.getOwnerProperty().getSetter())) {
        return test(subPropertyMeta.getSubProperty());
      }
    }
     return false;
  }
}
origin: arnaudroger/SimpleFlatMapper

@Test
public void testResolveConstructorParamWithDeductorNoNullInParam() {
  ClassMeta<TwoStringObjectNonNull> classMeta = ReflectionService.disableAsm().getClassMeta(TwoStringObjectNonNull.class);
  assertTrue(classMeta.newPropertyFinder().findProperty(DefaultPropertyNameMatcher.of("value"), new Object[0], (TypeAffinity)null, propertyFilter).isConstructorProperty());
  assertTrue(classMeta.newPropertyFinder().findProperty(DefaultPropertyNameMatcher.of("value2"), new Object[0], (TypeAffinity)null, propertyFilter).isConstructorProperty());
}
origin: arnaudroger/SimpleFlatMapper

@Test
public void testResolveConstructorParamWithDeductorNoNull() {
  ClassMeta<NonNullContainer> classMeta = ReflectionService.disableAsm().getClassMeta(NonNullContainer.class);
  assertTrue(classMeta.newPropertyFinder().findProperty(DefaultPropertyNameMatcher.of("value"), new Object[0], (TypeAffinity)null, propertyFilter).isConstructorProperty());
  assertTrue(classMeta.newPropertyFinder().findProperty(DefaultPropertyNameMatcher.of("value2"), new Object[0], (TypeAffinity)null, propertyFilter).isConstructorProperty());
}
origin: arnaudroger/SimpleFlatMapper

@Test
public void testResolveConstructorParamWithDeductor() {
  ClassMeta<StringObject> classMeta = ReflectionService.disableAsm().getClassMeta(StringObject.class);
  assertTrue(classMeta.newPropertyFinder().findProperty(DefaultPropertyNameMatcher.of("value"), new Object[0], (TypeAffinity)null, propertyFilter).isConstructorProperty());
}
origin: arnaudroger/SimpleFlatMapper

@Test
public void testDisableAsmResolvedConstructorParamName() {
  ClassMeta<DbFinalObject> classMeta = ReflectionService.disableAsm().getClassMeta(DbFinalObject.class);
  PropertyMeta<DbFinalObject, ?> property = classMeta.newPropertyFinder().findProperty(DefaultPropertyNameMatcher.of("id"), new Object[0], (TypeAffinity)null, isValidPropertyMeta);
  assertTrue(property.isConstructorProperty());
}
org.simpleflatmapper.reflect.metaPropertyMetaisConstructorProperty

Popular methods of PropertyMeta

  • getPropertyType
  • getGetter
  • getPath
  • isSubProperty
  • getPropertyClassMeta
  • isSelf
  • getDefinedProperties
  • getOwnerType
  • getSetter
  • isValid
  • getName
  • typeAffinityScore
  • getName,
  • typeAffinityScore,
  • getPropertyClassMetaSupplier,
  • getReflectService,
  • newPropertyClassMeta,
  • withReflectionService

Popular in Java

  • Making http post requests using okhttp
  • getSharedPreferences (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • requestLocationUpdates (LocationManager)
  • Dictionary (java.util)
    Note: Do not use this class since it is obsolete. Please use the Map interface for new implementatio
  • HashSet (java.util)
    HashSet is an implementation of a Set. All optional operations (adding and removing) are supported.
  • TimerTask (java.util)
    The TimerTask class represents a task to run at a specified time. The task may be run once or repeat
  • SSLHandshakeException (javax.net.ssl)
    The exception that is thrown when a handshake could not be completed successfully.
  • DataSource (javax.sql)
    An interface for the creation of Connection objects which represent a connection to a database. This
  • IsNull (org.hamcrest.core)
    Is the value null?
  • CodeWhisperer alternatives
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