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


Java NullType类代码示例

本文整理汇总了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!");
    }
}
 
开发者ID:SamaGames,项目名称:Hub,代码行数:21,代码来源:ParticleManager.java

示例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() );
}
 
开发者ID:manifold-systems,项目名称:manifold,代码行数:19,代码来源:SrcClassUtil.java

示例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;
}
 
开发者ID:BrainTech,项目名称:jsignalml,代码行数:11,代码来源:NameCheck.java

示例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);
}
 
开发者ID:lightblue-platform,项目名称:lightblue-rdbms,代码行数:19,代码来源:VariableUpdateRowMapperTest.java

示例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 !");
}
 
开发者ID:SamaGames,项目名称:Hub,代码行数:9,代码来源:BalloonManager.java

示例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.");
}
 
开发者ID:SamaGames,项目名称:Hub,代码行数:9,代码来源:BalloonManager.java

示例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é !");
}
 
开发者ID:SamaGames,项目名称:Hub,代码行数:13,代码来源:DisguiseManager.java

示例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...");
}
 
开发者ID:SamaGames,项目名称:Hub,代码行数:10,代码来源:DisguiseManager.java

示例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 !");
}
 
开发者ID:SamaGames,项目名称:Hub,代码行数:12,代码来源:ClothManager.java

示例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...");
}
 
开发者ID:SamaGames,项目名称:Hub,代码行数:12,代码来源:ClothManager.java

示例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 !");
}
 
开发者ID:SamaGames,项目名称:Hub,代码行数:12,代码来源:PetManager.java

示例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...");
    }
}
 
开发者ID:SamaGames,项目名称:Hub,代码行数:12,代码来源:PetManager.java

示例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...");
}
 
开发者ID:SamaGames,项目名称:Hub,代码行数:13,代码来源:ParticleManager.java

示例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.");
}
 
开发者ID:SamaGames,项目名称:Hub,代码行数:9,代码来源:GadgetManager.java

示例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é.");
    }
}
 
开发者ID:SamaGames,项目名称:Hub,代码行数:12,代码来源:GadgetManager.java


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