本文整理汇总了Java中javax.lang.model.type.NullType类的典型用法代码示例。如果您正苦于以下问题:Java NullType类的具体用法?Java NullType怎么用?Java NullType使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
NullType类属于javax.lang.model.type包,在下文中一共展示了NullType类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: enableCosmetic
import javax.lang.model.type.NullType; //导入依赖的package包/类
@Override
public void enableCosmetic(Player player, ParticleCosmetic cosmetic, ClickType clickType, boolean login, NullType useless)
{
try
{
Effect particleEffectObject = cosmetic.getParticleEffect().getConstructor(EffectManager.class).newInstance(this.effectManager);
particleEffectObject.setEntity(player);
particleEffectObject.infinite();
particleEffectObject.start();
this.playersParticleEffect.put(player.getUniqueId(), particleEffectObject);
if (!login)
player.sendMessage(PlayerManager.COSMETICS_TAG + ChatColor.GREEN + "Vous voilà noyé sous les particules...");
}
catch (ReflectiveOperationException e)
{
this.hub.getCosmeticManager().log(Level.SEVERE, "Can't create EntityEffect object to " + player.getName() + "'s particle effect!");
}
}
示例2: makeTypeVarType
import javax.lang.model.type.NullType; //导入依赖的package包/类
private SrcType makeTypeVarType( Symbol.TypeVariableSymbol typeVar )
{
StringBuilder sb = new StringBuilder( typeVar.type.toString() );
Type lowerBound = typeVar.type.getLowerBound();
if( lowerBound != null && !(lowerBound instanceof NullType) )
{
sb.append( " super " ).append( lowerBound.toString() );
}
else
{
Type upperBound = typeVar.type.getUpperBound();
if( upperBound != null && !(upperBound instanceof NoType) && !upperBound.toString().equals( Object.class.getName() ) )
{
sb.append( " extends " ).append( upperBound.toString() );
}
}
return new SrcType( sb.toString() );
}
示例3: visit
import javax.lang.model.type.NullType; //导入依赖的package包/类
@Override
public NullType visit(ASTNode.XmlParam node, NullType parent)
{
log.debug("checking %s", node);
ExpressionNameCheck checker = new ExpressionNameCheck(node);
assert node.xpathPattern != null;
assert node.xpathEvaluationType != null;
node.xpathPattern.accept(checker);
return null;
}
示例4: testNull
import javax.lang.model.type.NullType; //导入依赖的package包/类
@Test
public void testNull() throws SQLException{
ResultSet mockResultSet = createMockedResultSet("NULL", Types.NULL);
variableUpdateRowMapper.map(mockResultSet);
DynVar dynVar = rdbmsContext.getOutVar();
assertNotNull(dynVar);
assertEquals(NullType.class, dynVar.getFirstClassFromKey(LABEL));
List values = dynVar.getValues(LABEL);
assertNotNull(values);
assertEquals(1, values.size());
Object value = values.get(0);
assertNull(value);
}
示例5: enableCosmetic
import javax.lang.model.type.NullType; //导入依赖的package包/类
@Override
public void enableCosmetic(Player player, BalloonCosmetic cosmetic, ClickType clickType, boolean login, NullType useless)
{
cosmetic.spawn(player);
if (!login)
player.sendMessage(PlayerManager.COSMETICS_TAG + ChatColor.GREEN + "Des ballons flottent autour de vous !");
}
示例6: disableCosmetic
import javax.lang.model.type.NullType; //导入依赖的package包/类
@Override
public void disableCosmetic(Player player, BalloonCosmetic cosmetic, boolean logout, boolean replace, NullType useless)
{
cosmetic.remove(player);
if (!logout && !replace)
player.sendMessage(PlayerManager.COSMETICS_TAG + ChatColor.GREEN + "Vos ballons ont éclatés.");
}
示例7: enableCosmetic
import javax.lang.model.type.NullType; //导入依赖的package包/类
@Override
public void enableCosmetic(Player player, DisguiseCosmetic cosmetic, ClickType clickType, boolean login, NullType useless)
{
MobDisguise disguise = new MobDisguise(cosmetic.getDisguiseType());
disguise.setShowName(true);
disguise.setViewSelfDisguise(false);
DisguiseAPI.disguiseToAll(player, disguise);
if (!login)
player.sendMessage(PlayerManager.COSMETICS_TAG + ChatColor.GREEN + "Vous êtes maintenant déguisé !");
}
示例8: disableCosmetic
import javax.lang.model.type.NullType; //导入依赖的package包/类
@Override
public void disableCosmetic(Player player, DisguiseCosmetic cosmetic, boolean logout, boolean replace, NullType useless)
{
if (DisguiseAPI.isDisguised(player))
DisguiseAPI.undisguiseToAll(player);
if (!logout && !replace)
player.sendMessage(PlayerManager.COSMETICS_TAG + ChatColor.GREEN + "Votre déguisement disparait dans l'ombre...");
}
示例9: enableCosmetic
import javax.lang.model.type.NullType; //导入依赖的package包/类
@Override
public void enableCosmetic(Player player, ClothCosmetic cosmetic, ClickType clickType, boolean login, NullType useless)
{
if (this.getEquippedCosmetics(player) != null)
this.getEquippedCosmetics(player).stream().filter(c -> cosmetic.getSlot() == c.getSlot()).forEach(c -> this.disableCosmetic(player, c, false, true));
cosmetic.getSlot().equip(player, cosmetic.getPiece());
if (!login)
player.sendMessage(PlayerManager.COSMETICS_TAG + ChatColor.GREEN + "Vous brillez de mille feux avec votre nouvel habit !");
}
示例10: disableCosmetic
import javax.lang.model.type.NullType; //导入依赖的package包/类
@Override
public void disableCosmetic(Player player, ClothCosmetic cosmetic, boolean logout, boolean replace, NullType useless)
{
if (this.previewers.containsKey(player.getUniqueId()))
this.stopPreview(player);
cosmetic.getSlot().equip(player, null);
if (!logout && !replace)
player.sendMessage(PlayerManager.COSMETICS_TAG + ChatColor.GREEN + "Vous retirez votre vêtement...");
}
示例11: enableCosmetic
import javax.lang.model.type.NullType; //导入依赖的package包/类
@Override
public void enableCosmetic(Player player, PetCosmetic cosmetic, ClickType clickType, boolean login, NullType useless)
{
IPet pet = EchoPetAPI.getAPI().givePet(player, cosmetic.getPetType(), false);
pet.setPetName(player.getName(), false);
cosmetic.applyCustomization(pet);
if (!login)
player.sendMessage(PlayerManager.COSMETICS_TAG + ChatColor.GREEN + "Votre animal vient de sortir de l'écurie !");
}
示例12: disableCosmetic
import javax.lang.model.type.NullType; //导入依赖的package包/类
@Override
public void disableCosmetic(Player player, PetCosmetic cosmetic, boolean logout, boolean replace, NullType useless)
{
if (EchoPetAPI.getAPI().hasPet(player))
{
EchoPetAPI.getAPI().removePet(player, false, false);
if (!logout && !replace)
player.sendMessage(PlayerManager.COSMETICS_TAG + ChatColor.GREEN + "Votre animal disparait dans l'ombre...");
}
}
示例13: disableCosmetic
import javax.lang.model.type.NullType; //导入依赖的package包/类
@Override
public void disableCosmetic(Player player, ParticleCosmetic cosmetic, boolean logout, boolean replace, NullType useless)
{
if (this.playersParticleEffect.containsKey(player.getUniqueId()))
{
this.playersParticleEffect.get(player.getUniqueId()).cancel();
this.playersParticleEffect.remove(player.getUniqueId());
}
if (!logout && !replace)
player.sendMessage(PlayerManager.COSMETICS_TAG + ChatColor.GREEN + "Votre effet disparait dans l'ombre...");
}
示例14: enableCosmetic
import javax.lang.model.type.NullType; //导入依赖的package包/类
@Override
public void enableCosmetic(Player player, GadgetCosmetic cosmetic, ClickType clickType, boolean login, NullType useless)
{
player.getInventory().setItem(6, cosmetic.getIcon(player));
if (!login)
player.sendMessage(PlayerManager.COSMETICS_TAG + ChatColor.GREEN + "Votre gadget a été équipé dans votre barre d'action.");
}
示例15: disableCosmetic
import javax.lang.model.type.NullType; //导入依赖的package包/类
@Override
public void disableCosmetic(Player player, GadgetCosmetic cosmetic, boolean logout, boolean replace, NullType useless)
{
if (!logout)
{
player.getInventory().setItem(6, null);
if (!replace)
player.sendMessage(PlayerManager.COSMETICS_TAG + ChatColor.GREEN + "Votre gadget a été déséquipé.");
}
}