< prev index next >

src/jdk.jcmd/share/classes/sun/tools/jstat/ColumnFormat.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2004, 2013, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2004, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 39,48 **** --- 39,49 ---- private Alignment align = Alignment.CENTER; private Scale scale = Scale.RAW; private String format; private String header; private Expression expression; + private boolean forcibly = false; private Object previousValue; public ColumnFormat(int number) { super("Column" + number); this.number = number;
*** 119,128 **** --- 120,137 ---- public void setExpression(Expression e) { this.expression = e; } + public void setForcibly(boolean f) { + this.forcibly = f; + } + + public boolean isForcibly() { + return this.forcibly; + } + public void setPreviousValue(Object o) { this.previousValue = o; } public Object getPreviousValue() {
*** 139,149 **** System.out.println(indent + name + " {"); System.out.println(indent + indentAmount + "name=" + name + ";data=" + expression.toString() + ";header=" + header + ";format=" + format + ";width=" + width ! + ";scale=" + scale.toString() + ";align=" + align.toString()); for (Iterator<OptionFormat> i = children.iterator(); i.hasNext(); /* empty */) { OptionFormat of = i.next(); of.printFormat(indentLevel+1); } --- 148,159 ---- System.out.println(indent + name + " {"); System.out.println(indent + indentAmount + "name=" + name + ";data=" + expression.toString() + ";header=" + header + ";format=" + format + ";width=" + width ! + ";scale=" + scale.toString() + ";align=" + align.toString() ! + ";forcibly=" + forcibly); for (Iterator<OptionFormat> i = children.iterator(); i.hasNext(); /* empty */) { OptionFormat of = i.next(); of.printFormat(indentLevel+1); }
< prev index next >