Examples of VoidType


Examples of com.github.antlrjavaparser.api.type.VoidType

    public static Type getType(final JavaType javaType) {
        Validate.notNull(javaType, "Java type required");
        Validate.isTrue(javaType.isPrimitive(),
                "Java type must be primitive to be presented to this method");
        if (javaType.equals(JavaType.VOID_PRIMITIVE)) {
            return new VoidType();
        }
        else if (javaType.equals(JavaType.BOOLEAN_PRIMITIVE)) {
            return new PrimitiveType(Primitive.Boolean);
        }
        else if (javaType.equals(JavaType.BYTE_PRIMITIVE)) {
View Full Code Here

Examples of japa.parser.ast.type.VoidType

    public static Type getType(final JavaType javaType) {
        Validate.notNull(javaType, "Java type required");
        Validate.isTrue(javaType.isPrimitive(),
                "Java type must be primitive to be presented to this method");
        if (javaType.equals(JavaType.VOID_PRIMITIVE)) {
            return new VoidType();
        }
        else if (javaType.equals(JavaType.BOOLEAN_PRIMITIVE)) {
            return new PrimitiveType(Primitive.Boolean);
        }
        else if (javaType.equals(JavaType.BYTE_PRIMITIVE)) {
View Full Code Here

Examples of japa.parser.ast.type.VoidType

    final public Type ResultType() throws ParseException {
        Type ret;
        switch ((jj_ntk == -1) ? jj_ntk() : jj_ntk) {
            case VOID:
                jj_consume_token(VOID);
                ret = new VoidType(token.beginLine, token.beginColumn, token.endLine, token.endColumn);
                break;
            case BOOLEAN:
            case BYTE:
            case CHAR:
            case DOUBLE:
View Full Code Here

Examples of japa.parser.ast.type.VoidType

    @When("a public static method called \"$methodName\" returning void is added to class $position in the compilation unit")
    public void whenAStaticMethodCalledReturningIsAddedToClassInTheCompilationUnit(String methodName, int position) {
        CompilationUnit compilationUnit = (CompilationUnit) state.get("cu1");
        TypeDeclaration type = compilationUnit.getTypes().get(position -1);
        MethodDeclaration method = new MethodDeclaration(ModifierSet.PUBLIC, new VoidType(), methodName);
        method.setModifiers(ModifierSet.addModifier(method.getModifiers(), ModifierSet.STATIC));
        ASTHelper.addMember(type, method);
        state.put("cu1", compilationUnit);
    }
View Full Code Here

Examples of japa.parser.ast.type.VoidType

  @Override
  public Node visit(VoidType _n, Object _arg) {
    Comment comment = cloneNodes(_n.getComment(), _arg);

    VoidType r = new VoidType(_n.getBeginLine(), _n.getBeginColumn(), _n.getEndLine(), _n.getEndColumn());
    r.setComment(comment);
    return r;
  }
View Full Code Here

Examples of org.apache.cayenne.access.types.VoidType

        binder.bindMap(Constants.PROPERTIES_MAP);
       
        // configure extended types
        binder
                .bindList(Constants.SERVER_DEFAULT_TYPES_LIST)
                .add(new VoidType())
                .add(new BigDecimalType())
                .add(new BigIntegerType())
                .add(new BooleanType())
                .add(new ByteArrayType(false, true))
                .add(new ByteType(false))
View Full Code Here

Examples of org.apache.cayenne.access.types.VoidType

        binder.bindList(Constants.SERVER_DOMAIN_FILTERS_LIST);
       
        // configure extended types
        binder
                .bindList(Constants.SERVER_DEFAULT_TYPES_LIST)
                .add(new VoidType())
                .add(new BigDecimalType())
                .add(new BigIntegerType())
                .add(new BooleanType())
                .add(new ByteArrayType(false, true))
                .add(new ByteType(false))
View Full Code Here

Examples of org.apache.cayenne.access.types.VoidType

        binder.bindMap(Constants.PROPERTIES_MAP);
       
        // configure extended types
        binder
                .bindList(Constants.SERVER_DEFAULT_TYPES_LIST)
                .add(new VoidType())
                .add(new BigDecimalType())
                .add(new BigIntegerType())
                .add(new BooleanType())
                .add(new ByteArrayType(false, true))
                .add(new ByteType(false))
View Full Code Here

Examples of org.apache.cayenne.access.types.VoidType

        binder.bindList(Constants.SERVER_DOMAIN_FILTERS_LIST);
       
        // configure extended types
        binder
                .bindList(Constants.SERVER_DEFAULT_TYPES_LIST)
                .add(new VoidType())
                .add(new BigDecimalType())
                .add(new BigIntegerType())
                .add(new BooleanType())
                .add(new ByteArrayType(false, true))
                .add(new ByteType(false))
View Full Code Here

Examples of org.destecs.tools.jprotocolgenerator.ast.VoidType

    }

    // Constructor
    Method m = new Method();
    m.name = returnClass.getName();
    m.returnType = new VoidType();
    m.body = "";
    m.isConstructor = true;
    Integer count = 0;
    Parameter param = new Parameter(map, "value");
    m.parameters.add(param);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.