Package com.sun.xml.internal.bind.v2.runtime

Examples of com.sun.xml.internal.bind.v2.runtime.Location


            }
        };
    }

    public Location getMethodLocation(final Method method) {
        return new Location() {
            public String toString() {
                return method.toString();
            }
        };
    }
View Full Code Here


        return new NParameterizedType(create(rawType),args);
    }

    public Location getClassLocation(final NClass c) {
        // not really needed for XJC but doesn't hurt to have one
        return new Location() {
            public String toString() {
                return c.fullName();
            }
        };
    }
View Full Code Here

    private Location getLocation(MemberDeclaration decl) {
        return getLocation(decl.getDeclaringType().getQualifiedName()+'.'+decl.getSimpleName(),decl.getPosition());
    }

    private Location getLocation(final String name, final SourcePosition sp) {
        return new Location() {
            public String toString() {
                if(sp==null)
                    return name+" (Unknown Source)";
                // just like stack trace, we just print the file name and
                // not the whole path. The idea is that the pakage name should
View Full Code Here

        return new NParameterizedType(create(rawType),args);
    }

    public Location getClassLocation(final NClass c) {
        // not really needed for XJC but doesn't hurt to have one
        return new Location() {
            public String toString() {
                return c.fullName();
            }
        };
    }
View Full Code Here

    private Location getLocation(MemberDeclaration decl) {
        return getLocation(decl.getDeclaringType().getQualifiedName()+'.'+decl.getSimpleName(),decl.getPosition());
    }

    private Location getLocation(final String name, final SourcePosition sp) {
        return new Location() {
            public String toString() {
                if(sp==null)
                    return name+" (Unknown Source)";
                // just like stack trace, we just print the file name and
                // not the whole path. The idea is that the pakage name should
View Full Code Here

        assert primitiveType.isPrimitive();
        return primitiveType;
    }

    public Location getClassLocation(final Class clazz) {
        return new Location() {

            @Override
            public String toString() {
                return clazz.getName();
            }
View Full Code Here

            }
        };
    }

    public Location getFieldLocation(final Field field) {
        return new Location() {

            @Override
            public String toString() {
                return field.toString();
            }
View Full Code Here

            }
        };
    }

    public Location getMethodLocation(final Method method) {
        return new Location() {

            @Override
            public String toString() {
                return method.toString();
            }
View Full Code Here

/* 434 */     assert (primitiveType.isPrimitive());
/* 435 */     return primitiveType;
/*     */   }
/*     */
/*     */   public Location getClassLocation(Class clazz) {
/* 439 */     return new Location(clazz) {
/*     */       public String toString() {
/* 441 */         return this.val$clazz.getName();
/*     */       } } ;
/*     */   }
View Full Code Here

/* 441 */         return this.val$clazz.getName();
/*     */       } } ;
/*     */   }
/*     */
/*     */   public Location getFieldLocation(Field field) {
/* 447 */     return new Location(field) {
/*     */       public String toString() {
/* 449 */         return this.val$field.toString();
/*     */       } } ;
/*     */   }
View Full Code Here

TOP

Related Classes of com.sun.xml.internal.bind.v2.runtime.Location

Copyright © 2018 www.massapicom. 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.