com.google.common.reflect.Element.getModifiers()方法的使用及代码示例

x33g5p2x  于2022-01-19 转载在 其他  
字(3.6k)|赞(0)|评价(0)|浏览(644)

本文整理了Java中com.google.common.reflect.Element.getModifiers()方法的一些代码示例,展示了Element.getModifiers()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Element.getModifiers()方法的具体详情如下:
包路径:com.google.common.reflect.Element
类名称:Element
方法名:getModifiers

Element.getModifiers介绍

暂无

代码示例

代码示例来源:origin: google/guava

  1. /**
  2. * Returns {@code true} if this method is final, per {@code Modifier.isFinal(getModifiers())}.
  3. *
  4. * <p>Note that a method may still be effectively "final", or non-overridable when it has no
  5. * {@code final} keyword. For example, it could be private, or it could be declared by a final
  6. * class. To tell whether a method is overridable, use {@link Invokable#isOverridable}.
  7. */
  8. public final boolean isFinal() {
  9. return Modifier.isFinal(getModifiers());
  10. }

代码示例来源:origin: google/guava

  1. /** Returns true if the element is protected. */
  2. public final boolean isProtected() {
  3. return Modifier.isProtected(getModifiers());
  4. }

代码示例来源:origin: google/guava

  1. /** Returns true if the element is private. */
  2. public final boolean isPrivate() {
  3. return Modifier.isPrivate(getModifiers());
  4. }

代码示例来源:origin: google/guava

  1. /** Returns true if the element is static. */
  2. public final boolean isStatic() {
  3. return Modifier.isStatic(getModifiers());
  4. }

代码示例来源:origin: google/guava

  1. /** Returns true if the method is abstract. */
  2. public final boolean isAbstract() {
  3. return Modifier.isAbstract(getModifiers());
  4. }

代码示例来源:origin: google/guava

  1. /** Returns true if the field is volatile. */
  2. final boolean isVolatile() {
  3. return Modifier.isVolatile(getModifiers());
  4. }

代码示例来源:origin: google/guava

  1. /** Returns true if the field is transient. */
  2. final boolean isTransient() {
  3. return Modifier.isTransient(getModifiers());
  4. }

代码示例来源:origin: google/guava

  1. /** Returns true if the element is public. */
  2. public final boolean isPublic() {
  3. return Modifier.isPublic(getModifiers());
  4. }

代码示例来源:origin: google/guava

  1. /** Returns true if the element is native. */
  2. public final boolean isNative() {
  3. return Modifier.isNative(getModifiers());
  4. }

代码示例来源:origin: google/j2objc

  1. /**
  2. * Returns {@code true} if this method is final, per {@code Modifier.isFinal(getModifiers())}.
  3. *
  4. * <p>Note that a method may still be effectively "final", or non-overridable when it has no
  5. * {@code final} keyword. For example, it could be private, or it could be declared by a final
  6. * class. To tell whether a method is overridable, use {@link Invokable#isOverridable}.
  7. */
  8. public final boolean isFinal() {
  9. return Modifier.isFinal(getModifiers());
  10. }

代码示例来源:origin: google/j2objc

  1. /** Returns true if the element is private. */
  2. public final boolean isPrivate() {
  3. return Modifier.isPrivate(getModifiers());
  4. }

代码示例来源:origin: google/j2objc

  1. /** Returns true if the method is abstract. */
  2. public final boolean isAbstract() {
  3. return Modifier.isAbstract(getModifiers());
  4. }

代码示例来源:origin: google/j2objc

  1. /** Returns true if the field is volatile. */
  2. final boolean isVolatile() {
  3. return Modifier.isVolatile(getModifiers());
  4. }

代码示例来源:origin: google/j2objc

  1. /** Returns true if the element is public. */
  2. public final boolean isPublic() {
  3. return Modifier.isPublic(getModifiers());
  4. }

代码示例来源:origin: google/j2objc

  1. /** Returns true if the element is static. */
  2. public final boolean isStatic() {
  3. return Modifier.isStatic(getModifiers());
  4. }

代码示例来源:origin: google/j2objc

  1. /** Returns true if the element is native. */
  2. public final boolean isNative() {
  3. return Modifier.isNative(getModifiers());
  4. }

代码示例来源:origin: google/j2objc

  1. /** Returns true if the element is protected. */
  2. public final boolean isProtected() {
  3. return Modifier.isProtected(getModifiers());
  4. }

代码示例来源:origin: google/j2objc

  1. /** Returns true if the field is transient. */
  2. final boolean isTransient() {
  3. return Modifier.isTransient(getModifiers());
  4. }

代码示例来源:origin: google/guava

  1. /** Returns true if the method is synchronized. */
  2. public final boolean isSynchronized() {
  3. return Modifier.isSynchronized(getModifiers());
  4. }

代码示例来源:origin: google/j2objc

  1. /** Returns true if the method is synchronized. */
  2. public final boolean isSynchronized() {
  3. return Modifier.isSynchronized(getModifiers());
  4. }

相关文章