protected int level(InstructionInfo info) { int construct = info.getConstructType(); if (construct == StandardNames.XSL_FUNCTION ||construct == StandardNames.XSL_TEMPLATE) { return 1; } if (info instanceof Instruction) { return 2; } else { return 3; } }
protected int level(InstructionInfo info) { int construct = info.getConstructType(); if (construct == StandardNames.XSL_FUNCTION ||construct == StandardNames.XSL_TEMPLATE) { return 1; } if (info instanceof Instruction) { return 2; } else { return 3; } }
/** * Called after an instruction of the stylesheet got processed */ public void leave(InstructionInfo instruction) { int loc = instruction.getConstructType(); if (loc == StandardNames.XSL_FUNCTION || loc == StandardNames.XSL_TEMPLATE) { String tag = "<end time=\"" + System.currentTimeMillis() + "\"/></"; tag += (loc==StandardNames.XSL_FUNCTION ? "function>" : "template>"); System.err.println(tag); } }
/** * Called after an instruction of the stylesheet got processed */ public void leave(InstructionInfo instruction) { int loc = instruction.getConstructType(); if (loc == StandardNames.XSL_FUNCTION || loc == StandardNames.XSL_TEMPLATE) { String tag = "<end time=\"" + System.currentTimeMillis() + "\"/></"; tag += (loc==StandardNames.XSL_FUNCTION ? "function>" : "template>"); System.err.println(tag); } }
/** * Called when an instruction in the stylesheet gets processed */ public void enter(/*@NotNull*/ InstructionInfo instruction, XPathContext context) { int loc = instruction.getConstructType(); if (loc == StandardNames.XSL_FUNCTION || loc == StandardNames.XSL_TEMPLATE || loc == StandardNames.XSL_VARIABLE) { long start = System.nanoTime(); InstructionDetails instructDetails = new InstructionDetails(); instructDetails.instruct = instruction; instructDetails.gross = start; instructs.add(instructDetails); instructStack[stackDepth++] = instruction; } }
/** * Get the type of location from which this context was created. */ public int getOriginatingConstructType() { if (origin == null) { return -1; } if (origin instanceof InstructionInfoProvider) { return ((InstructionInfoProvider)origin).getInstructionInfo().getConstructType(); } else { return ((Integer)origin).intValue(); } }
/** * Get the type of location from which this context was created. */ public int getOriginatingConstructType() { if (origin == null) { return -1; } if (origin instanceof InstructionInfoProvider) { return ((InstructionInfoProvider)origin).getInstructionInfo().getConstructType(); } else { return ((Integer)origin).intValue(); } }
/** * Called when an instruction in the stylesheet gets processed */ public void enter(/*@NotNull*/ InstructionInfo instruction, XPathContext context) { int loc = instruction.getConstructType(); if (loc == StandardNames.XSL_FUNCTION || loc == StandardNames.XSL_TEMPLATE || loc == StandardNames.XSL_VARIABLE) { long start = System.nanoTime(); InstructionDetails instructDetails = new InstructionDetails(); instructDetails.instruct = instruction; instructDetails.gross = start; instructs.add(instructDetails); instructStack[stackDepth++] = instruction; } }
/** * Get the type of location from which this context was created. */ public int getOriginatingConstructType() { if (origin == null) { return -1; } if (origin instanceof Expression) { if (origin instanceof PathExpression) { return Location.PATH_EXPRESSION; } return ((Expression)origin).getConstructType(); } else if (origin instanceof Integer) { return ((Integer)origin).intValue(); } else if (origin instanceof InstructionInfo) { return ((InstructionInfo)origin).getConstructType(); } else { return -1; } }
int loc = instruction.getConstructType(); if (loc == StandardNames.XSL_FUNCTION || loc == StandardNames.XSL_TEMPLATE || loc == StandardNames.XSL_VARIABLE) { InstructionDetails instruct = instructs.peek();
/** * Called after an instruction of the stylesheet got processed */ public void leave(InstructionInfo info) { int infotype = info.getConstructType(); String tag = tag(infotype); if (tag==null) { // this TraceListener ignores some events to reduce the volume of output return; } indent--; out.println(AbstractTraceListener.spaces(indent) + "</" + tag + '>'); }
int loc = instruction.getConstructType(); if (loc == StandardNames.XSL_FUNCTION || loc == StandardNames.XSL_TEMPLATE || loc == StandardNames.XSL_VARIABLE) { InstructionDetails instruct = instructs.peek();
/** * Called after an instruction of the stylesheet got processed */ public void leave(InstructionInfo info) { int infotype = info.getConstructType(); String tag = tag(infotype); if (tag==null) { // this TraceListener ignores some events to reduce the volume of output return; } indent--; out.println(AbstractTraceListener.spaces(indent) + "</" + tag + '>'); }
/** * Called after an instruction of the stylesheet got processed */ public void leave(/*@NotNull*/ InstructionInfo info) { int infotype = info.getConstructType(); String tag = tag(infotype); if (level(info) > detail || tag == null) { // this TraceListener ignores some events to reduce the volume of output return; } indent--; out.info(AbstractTraceListener.spaces(indent) + "</" + tag + '>'); }
/** * Called after an instruction of the stylesheet got processed */ public void leave(/*@NotNull*/ InstructionInfo info) { int infotype = info.getConstructType(); String tag = tag(infotype); if (level(info) > detail || tag == null) { // this TraceListener ignores some events to reduce the volume of output return; } indent--; out.info(AbstractTraceListener.spaces(indent) + "</" + tag + '>'); }
int loc = instruction.getConstructType(); if (loc == StandardNames.XSL_FUNCTION || loc == StandardNames.XSL_TEMPLATE) { String tag = "<";
int loc = instruction.getConstructType(); if (loc == StandardNames.XSL_FUNCTION || loc == StandardNames.XSL_TEMPLATE) { String tag = "<";
int infotype = info.getConstructType(); StructuredQName qName = info.getObjectName(); String tag = tag(infotype);
int infotype = info.getConstructType(); StructuredQName qName = info.getObjectName(pool); String tag = tag(infotype);
int infotype = info.getConstructType(); StructuredQName qName = info.getObjectName(); String tag = tag(infotype);