Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/jboss-javassist/javassist
/ functions
Functions
5,108 in github.com/jboss-javassist/javassist
⨍
Functions
5,108
◇
Types & classes
989
↓ 444 callers
Method
getName
()
src/test/test/javassist/proxy/ProxySerializationTest.java:158
↓ 382 callers
Method
get
()
src/test/javassist/proxyfactory/ProxyFactoryTest.java:88
↓ 342 callers
Method
get
Returns a unique class name. @param classname the super class name of the proxy class.
src/main/javassist/util/proxy/ProxyFactory.java:866
↓ 280 callers
Method
println
Prints the stack table map.
src/main/javassist/bytecode/StackMapTable.java:712
↓ 248 callers
Method
addOpcode
Appends an 8bit opcode to the end of the bytecode sequence. The current stack depth is updated. <code>max_stack</code> is updated if the current stack
src/main/javassist/bytecode/Bytecode.java:420
↓ 228 callers
Method
getLineNumber
()
src/main/javassist/compiler/Lex.java:538
↓ 228 callers
Method
writeFile
Writes a class file represented by this <code>CtClass</code> object in the current directory. Once this method is called, further modifications are no
src/main/javassist/CtClass.java:1538
↓ 226 callers
Method
getName
Obtains the fully-qualified name of the class.
src/main/javassist/CtClass.java:365
↓ 217 callers
Method
getDeclaredMethod
Retrieves the method with the specified name and parameter types among the methods declared in the class. <p>Note: this method does not search the su
src/main/javassist/CtClass.java:1018
↓ 214 callers
Method
append
Appends an object to a list.
src/main/javassist/compiler/ast/ASTList.java:149
↓ 213 callers
Method
invoke
(Object self, Method m, Object[] args)
src/test/test3/Enhancer.java:44
↓ 210 callers
Method
toString
()
src/test/testproxy/Target3.java:5
↓ 196 callers
Method
append
Appends the given bytecode sequence at the end. @param code the bytecode appended. @return the position of the first byte of the appended bytec
src/main/javassist/bytecode/CodeIterator.java:714
↓ 188 callers
Method
addMethod
Adds a method.
src/main/javassist/CtClass.java:1089
↓ 159 callers
Method
add
Appends an 8bit value to the end of the bytecode sequence.
src/main/javassist/bytecode/Bytecode.java:387
↓ 157 callers
Method
write
Writes all the contents of the attributes. The binary representation of the contents is an array of <code>attribute_info</code>.
src/main/javassist/bytecode/ClassFileWriter.java:232
↓ 154 callers
Method
make
(String name)
src/test/javassist/JvstTestRoot.java:32
↓ 147 callers
Method
equals
(Object obj)
src/main/javassist/bytecode/ConstPool.java:2050
↓ 140 callers
Method
make
Compiles the given source code and creates a method. The source code must include not only the method body but the whole declaration, for example, <p
src/main/javassist/CtNewMethod.java:47
↓ 119 callers
Method
readU16bit
Reads an unsigned 16bit integer at the index.
src/main/javassist/bytecode/ByteArray.java:26
↓ 119 callers
Method
writeShort
(int s)
src/main/javassist/bytecode/ByteStream.java:61
↓ 100 callers
Method
currentPc
Returns the length of bytecode sequence that have been added so far.
src/main/javassist/bytecode/Bytecode.java:320
↓ 92 callers
Method
addClassInfo
Adds a new <code>CONSTANT_Class_info</code> structure. <p>This also adds a <code>CONSTANT_Utf8_info</code> structure for storing the class name. @re
src/main/javassist/bytecode/ConstPool.java:968
↓ 92 callers
Method
size
Returns the number of attributes that this writer will write.
src/main/javassist/bytecode/ClassFileWriter.java:226
↓ 81 callers
Method
addUtf8Info
Adds a new <code>CONSTANT_Utf8_info</code> structure. @return the index of the added entry.
src/main/javassist/bytecode/ConstPool.java:1201
↓ 80 callers
Method
write16bit
Writes a 16bit integer at the index.
src/main/javassist/bytecode/ByteArray.java:40
↓ 79 callers
Method
getUtf8Info
Reads <code>CONSTANT_utf8_info</code> structure at the given index. @return the string specified by this entry.
src/main/javassist/bytecode/ConstPool.java:672
↓ 76 callers
Method
addAload
Appends ALOAD or (WIDE) ALOAD_<n> @param n an index into the local variable array.
src/main/javassist/bytecode/Bytecode.java:467
↓ 76 callers
Method
equals
(Object o)
src/test/test/javassist/convert/ArrayAccessReplaceTest.java:239
↓ 76 callers
Method
getModifiers
Returns the modifiers for this class, encoded in an integer. For decoding, use <code>javassist.Modifier</code>. <p>If the class is a static nested cl
src/main/javassist/CtClass.java:592
↓ 76 callers
Method
instrument
Applies the given converter to all methods and constructors declared in the class. This method calls <code>instrument()</code> on every <code>CtMetho
src/main/javassist/CtClass.java:1245
↓ 75 callers
Method
addIndex
Appends a 16bit value to the end of the bytecode sequence. It never changes the current stack depth.
src/main/javassist/bytecode/Bytecode.java:458
↓ 74 callers
Method
makeClass
(String id)
src/test/javassist/ConcurrentClassDefinitionTest.java:67
↓ 72 callers
Method
getConstructor
Returns the constructor with the given signature, which is represented by a character string called method descriptor. For details of the method descr
src/main/javassist/CtClass.java:930
↓ 72 callers
Method
newInstance
Creates a new instance of the class. @param args the arguments passed to the constructor.
examples/src/main/javassist/tools/reflect/ClassMetaobject.java:135
↓ 72 callers
Method
put
Updates this map so that the given <code>key</code> maps to the given <code>value</code>. If the map previously contained a mapping for <code>key</cod
src/main/javassist/scopedpool/SoftValueHashMap.java:215
↓ 71 callers
Method
byteAt
Returns the unsigned 8bit value at the given index.
src/main/javassist/bytecode/CodeIterator.java:152
↓ 71 callers
Method
replace
(Object[] args)
src/test/test1/BenchProceed.java:61
↓ 69 callers
Method
getDefault
Returns the default class pool. The returned object is always identical since this method is a singleton factory. <p>The default class pool searches
src/main/javassist/ClassPool.java:206
↓ 69 callers
Method
getField
Returns the field with the specified name. The returned field may be a private field declared in a super class or interface.
src/main/javassist/CtClass.java:847
↓ 66 callers
Method
verifyAssignable
(Type expected, Type type)
src/main/javassist/bytecode/analysis/Executor.java:1043
↓ 65 callers
Method
get
()
src/test/test5/JIRA246.java:11
↓ 65 callers
Method
lookAhead
Looks at the next token.
src/main/javassist/compiler/Lex.java:69
↓ 64 callers
Method
getConstPool
()
src/main/javassist/expr/Expr.java:73
↓ 63 callers
Method
length
Returns the length of the bytecode sequence.
src/main/javassist/bytecode/Bytecode.java:201
↓ 62 callers
Method
fail
(ClassNotFoundException e)
src/main/javassist/runtime/DotClass.java:26
↓ 61 callers
Method
get
Reads a class file from the source and returns a reference to the <code>CtClass</code> object representing that class file. If that class file has be
src/main/javassist/ClassPool.java:422
↓ 61 callers
Method
getMethodInfo2
Returns the <code>MethodInfo</code> representing the method/constructor in the class file (read only). Normal applications do not need calling this me
src/main/javassist/CtBehavior.java:153
↓ 61 callers
Method
writeByte
Writes an 8bit value at the given index.
src/main/javassist/bytecode/CodeIterator.java:162
↓ 60 callers
Method
u16bitAt
Returns the unsigned 16bit value at the given index.
src/main/javassist/bytecode/CodeIterator.java:169
↓ 59 callers
Method
getDescriptor
Returns the field descriptor. @see Descriptor
src/main/javassist/bytecode/FieldInfo.java:182
↓ 59 callers
Method
getItem
(int n)
src/main/javassist/bytecode/ConstPool.java:243
↓ 54 callers
Method
equals
Indicates whether <code>obj</code> has the same name and the same signature as this method.
src/main/javassist/CtMethod.java:194
↓ 54 callers
Method
head
Returns the car part of the list.
src/main/javassist/compiler/ast/ASTList.java:62
↓ 53 callers
Method
addField
Adds a field. <p>The <code>CtField</code> belonging to another <code>CtClass</code> cannot be directly added to this class. Only a field created for
src/main/javassist/CtClass.java:1112
↓ 51 callers
Method
createClass
Generates a proxy class using the current filter. The module or package where a proxy class is created has to be opened to this package or the Javassi
src/main/javassist/util/proxy/ProxyFactory.java:477
↓ 51 callers
Method
getClassFile
Returns a class file for this class. <p>This method is not available if <code>isFrozen()</code> is true.
src/main/javassist/CtClass.java:233
↓ 50 callers
Method
accept
(Visitor v)
src/main/javassist/compiler/ast/Expr.java:70
↓ 50 callers
Method
simplePop
(Frame frame)
src/main/javassist/bytecode/analysis/Executor.java:985
↓ 49 callers
Method
replace
Replaces this expression with the bytecode derived from the given source text. @param statement a Java statement except try-catch.
src/main/javassist/expr/Expr.java:265
↓ 48 callers
Method
getCodeAttribute
Returns a Code attribute. @return a Code attribute or null if it is not specified.
src/main/javassist/bytecode/MethodInfo.java:374
↓ 46 callers
Method
checkModify
()
src/main/javassist/CtClass.java:297
↓ 46 callers
Method
close
()
src/main/javassist/CtClass.java:1659
↓ 46 callers
Method
getClassInfo
Reads <code>CONSTANT_Class_info</code> structure at the given index. @return a fully-qualified class or interface name specified by <code>n
src/main/javassist/bytecode/ConstPool.java:271
↓ 45 callers
Method
indexOf
(String s, int ch)
src/main/javassist/bytecode/SignatureAttribute.java:282
↓ 45 callers
Method
setSuperclass
Sets the super class of a proxy class.
src/main/javassist/util/proxy/ProxyFactory.java:404
↓ 44 callers
Method
getMessage
()
src/main/javassist/compiler/CompileError.java:59
↓ 44 callers
Method
insertAfter
Inserts bytecode at the end of the body. The bytecode is inserted just before every return instruction. It is not executed when an exception is thrown
src/main/javassist/CtBehavior.java:821
↓ 44 callers
Method
tail
Returns the cdr part of the list.
src/main/javassist/compiler/ast/ASTList.java:71
↓ 43 callers
Method
getDeclaringClass
If this class is a member class or interface of another class, then the class enclosing this class is returned. @return null if this class is a top-l
src/main/javassist/CtClass.java:783
↓ 42 callers
Method
addIconst
Appends ICONST or ICONST_<n> @param n the pushed integer constant.
src/main/javassist/bytecode/Bytecode.java:505
↓ 42 callers
Method
getClassFile2
Returns a class file for this class (read only). Normal applications do not need calling this method. Use <code>getClassFile()</code>. <p>The <code>
src/main/javassist/CtClass.java:256
↓ 42 callers
Method
oprand1
()
src/main/javassist/compiler/ast/Expr.java:58
↓ 42 callers
Method
setModifiers
Sets the modifiers. <p>If the class is a nested class, this method also modifies the class declaring that nested class (i.e. the enclosing class is m
src/main/javassist/CtClass.java:697
↓ 41 callers
Method
getAttribute
Returns the attribute with the specified name. If there are multiple attributes with that name, this method returns either of them. It returns null
src/main/javassist/bytecode/ClassFile.java:744
↓ 41 callers
Method
next
Returns the index of the next instruction (not the operand following the current opcode). <p>Note that the index is into the byte array returned by <
src/main/javassist/bytecode/CodeIterator.java:227
↓ 41 callers
Method
s32bitAt
Returns the signed 32bit value at the given index.
src/main/javassist/bytecode/CodeIterator.java:190
↓ 40 callers
Method
add
Inserts the specified element at the tail of this queue if it is possible to do so immediately without exceeding the queue's capacity, returning {@cod
src/test/test/javassist/convert/InstrumentationTarget.java:236
↓ 40 callers
Method
getClassPool
Returns a <code>ClassPool</code> for this class.
src/main/javassist/CtClass.java:225
↓ 40 callers
Method
getMethod
Returns the method with the given name and signature. The returned method may be declared in a super class. The method signature is represented by a c
src/main/javassist/CtClass.java:992
↓ 40 callers
Method
oprand2
()
src/main/javassist/compiler/ast/Expr.java:64
↓ 38 callers
Method
insertBefore
Inserts bytecode at the beginning of the catch clause. The caught exception is stored in <code>$1</code>. @param src the source code representi
src/main/javassist/expr/Handler.java:122
↓ 36 callers
Method
addAstore
Appends ASTORE or (WIDE) ASTORE_<n> @param n an index into the local variable array.
src/main/javassist/bytecode/Bytecode.java:486
↓ 36 callers
Method
getClassFile2
()
src/main/javassist/CtClassType.java:176
↓ 36 callers
Method
of
Converts to a descriptor from a Java class name
src/main/javassist/bytecode/Descriptor.java:123
↓ 36 callers
Method
subtypeOf
Returns <code>true</code> if this class extends or implements <code>clazz</code>. It also returns <code>true</code> if this class is the same as <cod
src/main/javassist/CtClass.java:358
↓ 35 callers
Method
iterator
Makes a new iterator for reading this code attribute.
src/main/javassist/bytecode/CodeAttribute.java:296
↓ 35 callers
Method
setHandler
Sets a handler. It can be used for changing handlers during runtime.
src/main/javassist/util/proxy/Proxy.java:32
↓ 33 callers
Method
dataSize
Computes the data size specified by the given descriptor. For example, if the descriptor is "D", this method returns 2. <p>If the descriptor represen
src/main/javassist/bytecode/Descriptor.java:650
↓ 33 callers
Method
isStatic
Returns true if the modifiers include the <code>static</code> modifier.
src/main/javassist/Modifier.java:84
↓ 33 callers
Method
verifySubroutine
(Subroutine[] subs, int pos, int start, int[] callers)
src/test/test/javassist/bytecode/analysis/ScannerTest.java:69
↓ 33 callers
Method
write16bit
Writes an 16bit value at the offset from the beginning of the bytecode sequence.
src/main/javassist/bytecode/Bytecode.java:370
↓ 32 callers
Method
getOperator
()
src/main/javassist/compiler/ast/Expr.java:54
↓ 32 callers
Method
toCodeAttribute
Converts to a <code>CodeAttribute</code>.
src/main/javassist/bytecode/Bytecode.java:193
↓ 31 callers
Method
getSuperclass
Obtains the class object representing the superclass of the class. It returns null if this object represents the <code>java.lang.Object</code> class a
src/main/javassist/CtClass.java:725
↓ 31 callers
Method
setCodeAttribute
Adds a Code attribute. <p> The added attribute must share the same constant pool table as this <code>method_info</code> structure.
src/main/javassist/bytecode/MethodInfo.java:415
↓ 31 callers
Method
writeInt
(int i)
src/main/javassist/bytecode/ByteStream.java:69
↓ 30 callers
Method
getConstPool
Gets a constant pool table.
src/main/javassist/bytecode/Bytecode.java:183
↓ 30 callers
Method
getMethodInfo
(ClassFile cf, String name, String desc)
src/test/javassist/bytecode/StackMapTest.java:823
↓ 30 callers
Method
put
(int pc, ASTree tree)
src/main/javassist/bytecode/LineNumberAttributeBuilder.java:14
next →
1–100 of 5,108, ranked by callers