Tabnine Logo
MethodInfo.hasAccessInfo
Code IndexAdd Tabnine to your IDE (free)

How to use
hasAccessInfo
method
in
br.com.objectos.way.code.MethodInfo

Best Java code snippets using br.com.objectos.way.code.MethodInfo.hasAccessInfo (Showing top 3 results out of 315)

origin: br.com.objectos/way-code

 @Override
 public boolean apply(MethodInfo input) {
  return !input.hasAccessInfo(accessInfo);
 }
}
origin: br.com.objectos/way-code

@Override
public boolean apply(MethodInfo input) {
 return input.hasAccessInfo(accessInfo);
}
origin: br.com.objectos.way/pojo-plugin

private static Optional<InvalidateMethod> of1(TypeInfo typeInfo, MethodInfo method, AnnotationInfo annotation) {
 String annotationName = annotation.simpleName();
 if (method.hasModifierInfo(ModifierInfo.FINAL)) {
  method.compilationError("@%s method cannot be final", annotationName);
  return Optional.empty();
 }
 if (method.hasAccessInfo(AccessInfo.PRIVATE)) {
  method.compilationError("@%s method cannot be private", annotationName);
  return Optional.empty();
 }
 SimpleTypeInfo returnTypeInfo = method.returnTypeInfo();
 boolean self = returnTypeInfo.equals(typeInfo.toSimpleTypeInfo());
 if (!returnTypeInfo.equals(SimpleTypePrimitives.VOID) && !self) {
  method.compilationError("@%s method must return void or self", annotationName);
  return Optional.empty();
 }
 InvalidateMethod invalidateMethod = new InvalidateMethod(method, annotation, self);
 return Optional.of(invalidateMethod);
}
br.com.objectos.way.codeMethodInfohasAccessInfo

Popular methods of MethodInfo

  • fieldName
  • hasModifierInfo
  • hasName
  • hasParameterInfoListSize
  • name
  • returnTypeInfo
  • hasAnnotation
  • hasReturnTypeInfo
  • overrideWriter
  • accessInfo
  • annotationInfoAnnotatedWith
  • annotationInfoList
  • annotationInfoAnnotatedWith,
  • annotationInfoList,
  • annotationInfoMap,
  • codeWriter,
  • compilationError,
  • equals,
  • fieldWriter,
  • getClassName,
  • getterPrefix

Popular in Java

  • Parsing JSON documents to java classes using gson
  • putExtra (Intent)
  • setRequestProperty (URLConnection)
  • setContentView (Activity)
  • InputStreamReader (java.io)
    A class for turning a byte stream into a character stream. Data read from the source input stream is
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • SQLException (java.sql)
    An exception that indicates a failed JDBC operation. It provides the following information about pro
  • MessageFormat (java.text)
    Produces concatenated messages in language-neutral way. New code should probably use java.util.Forma
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • JButton (javax.swing)
  • Top Sublime Text 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