org.eclipse.jdt.core.dom.MethodDeclaration.preLazyInit()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(7.5k)|赞(0)|评价(0)|浏览(106)

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

MethodDeclaration.preLazyInit介绍

暂无

代码示例

代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core

  1. /**
  2. * Returns the name of the method declared in this method declaration.
  3. * For a constructor declaration, this should be the same as the name
  4. * of the class.
  5. *
  6. * @return the method name node
  7. */
  8. public SimpleName getName() {
  9. if (this.methodName == null) {
  10. // lazy init must be thread-safe for readers
  11. synchronized (this) {
  12. if (this.methodName == null) {
  13. preLazyInit();
  14. this.methodName = new SimpleName(this.ast);
  15. postLazyInit(this.methodName, NAME_PROPERTY);
  16. }
  17. }
  18. }
  19. return this.methodName;
  20. }

代码示例来源:origin: trylimits/Eclipse-Postfix-Code-Completion

  1. /**
  2. * Returns the name of the method declared in this method declaration.
  3. * For a constructor declaration, this should be the same as the name
  4. * of the class.
  5. *
  6. * @return the method name node
  7. */
  8. public SimpleName getName() {
  9. if (this.methodName == null) {
  10. // lazy init must be thread-safe for readers
  11. synchronized (this) {
  12. if (this.methodName == null) {
  13. preLazyInit();
  14. this.methodName = new SimpleName(this.ast);
  15. postLazyInit(this.methodName, NAME_PROPERTY);
  16. }
  17. }
  18. }
  19. return this.methodName;
  20. }

代码示例来源:origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core

  1. /**
  2. * Returns the name of the method declared in this method declaration.
  3. * For a constructor declaration, this should be the same as the name
  4. * of the class.
  5. *
  6. * @return the method name node
  7. */
  8. public SimpleName getName() {
  9. if (this.methodName == null) {
  10. // lazy init must be thread-safe for readers
  11. synchronized (this) {
  12. if (this.methodName == null) {
  13. preLazyInit();
  14. this.methodName = new SimpleName(this.ast);
  15. postLazyInit(this.methodName, NAME_PROPERTY);
  16. }
  17. }
  18. }
  19. return this.methodName;
  20. }

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core

  1. /**
  2. * Returns the name of the method declared in this method declaration.
  3. * For a constructor declaration, this should be the same as the name
  4. * of the class.
  5. *
  6. * @return the method name node
  7. */
  8. public SimpleName getName() {
  9. if (this.methodName == null) {
  10. // lazy init must be thread-safe for readers
  11. synchronized (this) {
  12. if (this.methodName == null) {
  13. preLazyInit();
  14. this.methodName = new SimpleName(this.ast);
  15. postLazyInit(this.methodName, NAME_PROPERTY);
  16. }
  17. }
  18. }
  19. return this.methodName;
  20. }

代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core

  1. /**
  2. * Returns the name of the method declared in this method declaration.
  3. * For a constructor declaration, this should be the same as the name
  4. * of the class.
  5. *
  6. * @return the method name node
  7. */
  8. public SimpleName getName() {
  9. if (this.methodName == null) {
  10. // lazy init must be thread-safe for readers
  11. synchronized (this) {
  12. if (this.methodName == null) {
  13. preLazyInit();
  14. this.methodName = new SimpleName(this.ast);
  15. postLazyInit(this.methodName, NAME_PROPERTY);
  16. }
  17. }
  18. }
  19. return this.methodName;
  20. }

代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core

  1. /**
  2. * Returns the name of the method declared in this method declaration.
  3. * For a constructor declaration, this should be the same as the name
  4. * of the class.
  5. *
  6. * @return the method name node
  7. */
  8. public SimpleName getName() {
  9. if (this.methodName == null) {
  10. // lazy init must be thread-safe for readers
  11. synchronized (this) {
  12. if (this.methodName == null) {
  13. preLazyInit();
  14. this.methodName = new SimpleName(this.ast);
  15. postLazyInit(this.methodName, NAME_PROPERTY);
  16. }
  17. }
  18. }
  19. return this.methodName;
  20. }

代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core

  1. /**
  2. * Internal synonym for deprecated method. Used to avoid
  3. * deprecation warnings.
  4. * @since 3.1
  5. */
  6. /*package*/ final Type internalGetReturnType() {
  7. supportedOnlyIn2();
  8. if (this.returnType == null) {
  9. // lazy init must be thread-safe for readers
  10. synchronized (this) {
  11. if (this.returnType == null) {
  12. preLazyInit();
  13. this.returnType = this.ast.newPrimitiveType(PrimitiveType.VOID);
  14. postLazyInit(this.returnType, RETURN_TYPE_PROPERTY);
  15. }
  16. }
  17. }
  18. return this.returnType;
  19. }

代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core

  1. /**
  2. * Internal synonym for deprecated method. Used to avoid
  3. * deprecation warnings.
  4. * @exception UnsupportedOperationException if this operation is used in
  5. * an AST later than JLS2
  6. * @since 3.1
  7. */
  8. /*package*/ final Type internalGetReturnType() {
  9. supportedOnlyIn2();
  10. if (this.returnType == null) {
  11. // lazy init must be thread-safe for readers
  12. synchronized (this) {
  13. if (this.returnType == null) {
  14. preLazyInit();
  15. this.returnType = this.ast.newPrimitiveType(PrimitiveType.VOID);
  16. postLazyInit(this.returnType, RETURN_TYPE_PROPERTY);
  17. }
  18. }
  19. }
  20. return this.returnType;
  21. }

代码示例来源:origin: trylimits/Eclipse-Postfix-Code-Completion

  1. /**
  2. * Internal synonym for deprecated method. Used to avoid
  3. * deprecation warnings.
  4. * @exception UnsupportedOperationException if this operation is used in
  5. * an AST later than JLS2
  6. * @since 3.1
  7. */
  8. /*package*/ final Type internalGetReturnType() {
  9. supportedOnlyIn2();
  10. if (this.returnType == null) {
  11. // lazy init must be thread-safe for readers
  12. synchronized (this) {
  13. if (this.returnType == null) {
  14. preLazyInit();
  15. this.returnType = this.ast.newPrimitiveType(PrimitiveType.VOID);
  16. postLazyInit(this.returnType, RETURN_TYPE_PROPERTY);
  17. }
  18. }
  19. }
  20. return this.returnType;
  21. }

代码示例来源:origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core

  1. /**
  2. * Internal synonym for deprecated method. Used to avoid
  3. * deprecation warnings.
  4. * @exception UnsupportedOperationException if this operation is used in
  5. * an AST later than JLS2
  6. * @since 3.1
  7. */
  8. /*package*/ final Type internalGetReturnType() {
  9. supportedOnlyIn2();
  10. if (this.returnType == null) {
  11. // lazy init must be thread-safe for readers
  12. synchronized (this) {
  13. if (this.returnType == null) {
  14. preLazyInit();
  15. this.returnType = this.ast.newPrimitiveType(PrimitiveType.VOID);
  16. postLazyInit(this.returnType, RETURN_TYPE_PROPERTY);
  17. }
  18. }
  19. }
  20. return this.returnType;
  21. }

代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core

  1. /**
  2. * Internal synonym for deprecated method. Used to avoid
  3. * deprecation warnings.
  4. * @exception UnsupportedOperationException if this operation is used in
  5. * an AST later than JLS2
  6. * @since 3.1
  7. */
  8. /*package*/ final Type internalGetReturnType() {
  9. supportedOnlyIn2();
  10. if (this.returnType == null) {
  11. // lazy init must be thread-safe for readers
  12. synchronized (this) {
  13. if (this.returnType == null) {
  14. preLazyInit();
  15. this.returnType = this.ast.newPrimitiveType(PrimitiveType.VOID);
  16. postLazyInit(this.returnType, RETURN_TYPE_PROPERTY);
  17. }
  18. }
  19. }
  20. return this.returnType;
  21. }

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core

  1. /**
  2. * Internal synonym for deprecated method. Used to avoid
  3. * deprecation warnings.
  4. * @exception UnsupportedOperationException if this operation is used in
  5. * an AST later than JLS2
  6. * @since 3.1
  7. */
  8. /*package*/ final Type internalGetReturnType() {
  9. supportedOnlyIn2();
  10. if (this.returnType == null) {
  11. // lazy init must be thread-safe for readers
  12. synchronized (this) {
  13. if (this.returnType == null) {
  14. preLazyInit();
  15. this.returnType = this.ast.newPrimitiveType(PrimitiveType.VOID);
  16. postLazyInit(this.returnType, RETURN_TYPE_PROPERTY);
  17. }
  18. }
  19. }
  20. return this.returnType;
  21. }

代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core

  1. preLazyInit();
  2. this.returnType = this.ast.newPrimitiveType(PrimitiveType.VOID);
  3. this.returnType2Initialized = true;

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core

  1. preLazyInit();
  2. this.returnType = this.ast.newPrimitiveType(PrimitiveType.VOID);
  3. this.returnType2Initialized = true;

代码示例来源:origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core

  1. preLazyInit();
  2. this.returnType = this.ast.newPrimitiveType(PrimitiveType.VOID);
  3. this.returnType2Initialized = true;

代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core

  1. preLazyInit();
  2. this.returnType = this.ast.newPrimitiveType(PrimitiveType.VOID);
  3. this.returnType2Initialized = true;

代码示例来源:origin: trylimits/Eclipse-Postfix-Code-Completion

  1. preLazyInit();
  2. this.returnType = this.ast.newPrimitiveType(PrimitiveType.VOID);
  3. this.returnType2Initialized = true;

代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core

  1. preLazyInit();
  2. this.returnType = this.ast.newPrimitiveType(PrimitiveType.VOID);
  3. this.returnType2Initialized = true;

相关文章

MethodDeclaration类方法