本文整理汇总了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;
}
示例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);
}
}
示例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;
}
示例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));
}
示例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));
}