当前位置: 首页>>代码示例>>Java>>正文


Java AccessorType类代码示例

本文整理汇总了Java中org.eclipse.xtend.lib.annotations.AccessorType的典型用法代码示例。如果您正苦于以下问题:Java AccessorType类的具体用法?Java AccessorType怎么用?Java AccessorType使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


AccessorType类属于org.eclipse.xtend.lib.annotations包,在下文中一共展示了AccessorType类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: shouldAddSetter

import org.eclipse.xtend.lib.annotations.AccessorType; //导入依赖的package包/类
public boolean shouldAddSetter(final FieldDeclaration it) {
	boolean _and = false;
	boolean _and_1 = false;
	final boolean _isFinal = it.isFinal();
	final boolean _not = (!_isFinal);
	if (!_not) {
		_and_1 = false;
	} else {
		final boolean _hasSetter = this.hasSetter(it);
		final boolean _not_1 = (!_hasSetter);
		_and_1 = _not_1;
	}
	if (!_and_1) {
		_and = false;
	} else {
		final AccessorType _setterType = this.getSetterType(it);
		final boolean _tripleNotEquals = (_setterType != AccessorType.NONE);
		_and = _tripleNotEquals;
	}
	return _and;
}
 
开发者ID:CymricNPG,项目名称:abattle,代码行数:22,代码来源:DirtyAccessorsProcessor.java

示例2: _transform

import org.eclipse.xtend.lib.annotations.AccessorType; //导入依赖的package包/类
protected void _transform(final MutableFieldDeclaration it, @Extension final TransformationContext context) {
	@Extension
	final DirtyAccessorsProcessor.Util util = new DirtyAccessorsProcessor.Util(context);
	final boolean _shouldAddGetter = util.shouldAddGetter(it);
	if (_shouldAddGetter) {
		final AccessorType _getterType = util.getGetterType(it);
		final Visibility _visibility = util.toVisibility(_getterType);
		util.addGetter(it, _visibility);
	}
	final boolean _shouldAddSetter = util.shouldAddSetter(it);
	if (_shouldAddSetter) {
		final AccessorType _setterType = util.getSetterType(it);
		final Visibility _visibility_1 = util.toVisibility(_setterType);
		util.addSetter(it, _visibility_1);
	}
}
 
开发者ID:CymricNPG,项目名称:abattle,代码行数:17,代码来源:DirtyAccessorsProcessor.java

示例3: shouldAddGetter

import org.eclipse.xtend.lib.annotations.AccessorType; //导入依赖的package包/类
public boolean shouldAddGetter(final FieldDeclaration it) {
	boolean _and = false;
	final boolean _hasGetter = this.hasGetter(it);
	final boolean _not = (!_hasGetter);
	if (!_not) {
		_and = false;
	} else {
		final AccessorType _getterType = this.getGetterType(it);
		final boolean _tripleNotEquals = (_getterType != AccessorType.NONE);
		_and = _tripleNotEquals;
	}
	return _and;
}
 
开发者ID:CymricNPG,项目名称:abattle,代码行数:14,代码来源:DirtyAccessorsProcessor.java

示例4: shouldAddGetter

import org.eclipse.xtend.lib.annotations.AccessorType; //导入依赖的package包/类
public boolean shouldAddGetter(final FieldDeclaration it) {
  return ((!this.hasGetter(it)) && (this.getGetterType(it) != AccessorType.NONE));
}
 
开发者ID:eclipse,项目名称:xtext-lib,代码行数:4,代码来源:AccessorsProcessor.java

示例5: shouldAddSetter

import org.eclipse.xtend.lib.annotations.AccessorType; //导入依赖的package包/类
public boolean shouldAddSetter(final FieldDeclaration it) {
  return (((!it.isFinal()) && (!this.hasSetter(it))) && (this.getSetterType(it) != AccessorType.NONE));
}
 
开发者ID:eclipse,项目名称:xtext-lib,代码行数:4,代码来源:AccessorsProcessor.java


注:本文中的org.eclipse.xtend.lib.annotations.AccessorType类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。